no job control in this shell as a warning return
-
vivithemage
- Posts: 102
- Joined: Tue May 21, 2013 2:52 pm
no job control in this shell as a warning return
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.
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
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.
"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 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
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
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.
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
Re: no job control in this shell as a warning return
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.
"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
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
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.
"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
Well, it was working ... and just started alerting.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?
selinux disabled
I see no reference to disabletty in the sudoers file either!
Re: no job control in this shell as a warning return
How about /sbin/nologin in /etc/passwd? (Though this should not matter)
What has changed since it was last working?
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.
"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.