Re: [Nagios-users] Preventing "plugin timed out while executing system call" notifications?

2009-08-13 Thread Grant Sewell
On Wed, 12 Aug 2009 10:36:08 -0700
Morris, Patrick wrote:

> 
> > Hi all,
> > 
> > Nagios 3.0.6 (current default on Debian Lenny).
> > 
> > We have a number of activities that will periodically trash our
> > network bandwidth, thus causing all of our external checks to
> > fail.  Now, although I am quite happy to be notified if a service
> > genuinely goes down, I would really rather not be notified if a
> > plugin times out.
> > 
> > Is there any way to specifically prevent Nagios from sending plugin
> > time out notifications but still send all others?
> 
> If this is a bandwidth issue, the easy solution would have those
> checks which will fail if bandwidth isn't available dependent on some
> check that looks to see if bandwidth is available.  That way, you
> only get one notification that your bandwidth is hosed, rather than a
> whole bunch of them for everything that breaks when it happens.

Thank you for the suggestion, Patrick.  As it happens, I think I may
have a solution already.  I modified the
"send_service_notification_by_email" command so it checks for "plugin
timeout" and only sends the notification if it fails this check (ie the
details don't contain "plugin timeout").  Maybe not the most elegant
solution, but it seems to have worked. :D

Cheers.
Grant.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Preventing "plugin timed out while executing system call" notifications?

2009-08-12 Thread Morris, Patrick
On Wed, 12 Aug 2009, Grant Sewell wrote:

> Hi all,
> 
> Nagios 3.0.6 (current default on Debian Lenny).
> 
> We have a number of activities that will periodically trash our network
> bandwidth, thus causing all of our external checks to fail.  Now,
> although I am quite happy to be notified if a service genuinely goes
> down, I would really rather not be notified if a plugin times out.
> 
> Is there any way to specifically prevent Nagios from sending plugin
> time out notifications but still send all others?

If this is a bandwidth issue, the easy solution would have those checks
which will fail if bandwidth isn't available dependent on some check
that looks to see if bandwidth is available.  That way, you only get one
notification that your bandwidth is hosed, rather than a whole bunch of
them for everything that breaks when it happens.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Preventing "plugin timed out while executing system call" notifications?

2009-08-12 Thread Grant Sewell
Hi all,

Nagios 3.0.6 (current default on Debian Lenny).

We have a number of activities that will periodically trash our network
bandwidth, thus causing all of our external checks to fail.  Now,
although I am quite happy to be notified if a service genuinely goes
down, I would really rather not be notified if a plugin times out.

Is there any way to specifically prevent Nagios from sending plugin
time out notifications but still send all others?

Cheers.
Grant. :)

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null