Ad Widget

Collapse

service_stat + Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • katman
    Junior Member
    • Nov 2006
    • 1

    #1

    service_stat + Windows

    Hi,

    im trying to monitor some Windows-Services.
    Therefore I use the agent-Item service_state[*]

    When i try to monitor the Service HTTP-SSL for example..i would have to put in service_state[HTTPFilter] - right?

    It's configured as "Agent", numeric(64bit), etc...

    My Problem is..that the value displayed never changes. It's always 1 - wheter the Service is running or not.

    When i try

    zabbix_get -s10.50.50.114 -p10050 -k"service_state[HTTPFilter]"

    i get "1.00000" - in any case...wheter the service is running or not.

    I even get a "1.00000" when I try a service, which isn't present - for example...
    zabbix_get -s10.50.50.114 -p10050 -k"service_state[adfsadfg]"

    zabbixw32 check-config says, that everything is ok with the config-file.

    I use Zabbix 1.1.4 (server and agent)
    There is no firewall on the client.

    Any ideas? (i hope so)

    Chris
    Last edited by katman; 24-11-2006, 12:31.
  • mb78
    Junior Member
    • Dec 2006
    • 4

    #2
    At me a similar problem. It would be desirable to hear opinions...
    (Forgive for bad English)

    Comment

    • Scheffie
      Junior Member
      • Apr 2005
      • 15

      #3
      In the zabbix documentation you are told to use the real "Name:" component of a service. This doesn't work for me. What I can see in the service properties in windows is that the "Name:" component for your service is indeed "HTTPFilter". But I got an other service successfully monitorred with its "Display name:".

      Just like: service_state[Independent Management Architecture]

      Grtzz
      Bart

      Comment

      • mb78
        Junior Member
        • Dec 2006
        • 4

        #4
        Thanks! It has solved a problem.

        If the agent 1.3 - key service_state[IMAService]
        If the agent 1.4 - key service_state[Independent Management Architecture]

        Comment

        • RobertS
          Member
          • Aug 2006
          • 57

          #5
          I can't believe it, but its true:

          1.1.3 - service_state[service name]
          1.1.4 - service_state[display name]

          Problems:

          1. I could not find a note that the behavior was changed in the documentation. Please Alexei, next time you change something like that, please write a note! With changes like that (eg. when net.tcp.port changed from 0 to 1 in 1.1.3) we have to rewrite all the triggers and update all the agents at the same time. If I know this in advance I could decide if i want to do that or not. Now all the "Sherlock Holmes" in the forum have to investigate what has been changed on a new release an what is not working as before.

          2. The display name is nice, but unusable! None of the system commands use this (net start/stop, netsvc). In my case I monitor Windows Server with different languages - the display name is different in every language. I need the service name to use the same template with all the servers.

          So I have to go back to Version 1.1.3 on the servers I already updated.

          Robert

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            I do not see anything related to this functionality in ZABBIX change log. It wasn't intentional if it is really true. I need some time for testing...
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              Brief update, we changed Windows agent to work with both Service Name and Display Name. Services Name is searched first.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • RobertS
                Member
                • Aug 2006
                • 57

                #8
                1.1.5? Or can we use the windows agent from v1.3.x with an 1.1.4 server?

                Comment

                • Alexei
                  Founder, CEO
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Sep 2004
                  • 5654

                  #9
                  Yes, both 1.1.5 and 1.3.x. I wouldn't use 1.3.x yet.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • navtek007
                    Senior Member
                    • May 2005
                    • 100

                    #10
                    Originally posted by Alexei
                    Brief update, we changed Windows agent to work with both Service Name and Display Name. Services Name is searched first.
                    I have tested this and I can only get it to work with the display name. The Service name always returns a 1 no matter what state it is in. The job is too big to go and change all the service_state items to use the display name. can we get this fixed?

                    thanks.

                    Comment

                    • Alexei
                      Founder, CEO
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2004
                      • 5654

                      #11
                      It IS fixed! Please wait for 1.1.5.
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • binarykuki
                        Junior Member
                        • Jan 2007
                        • 8

                        #12
                        Still not working

                        zabbix 1.1.5

                        i am using the following key

                        service_state[Backup Exec Agent Browser]

                        and it is coming back with 1 instead of 0

                        thanks
                        K
                        Last edited by binarykuki; 27-01-2007, 01:09. Reason: forgot zabbix version information

                        Comment

                        • navtek007
                          Senior Member
                          • May 2005
                          • 100

                          #13
                          just re-tested and everything looks good after the upgrade.

                          thanks.

                          Comment

                          • CEGR
                            Junior Member
                            • Feb 2007
                            • 4

                            #14
                            My service is always starting but, never do!!

                            Hi.

                            We are experiencing a problem here with Zabbix agent in Windows, It never start and always shows that is startting.

                            Any idea?


                            Originally posted by katman
                            Hi,

                            im trying to monitor some Windows-Services.
                            Therefore I use the agent-Item service_state[*]

                            When i try to monitor the Service HTTP-SSL for example..i would have to put in service_state[HTTPFilter] - right?

                            It's configured as "Agent", numeric(64bit), etc...

                            My Problem is..that the value displayed never changes. It's always 1 - wheter the Service is running or not.

                            When i try

                            zabbix_get -s10.50.50.114 -p10050 -k"service_state[HTTPFilter]"

                            i get "1.00000" - in any case...wheter the service is running or not.

                            I even get a "1.00000" when I try a service, which isn't present - for example...
                            zabbix_get -s10.50.50.114 -p10050 -k"service_state[adfsadfg]"

                            zabbixw32 check-config says, that everything is ok with the config-file.

                            I use Zabbix 1.1.4 (server and agent)
                            There is no firewall on the client.

                            Any ideas? (i hope so)

                            Chris

                            Comment

                            Working...