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

no job control in this shell as a warning return

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

Are you using job control in the plugin script? (backgrounding, pausing processes, etc) If so, this is usually not allowed.
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 does that call look like?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
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 »

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.
Attachments
cpanel.cfg
(5.39 KiB) Downloaded 503 times
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 »

Can you post a copy of the check_local_procs plugin?
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 »

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$
        }
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 »

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?
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: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!
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 »

How about /sbin/nologin in /etc/passwd? (Though this should not matter)
What has changed since it was last working?
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.
Locked