Page 2 of 3
Re: no job control in this shell as a warning return
Posted: Mon Dec 09, 2013 5:26 pm
by vivithemage
/sbin/nologin is all garbled, possibly a system file?
What should I see in etc/passwd ? nothin grelated to TTY there.
Re: no job control in this shell as a warning return
Posted: Tue Dec 10, 2013 10:40 am
by abrist
Apologies, you should check /etc/passwd for /sbin/nologin for the user nagios. Though, something must have changed on the remote system.
Re: no job control in this shell as a warning return
Posted: Tue Dec 10, 2013 5:17 pm
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?
Re: no job control in this shell as a warning return
Posted: Tue Dec 10, 2013 5:55 pm
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.
Re: no job control in this shell as a warning return
Posted: Tue Dec 10, 2013 6:01 pm
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>
Re: no job control in this shell as a warning return
Posted: Wed Dec 11, 2013 11:45 am
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]#
Re: no job control in this shell as a warning return
Posted: Wed Dec 11, 2013 4:37 pm
by slansing
Is it not in:
What distro are you running?
Re: no job control in this shell as a warning return
Posted: Wed Dec 11, 2013 5:22 pm
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)
Re: no job control in this shell as a warning return
Posted: Wed Dec 11, 2013 5:30 pm
by tmcdonald
Re: no job control in this shell as a warning return
Posted: Wed Dec 11, 2013 8:28 pm
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?