On 4/4/07, john <[EMAIL PROTECTED]> wrote:

Hi,
I'm looking for a way to do adaptive notifications on monitoring a single
service so that it notifies differently based on different criteria.

For example, monitoring a network port bandwidth usage, we want an alert
if between:

0000 to 0559 - its 12Mbps+ for over 30 mins
0600 to 2359 - its 5Mbps+ for over 3 hrs OR 8Mbps+ for over 30 mins

I can obviously do this by setting up 3 different services with the
appropriate variables and query the thing 3 times, but thats not a
particularly nice solution if you want to monitor hundreds of ports..

The other option I see is to have the checking script do the processing of
this, and then hand it off as critical or warning or whatever to nagios
which then alerts on first status change, but that seems to be part way to
building a replacement to nagios ;-)

Anyone have any suggestions on other ways to do what I want to do?

Cheers,


Unfortunately I think you've covered all the traditional way of doing this.
I guess it comes down to your preference of the lesser of two evils as to
which you implement.

Perhaps another option for you is to look at using a NEBModule. This could
change the command line definition for your service check_command based
around the time of day. This is possible as NEBModules have access to all of
the internal object data stores in Nagios by interfacing directly with the
daemon.

Rob
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to