<br><br><div><span class="gmail_quote">On 4/4/07, <b class="gmail_sendername">john</b> <<a href="mailto:lists@cloned.org.uk">lists@cloned.org.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I'm looking for a way to do adaptive notifications on monitoring a single<br>service so that it notifies differently based on different criteria.<br><br>For example, monitoring a network port bandwidth usage, we want an alert
<br>if between:<br><br> 0000 to 0559 - its 12Mbps+ for over 30 mins<br> 0600 to 2359 - its 5Mbps+ for over 3 hrs OR 8Mbps+ for over 30 mins<br><br>I can obviously do this by setting up 3 different services with the<br>appropriate variables and query the thing 3 times, but thats not a
<br>particularly nice solution if you want to monitor hundreds of ports..<br><br>The other option I see is to have the checking script do the processing of<br>this, and then hand it off as critical or warning or whatever to nagios
<br>which then alerts on first status change, but that seems to be part way to<br>building a replacement to nagios ;-)<br><br>Anyone have any suggestions on other ways to do what I want to do?<br><br>Cheers,</blockquote><div>
<br>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.<br><br>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.
<br><br>Rob<br></div><br><br></div><br>