Ad Widget

Collapse

windows services monitoring with zabbix 2.x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 753713
    Senior Member
    • Apr 2006
    • 137

    #1

    windows services monitoring with zabbix 2.x

    Step1
    copy services.exe to the zabbix agent and add in the zabbix_agent.conf the userparameter:

    UserParameter=windows.services,"C:\Programme\Zabbi x Agent\services.exe"

    Step2

    create the discovery rule:




    Step3

    create the item

    {#FSSERVICE} -> windows service name
    {#FSSERNAME} -> windows service description



    and the result:



    Filelink:




    you can monitoring the windows processes too:

    UserParameter=windows.process,"C:\Programme\Zabbix Agent\process.exe"

    {#FSPROCESS} -> windows processes in the task manager
    Last edited by 753713; 16-03-2012, 22:59.
    ______________________________
    Version : 2.0.x
    Server OS: Ubuntu 12.04
    Zabbix Servers: 12
    Monitored Windows Server: ~ 1000
    ______________________________
  • martin.zurheide
    Junior Member
    • Jun 2012
    • 2

    #2
    Excellent idea

    This is an excellent idea to discover all Windows services.

    On my Zabbix 2.0.0 the discovery is now working. The reason therefore is the returned array name.
    {
    "windows.services":[
    { "{#FSSERVICE}":"AeLookupSvc", "{#FSSERNAME}":"Anwendungserfahrung"},
    { "{#FSSERVICE}":"ALG", "{#FSSERNAME}":"Gatewaydienst auf Anwendungsebene"},
    { "{#FSSERVICE}":"AppIDSvc", "{#FSSERNAME}":"Anwendungsidentit?t"},...
    }

    The name must be "data" instead of "windows.services"

    Althow the encoding for the German special characters are only shown as a "?".

    Comment

    • 753713
      Senior Member
      • Apr 2006
      • 137

      #3
      ok, the latest version running with zabbix 1.9.9 without problems.

      After upgrade I have the same error, here a new link:


      753713
      ______________________________
      Version : 2.0.x
      Server OS: Ubuntu 12.04
      Zabbix Servers: 12
      Monitored Windows Server: ~ 1000
      ______________________________

      Comment

      • martin.zurheide
        Junior Member
        • Jun 2012
        • 2

        #4
        The newly provided Services.exe is NOT working at all with the zabbix_agentd.
        It is opening a graphical window on the windows server.
        In the output of zabbix_agentd.exe -p the created UserParameter windows.services in not listed anymore.

        The old or first provided service.exe worked fine except of the array name. In the Zabbix GUI I saw the following message:
        Cannot find the "data" array in the received JSON object

        Comment

        • 753713
          Senior Member
          • Apr 2006
          • 137

          #5
          can you download the files again and check´with this command:

          C:\Programme\Zabbix Agent>zabbix_agentd.exe -c "c:\Programme\Zabbix
          Agent\zabbix_agentd.conf" -t "windows.services"
          windows.services [t|{
          "data":[
          { "{#FSSERVICE}":"Alerter", "{#FSSERNAME}":"Warndienst"},
          { "{#FSSERVICE}":"ALG", "{#FSSERNAME}":"Gatewaydienst auf Anwendungsebene"},.................
          ______________________________
          Version : 2.0.x
          Server OS: Ubuntu 12.04
          Zabbix Servers: 12
          Monitored Windows Server: ~ 1000
          ______________________________

          Comment

          • ehermouet
            Member
            • May 2011
            • 50

            #6
            Great

            Tks for this discovery it can be very usefull but i have problem.

            agent detect all services but in server i have no data or service imported.
            i'm on zabbix 2.0.1
            agent 2.0.1

            discovery rule on server is create and item prototype too... but nothing

            do you have an idea ?

            tks advance

            Comment

            • adriano
              Junior Member
              • Jan 2011
              • 26

              #7
              not working for me..

              Trying to use it but nothing here..

              I have a Master Node in distributed monitoring, it has no agents monitored, only takes data from nodes and proxies.

              I'm trying to use it in agents being monitored by a proxy, tested it with zabbix_agentd.exe, and works fine, but no dta is displayed on the server, and no logs at all until now.. any ideas?

              Comment

              • 753713
                Senior Member
                • Apr 2006
                • 137

                #8
                new Version, with UTF8 support:


                simple idea for the discovery without configure the zabbix_agent.conf, copy the exe files to c:\ZABBIX folder on your system and configure your discovery rule:
                ______________________________
                Version : 2.0.x
                Server OS: Ubuntu 12.04
                Zabbix Servers: 12
                Monitored Windows Server: ~ 1000
                ______________________________

                Comment

                • skarllot
                  Junior Member
                  • Oct 2011
                  • 21

                  #9
                  I've updated zbxlld to support services discovery.

                  You can filter the services using the following filters: auto, demand and disabled.

                  Manual: https://github.com/skarllot/zbxlld/wiki/Manual
                  Home page: https://github.com/skarllot/zbxlld
                  zbxlld thread at ZABBIX forum: https://www.zabbix.com/forum/showpos...05&postcount=2

                  All feedbacks are welcome.
                  Last edited by skarllot; 05-01-2013, 02:29.

                  Comment

                  • qix
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2006
                    • 423

                    #10
                    For everyone that would like service discovery supported natively in the agent, please vote on https://support.zabbix.com/browse/ZBXNEXT-1368

                    With kind regards,

                    Raymond

                    Comment

                    • vlam
                      Senior Member
                      Zabbix Certified Specialist
                      • Jun 2009
                      • 166

                      #11
                      Will this also work if the servers that I want to monitor the services on is being monitored by a Zabbix Proxy??
                      4 Zabbix Frontend Servers (Load balanced)
                      2 Zabbix App Servers (HA)
                      2 Zabbix Database Servers (HA)
                      18 Zabbix Proxy Servers (HA)
                      3897 Deployed Zabbix Agents
                      6161 Values per second
                      X-Layer Integration
                      Jaspersoft report Servers (HA)

                      Comment

                      • qix
                        Senior Member
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2006
                        • 423

                        #12
                        That should work juist fine :-)
                        With kind regards,

                        Raymond

                        Comment

                        • storm
                          Member
                          • Jan 2012
                          • 37

                          #13
                          As best I can tell, I have followed the instructions and I'll attach pics but it is not working for me. Can someone tell me what Im doing wrong?
                          Also, in zabbix_server.log, I have this line: " item [Beatlebox:system.run[c:\Zabbix\Services.exe]] became not supported: Not supported by Zabbix Agent"

                          Thank you,
                          Mike
                          Attached Files

                          Comment

                          • qix
                            Senior Member
                            Zabbix Certified SpecialistZabbix Certified Professional
                            • Oct 2006
                            • 423

                            #14
                            There is no need for the system.run item. Just define the userparameter in the agent conf file as shown in the first post.
                            With kind regards,

                            Raymond

                            Comment

                            • storm
                              Member
                              • Jan 2012
                              • 37

                              #15
                              Concerning post number 1, in step 3, is this creating an Item or is this Discovery rules=>Item prototypes? Neither one looks exactly like mine but Im running 2.0.1.

                              Also, is there a more detailed step by step document?
                              Mike

                              Comment

                              Working...