Different notifications depending on warning?

Marc Powell marc at ena.com
Mon Feb 16 19:11:56 CET 2009


On Feb 16, 2009, at 11:34 AM, Israel Brewster wrote:

> I suppose I could write a plugin that looks at the status text and
> "upgrades" certain warnings, such as low toner, to critical status,
> but this would be problematic as well, because we would then loose the
> distinction between "low toner", which just means we need to make sure
> we have more, and "toner empty", which means we need to go replace it.
> So is there a good solution to this dilemma that I am missing? Thanks.

Not within nagios that I know of. There are two points of possible  
action that I see. The first, as you've already discovered, is to  
modify the way that it's checked and add the logic there. The second  
is to add the logic to your notifications. The notification program  
can be anything at all. You could easily create your own notification  
script to act as a wrapper to /bin/mail that filters out those things  
that shouldn't really generate an alert.

--
Marc


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list