no job control in this shell as a warning return

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: no job control in this shell as a warning return

Post 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
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: no job control in this shell as a warning return

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: no job control in this shell as a warning return

Post 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.
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.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: no job control in this shell as a warning return

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: no job control in this shell as a warning return

Post 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.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: no job control in this shell as a warning return

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: no job control in this shell as a warning return

Post by abrist »

slansing wrote:Depending on the distro you should ***follow the installing plugins section*** of this document:

http://assets.nagios.com/downloads/nagi ... Source.pdf
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.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: no job control in this shell as a warning return

Post by vivithemage »

okay, will try that. thanks!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: no job control in this shell as a warning return

Post by slansing »

Let us know how it works out.
Locked