How to monitor UIM probes that use the DNIMCPRID command line switch

book

Article ID: 109973

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

the MCS process has an ID in the command line and every time it restarts the id changes.
How can we monitor this process properly without having to change the id every time the process restarts?

Some probes use a command line option that looks like:
../../../jre/jre8u102/bin/java.exe -Xms512m -Xmx4096m -DNIMCPRID=2345490 -server

the number changes with every restart
if you use name and command line option with the number that is currently in use the profile fails
the next time the probe restarts.

Environment

UIM 9.0 and earlier
processes probe 4.60 and earlier
 

Resolution

The processes probe can use a regex statement to check the command line options.

Example from MCS (Mon_config_service)
../../../jre/jre8u102/bin/java.exe -Xms512m -Xmx1024m -DNIMCPRID=1554938 -server -XX:ErrorFile=./hs_err_pid.log -Djava.library.path=../../../lib -cp "./;lib/*" com.nimsoft.selfservice.probe.SelfServiceProbe

Below is the regex that will monitor this even with restarts:
/../../../jre/jre8u102/bin/java.exe\s-Xms512m\s-Xmx1024m\s-DNIMCPRID=.*-server -XX:ErrorFile=./hs_err_pid.log\s-Djava\.library\.path\=../../../lib\s-cp\s\"\./;lib/\*" com.nimsoft.selfservice.probe.SelfServiceProbe/

Another solution:

/*com.nimsoft.selfservice.probe.SelfServiceProbe/