Ad Widget

Collapse

Monitoring available Windows updates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beeloo
    Member
    • Nov 2010
    • 62

    #31
    Thanks. I confirmed I'm running the zabbix_sender.exe version 1.8.3

    I left it (blank) in the unit field and tried again but it failed as well.

    C:\zabbix\win32>zabbix_sender.exe -vv -z 10.72.x.x -s w7 -k win_updates[total] -o 5
    zabbix_sender.exe [3464]: DEBUG: Answer [{
    "response":"success",
    "info":"Processed 0 Failed 1 Total 1 Seconds spent 0.000032"}]
    Info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000032"
    sent: 1; skipped: 0; total: 1


    Comment

    • beeloo
      Member
      • Nov 2010
      • 62

      #32
      Here is the item configuration:
      Attached Files

      Comment

      • eger
        Member
        • Nov 2006
        • 95

        #33
        Have you tried disabling the firewall on the machine? You are getting other data from the zabbix_agentd.exe? If there is a firewall running maybe it has allowed program zabbix_agentd.exe and not zabbix_sender.exe

        Comment

        • beeloo
          Member
          • Nov 2010
          • 62

          #34
          I checked and ensure the firewall is disabled on this windows 7 machine. Yes. I get the data from the agent..

          As you can see in this snapshot, the zabbix server received data from this w7 machine.
          Attached Files
          Last edited by beeloo; 10-02-2011, 21:14.

          Comment

          • beeloo
            Member
            • Nov 2010
            • 62

            #35
            Do you have a proxy setup?

            Comment

            • eger
              Member
              • Nov 2006
              • 95

              #36
              I am not using proxy. I would try increasing the logging debug level on zabbix server so you can see the zabbix_sender connection in the server logs to see what it says.

              Comment

              • beeloo
                Member
                • Nov 2010
                • 62

                #37
                Thanks Eger. I'm able to make it to work by delete the host, created separate template for item like (win_updates[total]), recreate the host, link with this template. Restart host agent and ran the script.

                Thanks again to this wonderful script. I was looking for it for long long time.

                Comment

                • RohrbaGe
                  Senior Member
                  • Aug 2005
                  • 167

                  #38
                  Windows Update Server WUS

                  Hello,

                  I would like to use the script, but I have a general question.

                  All our servers do have no internet access, so we have installed
                  a WUS server in our network for all the updates.

                  So I think the script procedure fails, if there is no internet access.
                  Where can I tell the script to use our local windows update server?

                  Or is the script using the general machines settings for the update search?
                  (The WUS we set by GroupPolicy)

                  Regards

                  Comment

                  • eger
                    Member
                    • Nov 2006
                    • 95

                    #39
                    Originally posted by RohrbaGe
                    Hello,

                    I would like to use the script, but I have a general question.

                    All our servers do have no internet access, so we have installed
                    a WUS server in our network for all the updates.

                    So I think the script procedure fails, if there is no internet access.
                    Where can I tell the script to use our local windows update server?

                    Or is the script using the general machines settings for the update search?
                    (The WUS we set by GroupPolicy)

                    Regards
                    The script is just using the local machine configuration. There isn't anything specifying where to check for updates. This is likely a group policy configuration issue.

                    Do the machines run the GUI Windows Updates OK?
                    Are you able to run the script manually on the command line?

                    Comment

                    • RohrbaGe
                      Senior Member
                      • Aug 2005
                      • 167

                      #40
                      Thanks Eger,

                      it works fine now on one test machine.
                      As always, problem between the ears....
                      The rollout to the 30 servers can start, but I think I will prepare
                      a script that will do the installations and the tasks automatically, or
                      half automatic. I found some of my old scripts for creating tasks by vbs.

                      How we can be aware, that the schedules are running? Do you run a trigger,
                      were you check if the last data coming from zabbix sender is not older than 24 hours?

                      Ro.

                      Comment

                      • eger
                        Member
                        • Nov 2006
                        • 95

                        #41
                        I don't do that now. But that is a good idea. If you have a trigger for this and can share that would be great. I will try and find a way to do this.

                        Update:

                        This is actually pretty simple. Create a trigger for nodata on one of the items being received:

                        {Template_Windows_Updates:win_updates[total].nodata(86400)}=1

                        This should trigger if no data is received for the total Windows updates item after 86400 seconds (24 hours). I will test this out by disabling the script on one host tonight and see if it triggers in 24 hours. I have my schedules run the VBS script every 6 hours.
                        Last edited by eger; 18-02-2011, 00:35.

                        Comment

                        • beeloo
                          Member
                          • Nov 2010
                          • 62

                          #42
                          Is it possible to create a summary email just to show the win_updates[high] for all the monitored machines?

                          What I mean is just ONE email that included all the monitored machines with the win_updates[high].

                          Please advise.

                          Comment

                          • Colttt
                            Senior Member
                            Zabbix Certified Specialist
                            • Mar 2009
                            • 878

                            #43
                            after updates installed on windows it need to restart the server.. how can i monitored this? also which server need restart?

                            our Windows updates install automaticly by WDS
                            Debian-User

                            Sorry for my bad english

                            Comment

                            • eger
                              Member
                              • Nov 2006
                              • 95

                              #44
                              Originally posted by beeloo
                              Is it possible to create a summary email just to show the win_updates[high] for all the monitored machines?

                              What I mean is just ONE email that included all the monitored machines with the win_updates[high].

                              Please advise.
                              Not sure what you mean. Couldn't you just create a trigger for only win_updates[high] and then an action that filters for it?

                              Comment

                              • eger
                                Member
                                • Nov 2006
                                • 95

                                #45
                                Originally posted by Shad0w
                                after updates installed on windows it need to restart the server.. how can i monitored this? also which server need restart?

                                our Windows updates install automaticly by WDS
                                On the first page, the script already includes this. The item is win_updates[reboot]. The trigger is:

                                ({Your_Template:win_updates[high].last(0)}=0)&({Your_Template:win_updates[reboot].str(True)}=1)

                                This trigger makes sure that all high updates are applied before triggering if a reboot is required. If you always wanted to see if a reboot is required whether or not there are still updates you can just use trigger:

                                {Your_Template:win_updates[reboot].str(True)}=1

                                The object information for reboot required is sent as a string (True or False) so we are just testing to see if the string "True" exists and then triggering.

                                Comment

                                Working...