Ad Widget

Collapse

Windows Service help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oliverm
    Senior Member
    • May 2006
    • 155

    #1

    Windows Service help

    Hi,

    Im trying to watch a service on a windows machine. Im stuck with the syntax of the trigger. The manual says

    service_state[*]
    State of service. Parameter is service name.
    0 - running 1 - paused 2 - start pending 3 - pause pending 4 - continue pending 5 - stop pending 6 - stopped 7 - unknown 255 - SCM communication error
    Parameter must be real service name as it seen in service properties under "Name:", not service display name!

    So, I have a service whos real name is AcrSch2Svc.

    Should I be using something like
    {Host.Win32:service_state[AcrSch2Svc].last(0)}>0
    ?

    That returns an error, but the instructions aren't clear as to what to do with "service_state[*]" to make it work.

    Perhaps a tutorial ?

    Olly
  • rhenson
    Junior Member
    • May 2006
    • 4

    #2
    I think you might have to create an item to associate the trigger with, so in your Host.Win32 items section you would add "service_state[AcrSch2Svc]" as an item. I believe this is so it is tracking something to trigger on.

    Comment

    • chris_dinis
      Junior Member
      • Jun 2006
      • 7

      #3
      service_state[imaservice] issues

      Hi,

      I'm also trying to monitor my services, imaservice (citrix) service on windows 2003. I've tryed creating a service_state[imaservice] with the zabbix agent and all i get is a 1. if i shut down the service i still get 1. Always a 1.

      I then tryed to monitor the citrix tcp port using tcp,2512 for simple checks. using this method i get 0 when the service is up and if i stop the service i still get 0. Can anyone tell me what i'm doing wrong.

      Thanks

      chris

      Comment

      Working...