NetXMS Support Forum

English Support => General Support => Topic started by: Nikk on February 07, 2014, 02:06:22 PM

Title: Service.Check
Post by: Nikk on February 07, 2014, 02:06:22 PM
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
Title: Re: Service.Check
Post by: Victor Kirhenshtein on February 11, 2014, 01:43:53 AM
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