Watching Services or Processes

Started by robertkjr3d, April 07, 2010, 06:25:32 PM

Previous topic - Next topic

robertkjr3d

The documentation for one of your competing products seems easier.  I'm a laymen, and trying to figure out from your docs, or your software how to watch a service.

I believe I need to create a DCI.... and set a threshold.

So I tried clicking on 'my pc' underneath a IP.  I clicked 'Data Collection':

System.ServiceState("Nero BackItUp Scheduler 4.0") -- Does the service name go in there?
Then I'm entirely confused as to what to put for the 'Threshold screen'.  I just wanted to get a notice saying that this service went down... it went up.  This was just a test exercise of your product.

Thankx,

Robert

Victor Kirhenshtein

Hi!

For System.ServiceState parameter, you should specify service name - don't be confused with display name you see in "Services" in MMC. Service name can be seen in service properties. System.ServiceState returns service status code, which can be one of the following:

0 - service running;
1 - service paused;
2 - service starting (start pending);
3 - service pausing (pause pending);
4 - service starting after pause (continue pending);
5 - service stopping (stop pending);
6 - service stopped;
255 - unable to get current service state.

So in threshold you have to check if status code not equal 0 and if it is, generate appropriate event. The following discussion could also be useful:
https://www.netxms.org/forum/index.php/topic,166.0.html

Best regards,
Victor

robertkjr3d

Ok I think I get this...(I realize this is built for Network Engineers) Now I'm having to try to figure out how to create an alarm from this, and it is just not intuitive.   ???