Ad Widget

Collapse

Monitoring windows services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajan.s.ravi
    Member
    • Jul 2006
    • 40

    #1

    Monitoring windows services

    Dear All,

    I need to know if we can monitor status of any windows service with status as running or not running.

    I am using Zabbix 1.1.6 and zabbix agent on windows servers
    Regards,
    Ravi
  • rajan.s.ravi
    Member
    • Jul 2006
    • 40

    #2
    Found a solution on MS Site, Thanks

    Comment

    • mfortier
      Junior Member
      • Apr 2007
      • 4

      #3
      You could post the solution you found

      Comment

      • anuradha
        Junior Member
        • Apr 2007
        • 9

        #4
        We can monitor status of any windows service by using
        "service_state[service name]"

        It returns following constants.

        0 – running
        1 – paused
        2 - start pending
        3 - pause pending
        4 - continue pending
        5 - stop pending
        6 – stopped
        7 - unknown
        255 – no such

        NOTE:service name must be same as in services.msc.

        Regards,
        Last edited by anuradha; 24-04-2007, 08:21.

        Comment

        • rajan.s.ravi
          Member
          • Jul 2006
          • 40

          #5
          Hi,

          Thanks for your suggestions. I am running 1.1.6, is it supported in this ?

          Regards,
          Ravi

          Comment

          • anuradha
            Junior Member
            • Apr 2007
            • 9

            #6
            We are using on 1.1.4.
            Its working good.

            Regards,

            Comment

            • predatorz
              Senior Member
              • Mar 2007
              • 109

              #7
              May i know how do i write the zabbix agent item for the above?
              Thanks
              Last edited by predatorz; 27-04-2007, 10:27.

              Comment

              • predatorz
                Senior Member
                • Mar 2007
                • 109

                #8
                Anyone can give a hint?

                Comment

                • anuradha
                  Junior Member
                  • Apr 2007
                  • 9

                  #9
                  We can write like in KEY field

                  service_state[servicename]

                  servicename must be same as windows service name

                  Ex:service_state[IIS Admin]
                  Here IIS Admin is the service name.

                  Regards,

                  Comment

                  • predatorz
                    Senior Member
                    • Mar 2007
                    • 109

                    #10
                    Thank, i got the item correctly previously but keep on getting unsupported, today then i found out i type in the service name wrongly. LOL.

                    Comment

                    • predatorz
                      Senior Member
                      • Mar 2007
                      • 109

                      #11
                      On Win2k pc, keep returning value of 1 although service is already started and running, even when i disabled and stopped the service, it is also 1.

                      Comment

                      Working...