DCI problem...
-
Using NetXMS agent, some custom process can not be recognized.
That process really executing in the system(Linux).
I can check it using "ps -ef".
But, When I get it on NetXMS console, just return value '0'.
Other custom process is works fine.
Using SNMP protocol, can not be auto recognize that OID(PID). Right?
Could you help me?
Thanks.
Regards. -
Could you please post output of ps -ef and NetXMS parameter you are using to count your custom processes?
Best regards,
Victor -
-
Is node_agent real executable or shell script? If it is a shell script, then executable name will be sh (or bash, ksh, etc. - whatever your shell is), so Process.Count(node_agent) will always return 0 - because it will look for executable named node_agent. You can find processes by command line using Process.CountEx, like this:
Process.CountEx(".*","^node_agent")
Please note, that Process.CountEx uses regular expressions to find matching processes.
Best regards,
Victor -
-
It's my mistake: ^node_agent is not correct regexp - ^ character means "beginning of the line", but command line in your case doesn't starts with node_agent, it starts with ./node_agent, so you should either remove leading ^ or use Process.CountEx(".*","^\\./node_agent")
Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login