[Nagiosplug-devel] New check_procs design (was: New plugins, autoconf & pre-built bi naries)

Voon, Ton Ton.Voon at egg.com
Thu Apr 3 01:50:23 CEST 2003

I find that if I can see what the syntax will be, I can almost see the code
in my head. My head is a wierd place, but it's home :-)

One limitation of your example is: what about critical for vsz > 10K, but
warn if vsz > 5K? Your example would normalize everything down to number of

I can see two ways round:
1) a --metric flag so that the metric returned is # of processes, %cpu, vsz,
2) threshold metric based on calling program name (check_procs returns
processes, check_procs_cpu returns %cpu)

Any other ideas?

I guess output would also be different based on the metric, so the general
output is:
{CRITICAL|WARNING|OK}: {process names that fail thresholds (value of metric

As for the actual work, I can do the configure.in stuff and merging the
current OR filters, but I don't think I can handle the new-style filters.
Besides, my baby is due next week so I can't see much time ahead...


> -----Original Message-----
> From:	Karl DeBisschop [SMTP:karl at debisschop.net]
> Sent:	Wednesday, April 02, 2003 1:33 AM
> To:	NagiosPlug Devel
> Subject:	Re: [Nagiosplug-devel] New plugins, autoconf & pre-built
> binaries
> On Tue, 2003-04-01 at 17:45, Ton Voon wrote:
> > Good idea re: AND and OR option in filters.
> > 
> > I see where you are going with this (run a huge ps command and then run 
> > a db-like query on results), but what would the syntax look like?
> I dn't really know, but I do think getting the syntax 'right' may be
> fully as hard as the coding.
> I have in mind right now a syntax sort of like POSIC 'test'
> check_procs --test (VSZ -gt 100 -o SIZE -gt 100) -a STATE -eq Z -a UID
> -eq 500 -w 5: -c 10:
> But that's only what comes to mind at the moment. I suspect there are
> better solutions that I'm not imaginative enough to think of.
> --
> Karl

This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your

More information about the Devel mailing list