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.
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 »

/sbin/nologin is all garbled, possibly a system file?

What should I see in etc/passwd ? nothin grelated to TTY there.
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 »

Apologies, you should check /etc/passwd for /sbin/nologin for the user nagios. Though, something must have changed on the remote system.
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 »

What is needed on the remote box for the check exactly? what exactly does nagios send to the server, doe she need specific credentials or something?
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 »

I believe abrist is referring to the remote host's nagios user. NRPE does not require specific credentials or anything of the sort from nagios as it's commands are executed through the remote system's nagios user.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Run the following commands and show us the output:

On the remote server:

Code: Select all

 /usr/local/nagios/libexec/check_procs -w 150 -c 200
Note: the path to your nagios plugins could be different - modify your command accordingly.

On the nagios server:

Code: Select all

./check_nrpe -H <remote server IP>
./check_nrpe -H <remote server IP> -c <command defined on the remote machine>
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 »

I am not sure what the deal is, but I cannot seem to find the libexec directory ...

[root@madhost500vm2 /]# cd /etc/nagios
[root@madhost500vm2 nagios]# ls
cgi.cfg htpasswd.users madhosted nagios.cfg.rpmnew nrpe.cfg resource.cfg
cgi.cfg.rpmnew madgenius nagios.cfg nagios.tar objects resource.cfg.rpmnew
[root@madhost500vm2 nagios]#
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 »

Is it not in:

Code: Select all

/usr/local/nagios/libexec
What distro are you running?
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 »

I don't have a nagios dir in /usr/local ... I don't think it was a source install, probably an RPM.

CentOS release 5.9 (Final)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Please run

Code: Select all

find / -name libexec
Former Nagios employee
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 »

duhhhhhhhh, thanks haha.

none have check_procs though:

[root@madhost500vm2 /]# find / -name libexec
/usr/local/pnp4nagios/libexec
/usr/local/libexec
/usr/libexec
[root@madhost500vm2 /]#

this does:

[root@madhost500vm2 /]# find / -name check_procs
/usr/lib64/nagios/plugins/check_procs
[root@madhost500vm2 /]#


so here are some results:


[root@madhost500vm2 /]# /usr/lib64/nagios/plugins/check_procs -w 150 -c 200
PROCS OK: 126 processes
[root@madhost500vm2 /]#


[root@madhost500vm2 /]# /usr/lib64/nagios/plugins/check_nrpe -H madhost409.madgenius.com
NRPE v2.12
[root@madhost500vm2 /]# /usr/lib64/nagios/plugins/check_nrpe -H madhost419.madgenius.com
NRPE v2.14
[root@madhost500vm2 /]#

madhost409 is the one failing if that matters.

what's the command that I should be running exactly with that -c ? the check I listed above?
Locked