no job control in this shell as a warning return
-
vivithemage
- Posts: 102
- Joined: Tue May 21, 2013 2:52 pm
Re: no job control in this shell as a warning return
/sbin/nologin is all garbled, possibly a system file?
What should I see in etc/passwd ? nothin grelated to TTY there.
What should I see in etc/passwd ? nothin grelated to TTY there.
Re: no job control in this shell as a warning return
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.
"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
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
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
Run the following commands and show us the output:
On the remote server:
Note: the path to your nagios plugins could be different - modify your command accordingly.
On the nagios server:
On the remote server:
Code: Select all
/usr/local/nagios/libexec/check_procs -w 150 -c 200On 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
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]#
[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
Is it not in:
What distro are you running?
Code: Select all
/usr/local/nagios/libexec-
vivithemage
- Posts: 102
- Joined: Tue May 21, 2013 2:52 pm
Re: no job control in this shell as a warning return
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)
CentOS release 5.9 (Final)
Re: no job control in this shell as a warning return
Please run
Code: Select all
find / -name libexecFormer Nagios employee
-
vivithemage
- Posts: 102
- Joined: Tue May 21, 2013 2:52 pm
Re: no job control in this shell as a warning return
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?
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?