I've been attempting to troubleshoot an issue I'm seeing related to monitoring Oracle PMONs with XI. We are trying to monitor 4 different active PMONs, but the names are very similar and XI appears to be adding a wildcard at the end of PMON name when it passes the argument.
For example, we have a PMON named ora_pmon_npasdevcdb and we use the command 'check_procs' in XI to monitor that it's active:
Code: Select all
$USER1$/check_nrpe -2 -H $HOSTADDRESS$ -t 30 -c check_active_procs -a "$ARG1$"/usr/local/nagios/etc/nrpe.cfg
Code: Select all
command[check_active_procs]=/usr/local/nagios/libexec/check_procs -c $ARG1$ -a $ARG2$Code: Select all
[nagios@nagiosxiserver ~]$ /usr/local/nagios/libexec/check_nrpe -2 -H xx.xx.xx.xx -t 30 -c check_active_procs -a ""1:1 ora_pmon_npasdevcdb""
PROCS CRITICAL: 2 processes with args 'ora_pmon_npasdevcdb'The service check will not allow me to use any of the switches in this document: https://nagios-plugins.org/doc/man/check_procs.html
It fails and says such and such variable needs to be an integer... which it is.
Thank you.