Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Okay, so we have still not seen how your check_nrpe command is defined in nagios, check_local_procs has nothing to do with the nrpe check we are running against your remote host, but lets start by running this:
/usr/lib64/nagios/plugins/check_nrpe -H madhost409.madgenius.com -c check_local_procs -a "-w 250 -c 400"
Keep in mind, this may not be the check_nrpe you are using from within nagios, to be sure, you should look at what your $USER1$ line is in:
# Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib64/nagios/plugins
[root@madhost500vm2 nagios]# /usr/lib64/nagios/plugins/check_nrpe -H madhost409.madgenius.com -c check_local_procs -a "-w 250 -c 400"
System call sent warnings to stderr: bash: no job control in this shell
[root@madhost500vm2 nagios]# /usr/lib64/nagios/plugins/check_nrpe -H madhost419.madgenius.com -c check_local_procs -a "-w 250 -c 400"
PROCS OK: 235 processes
[root@madhost500vm2 nagios]#
My question, does it use a local (to the remote server being checked) plugin? I noticed madhost409 is really old check_procs, dated to 2008, and madhost419 is dated 2012...are those used, or not?
As nrpe runs the commands on the remote host, the plugin version on the remote hosts may matter. You may want to upgrade nagios-plugins on madhost409.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist wrote:As nrpe runs the commands on the remote host, the plugin version on the remote hosts may matter. You may want to upgrade nagios-plugins on madhost409.
What's the right way of upgrading them on that box?
Just make the necessary adjustments to directory locations, etc, if they differ. You may also want to look up a guide to installing nagios plugins on your remote host's specific distro if it is not RHEL/CENTOS.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.