Monitoring of processes

Started by rz, June 03, 2014, 05:16:18 PM

Previous topic - Next topic

rz

Hi,

1) What will be the best solution for monitoring of processes having long command line ?

    For example java process with argument "firstCell01 centosNode01 nodeagent" (arguments are placed at the end). Overall length of command line is longer then 1024 characters (2500).

     A) It seems that solution via DCI Process.CountEx("java","firstCell01 centosNode01 nodeagent") takes into account only first 1024 characters.
       
         Should be NetXMS subagent (processCmdLine[1024] in proc.cpp) updated ?

     B) Or is it better solution to monitor it via ExternalParameter DCI (i.e. ps xxx | grep yyy)


2) Note: There are no values in column "Command Line" in <<Table>> System.Processes, other columns are populated correctly.
    I'm not sure if it works as expected.


Kind Regards,
Roman

Victor Kirhenshtein

Hi,

it's probably better to fix the agent :) I've register it as a bug (https://www.radensolutions.com/chiliproject/issues/597), will take a look in next few days.

Best regards,
Victor