NetXMS Support Forum

English Support => General Support => Topic started by: subba on February 03, 2010, 11:46:38 AM

Title: How to Create a DCI
Post by: subba on February 03, 2010, 11:46:38 AM
Hi,

    I need to monitor Auto starter , it is  an Engine which is used to start and stop applications ,the autostarter and applications are developed on java , if   the auto starter and any one of the applications  are not running , for that the alarm has to notify saying that the auto starter is down if possible saying that one of the set is not runing , for that  in need to create a DCI , i dont have any script for this  Can you please help me in this


Thanks,
Subbu
Title: Re: How to Create a DCI
Post by: Victor Kirhenshtein on February 04, 2010, 01:24:26 PM
Hi!

Because your application written in Java, in process list you will see only a bunch of Java VM processes. If you don't have some API to determine if your application is still running, I see the only way is to determine full command line for each of your applications, and if they are differs, then you are lucky and can monitor if each application is running by using Process.CountEx parameters.

Best regards,
Victor