Re: [Nagios-users] Handling different states

2010-09-21 Thread Stuart Browne
> -Original Message- > From: sandma...@libero.it [mailto:sandma...@libero.it] > Sent: Tuesday, 21 September 2010 16:31 > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Handling different states > > Hi all, > > I've written a plugin

[Nagios-users] Handling different states

2010-09-20 Thread sandma...@libero.it
Hi all, I've written a plugin that looks for number of record processed. If they are below the thresold, it writes to stdout 'All OK' and exit with code 0. If thet are above it writes "Too many records" and exits with code 2, and this event triggers a mail notification with Down as problem, and