Pantek Expert IT Services Software Library
Hosting provided by:
CybrHost

Visit our blog, Open Sores: Tips From the Trenches

Enterprise Linux Hosting

Re: [Nagiosplug-help] Broken check_procs or malusage?

From: Andreas Ericsson <ae(at)op5.se>
Date: Thu Feb 21 2008 - 08:22:29 EST


Ralph.Grothe@itdz-berlin.de wrote:
>
> On the other hand I wonder why the check_proc plugin doesn't call
> the pstat_getproc()
> syscall?
> see
> http://nixdoc.net/man-pages/HP-UX/pstat_getcommandline.2.html
> Admittedly, it is much easier for the nagios-plugins developers
> to parse ps output than
> having to provide different libc calls for every conceivable Unix
> variant.
>

That depends, I'd say. Using a stable API to get the information means future versions of the program will most likely never ever break. check_proc is one of those programs that has gotten broken several times over the years because the ps output changes slightly, or someone changes a parsing routine that's used by too many architectures.

>
>
> So, do you think I should manually extend PS_VARLIST to cater for
> all 14 entries?
>

Not really. If you can get check_proc to work with pstat_getproc() I believe that would be a better way to go. Ofcourse, the plugin devs may well disagree with me.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
Received on Thu Feb 21 08:22:58 2008

This archive was generated by hypermail 2.1.8 : Wed Jul 16 2008 - 04:37:22 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library