Back to OP5 Monitor FAQ

How to monitor a process with a specific argument?

Question Copied


How to monitor a process with a specific argument?

Answer Copied


For example if you have a ‘.php’ process with the argument:

"-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d"

And only want to monitor ‘.php’ processes with that argument, you can use the plugin “check_procs” with the option -a, like this:

./check_procs -w 10 -c 20 -C php -a "-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d"

The status output would then be like this:

PROCS OK: 1 process with command name 'php', args '-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d'
["Geneos"] ["FAQ"]

Was this topic helpful?