Page 1 of 3

no job control in this shell as a warning return

Posted: Mon Dec 09, 2013 12:21 pm
by vivithemage
A linux server of ours is returning warning:
System call sent warnings to stderr: bash: no job control in this shell

this is for: Total Processes otherwise the server is monitored correctly and not returning any errors. The server is running CentOS 5.10...where do I find out what is spitting that error message out? The box has been up 265 days, I was thinking a reboot might be the best way to start troubleshooting.

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

Posted: Mon Dec 09, 2013 1:07 pm
by abrist
Are you using job control in the plugin script? (backgrounding, pausing processes, etc) If so, this is usually not allowed.

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

Posted: Mon Dec 09, 2013 1:52 pm
by vivithemage
What does that call look like?

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

Posted: Mon Dec 09, 2013 2:05 pm
by sreinhardt
Why don't we go the route of, what plugin are you using that has this issue? Do you have a link, or can attach it here?

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

Posted: Mon Dec 09, 2013 2:20 pm
by vivithemage
attached is the .cfg file that is read by nagios.

Looks like we are using:

Let me know if I should include anything else.

To me it looks like this call:

check_nrpe!check_local_procs!250!400!RSZDT

is the problem? mh419 is not having an issue, only the device mh409.

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

Posted: Mon Dec 09, 2013 2:32 pm
by abrist
Can you post a copy of the check_local_procs plugin?

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

Posted: Mon Dec 09, 2013 2:43 pm
by vivithemage

Code: Select all

# 'check_local_procs' command definition
define command{
        command_name    check_local_procs
        command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
        }

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

Posted: Mon Dec 09, 2013 3:34 pm
by abrist
This is most likely a problem with a configuration setting on the remote system. Do you have any particular security setup? selinux, disabletty in /etc/sudoers, etc?

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

Posted: Mon Dec 09, 2013 4:34 pm
by vivithemage
abrist wrote:This is most likely a problem with a configuration setting on the remote system. Do you have any particular security setup? selinux, disabletty in /etc/sudoers, etc?
Well, it was working ... and just started alerting.

selinux disabled

I see no reference to disabletty in the sudoers file either!

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

Posted: Mon Dec 09, 2013 4:41 pm
by abrist
How about /sbin/nologin in /etc/passwd? (Though this should not matter)
What has changed since it was last working?