Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power


#Servers
#Opensource
 View Only
  • 1.  New Version of nagios-plugins

    Posted 13 days ago

    Hi

    Maybe I'm wrong but it looks like that the check_procs plugin wants to run "/usr/sysv/bin/ps" 

    With the update to 73 TL4 SP2 IBM has removed "/usr/sysv/bin/ps" so the plugin is not working anymore

    # ./check_procs -vvv
    CMD: /usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args'
    Unable to read output

    Any ideas?

    regards

    Alex



    ------------------------------
    Alexander Kuschnik
    ------------------------------


  • 2.  RE: New Version of nagios-plugins

    Posted 13 days ago

    The command line you describe is something that can be done with the 'current', default "ps" command on AIX as well. You can replace

    /usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args'

    with the equivalent:

    /usr/bin/ps -eo 'st uid pid ppid vsz rssize pcpu etime comm args'

    I haven't got a recent version of Nagios on AIX myself, so I cannot check. If the check_procs plug-in is a shell script, you could make a copy of it and change the original to use the ps command I mentioned above.

    As I believe the Nagios plug-in is a binary, so you probably cannot change the command it uses to get its information. Until Nagios releases a version that does not rely on /usr/sysv/bin/ps, you could do a little trick:

    • Recreate the /usr/sysv/bin directory
    • Create a "wrapper" shell script called check_procs; it should call the /usr/bin/ps command above.
    • Make it executable (like chmod 0750)

    If you notice Nagios uses /usr/sysv/bin/ps more often (with different command line arguments), you have to change the wrapper script to look at the arguments that Nagios uses and build the proper /usr/bin/ps command for those occasions.

    Something quick and dirty that might help you out to start with:

    #!/usr/bin/ksh
    echo "command: $0 $*" >>/tmp/ps.log
    if [ "$1" = "-eo" -a "$2" = "s uid pid ppid vsz rss pcpu etime comm args" ]
    then /usr/bin/ps -eo 'st uid pid ppid vsz rssize pcpu etime comm args'
    elif [ "$1" = "-eo" -a "$2" = "pid comm args" ]
    then /usr/bin/ps -eo "$2"
    else echo "Unknown combination of arguments to /usr/sysv/bin/ps" >&2
    fi



    ------------------------------
    Richard Westerik
    Principal specialist
    Simac IT NL bv
    Ede
    +31651575123
    ------------------------------



  • 3.  RE: New Version of nagios-plugins

    Posted 12 days ago

    Hello Richard

    check_procs is a binary.

    thanks for your workaround -  that helps.

    regards

    Alex



    ------------------------------
    Alexander Kuschnik
    ------------------------------



  • 4.  RE: New Version of nagios-plugins

    Posted 12 days ago

    Thanks for reporting this. A fixed release will be made available soon in AIX Toolbox. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: New Version of nagios-plugins

    Posted 12 days ago

    Hi.

    Thanks for the information



    ------------------------------
    Alexander Kuschnik
    ------------------------------



  • 6.  RE: New Version of nagios-plugins

    Posted 8 days ago

    Hi!

    If you touch the nagios-plugins package, could you please make sure to also include the fix / update for the problem with check_ntp reported in Nagios plugin check_ntp_time from AIX Toolbox is not working properly and Nagios plugin bug introduced in 2.4.8 and resolved in 2.4.12?


    Best regards,

      Alexander



    ------------------------------
    Alexander Reichle-Schmehl
    ------------------------------



  • 7.  RE: New Version of nagios-plugins

    Posted 8 days ago

    Noted. Thanks 



    ------------------------------
    Ayappan P
    ------------------------------



  • 8.  RE: New Version of nagios-plugins

    Posted 7 days ago

    Thank you :)

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/SPECS/nagios-plugins-2.4.9-1.spec:

    I guess replacing 


    --with-ps-command="/usr/sysv/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args'" 

    with

     --with-ps-command="/usr/bin/ps -eo 'stat,uid,pid,ppid,vsz,rssize,pcpu,etime,comm,args'"

    should fix the issue. 



    ------------------------------
    Ron Wellnitz
    ------------------------------