Menu

#9 process runs grabs all sys resources never exits

v1.0_(example)
open
nobody
None
5
2004-08-19
2004-08-19
No

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.

Discussion

  • Carl Bingel

    Carl Bingel - 2004-08-26

    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.

     
  • Nobody/Anonymous

    Logged In: NO

    I also have the same problem. I'm using the correct
    parameters.

     
  • Josh Burley

    Josh Burley - 2004-10-04

    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. :/

     
  • Heino Walther

    Heino Walther - 2004-10-11

    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

     
  • Nobody/Anonymous

    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.

     
  • Josh Burley

    Josh Burley - 2004-10-19

    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

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.