PDA

View Full Version : Windows Service help


oliverm
20-05-2006, 20:27
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
23-05-2006, 17:00
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.

chris_dinis
23-08-2006, 17:46
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