[Nagiosplug-devel] RE: [Nagios-users] checking memory and cpu consumption of procs

Karl DeBisschop karl at debisschop.net
Sun Dec 22 05:54:03 CET 2002


On Fri, 2002-12-20 at 12:49, Voon, Ton wrote:
> Copying onto nagiosplug-devel list. Future replies will only be to the
> nagiosplug-devel list.
> 
> I would go with "Keep it simple". If a plugin reports a failure, then it is
> the manual investigation that will show up the stderr failures. I would
> think a ps failure is fairly catastrophic ;o)
> 
> Then again, maybe it is just the initial pain of a new model. I can see the
> model makes more sense for plugins that call 3rd party commands. Maybe Karl
> would be interested in adding runcmd in utils.c?

I would be willing to add/replace the spopen model with polling. I sort
of tried to get part way there by scanning stderr, way back when I first
implemented spopen. I didn't really think about blocking at the time, I
just figured a 3rd party util that used stderr needed to at least note
that, usually by throwing a warning. 

I will look at transition/implementation issues later. I think this
souns like a 1.4 issue, however.

> If your friends are going to look at this on Solaris, here's some of the
> pain I discovered:

Thanks. I think most of this can go right into 1.3. Except I am hesitant
to add a new plugin at this point, so maybe check_cpu itself can get
added just after 1.3 is released.
> 
> strsep is not supported on Solaris. A portable version is:
> /***************************************************************************

<cut>

Sound reasonable?

-- 
Karl DeBisschop <karl at debisschop.net>





More information about the Devel mailing list