process runs grabs all sys resources never exits
Brought to you by:
bingel
If I try to run with the following command line
/usr/bin/perl /usr/local/nagios/nagiostat/nagiostat -p
1092929407 'cares' 'PING' 'OK' 'PING OK - Packet loss =
0%, RTA = 0.83 ms'
I get no reponse I have debug set to 3 and out put
currently set $DEBUGOUTPUT = 1; though I tried setting
it to zero as well and saw no output in the log file.
If I let nagios call this it gets about 5 nagiostat
running and brings the server to its knees.
Logged In: YES
user_id=476996
You can not call nagiostat with parameters looking like that of
your example. It must be called like specified in the
checkcommands-file, that is all parameters sent to nagiostat
as the first parameter after the "-p" and separated with
the "|!!|"-separator. This is by design.
Logged In: NO
I also have the same problem. I'm using the correct
parameters.
Logged In: YES
user_id=5754
I too have the same problem when I moved this from an AIX
box to a Redhat box.
The problem appears to be in the call to shellwords.pl. It's
infinite looping through there. I was not able to figure out
why it was not exiting properly. :/
Logged In: YES
user_id=57608
I see the same problem, even when running "nagiostat -t"
I have debugged a bit, and it seams to nevet get back from
the "my(@args) = &shellwords($_);" line in nagiostat...
I have installed the latest shellwords from CPAN... but
nothing helps...
Please help...
I'm running RH9 and everything is installed in the default
path /usr/local/nagios/ and Nagios was running just fine
before adding nagiostat...
/Heino
Logged In: NO
Has there been any resolution to this problem ? I have the
same problem here, the script just sit's at 100% CPU usage
the whole time.
Logged In: YES
user_id=5754
Actually, I did figure out a solution. I recompiled Perl. I
didn't try any RPM upgrades, and just downloaded the Perl
source, compiled it into an alternate directory (/opt/perl),
and pointed nagiostat at that version of perl. Problem went
away immediately.
So, looks like it's just a problem with RedHat's (and
other's?) version of Perl.
.josh
Logged In: NO
I can confirm that using a different perl works.
I am using RH 9 and had the problem. Installed a RPM
packeged perl from advance or such, pointed the script to
that package, and no more problems.