Service.Check

Started by Nikk, February 07, 2014, 02:06:22 PM

Previous topic - Next topic

Nikk

Hi,

I wanted to monitor some linux services (not network services) using Service.Check(*) parameter. But all i got is status response 2. Is this status response the same as other ServiceCheck.Http etc. like :
Service check return:
0 - success (server was connected and return expected response)
1 - invalid arguments was passed
2 - cannot connect to server
3 - bad server's response
??

Or I'm just using this parameter wrong.

Nikk

Victor Kirhenshtein

Hi!

All ServiceCheck parameters just connects over TCP to target and do some handshaking. If I understand correctly you need to monitor local processes? Then you can just use Process.Count to check that required processes are running.

Best regards,
Victor