Page 3 of 3
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 10:44 am
by slansing
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:
Code: Select all
/usr/local/nagios/etc/resource.cfg
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 11:39 am
by vivithemage
# 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?
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 12:11 pm
by abrist
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.
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 12:13 pm
by vivithemage
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?
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 2:10 pm
by slansing
Depending on the distro you should follow the installing plugins section of this document:
http://assets.nagios.com/downloads/nagi ... Source.pdf
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.
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 4:32 pm
by vivithemage
that looks like the install for CORE...what's the install for just plugins on a remote/monitored server? They are indeed CentOS.
Re: no job control in this shell as a warning return
Posted: Thu Dec 12, 2013 5:56 pm
by abrist
Re: no job control in this shell as a warning return
Posted: Tue Dec 17, 2013 4:40 pm
by vivithemage
okay, will try that. thanks!
Re: no job control in this shell as a warning return
Posted: Tue Dec 17, 2013 5:15 pm
by slansing
Let us know how it works out.