How to customize Nagiso alerts

Breandan Dezendorf breandan at dezendorf.com
Fri Jul 12 17:08:10 CEST 2013


On Thu, Jul 11, 2013 at 4:56 PM, Prabhu Arem <prabhu.arem at gmail.com> wrote:
>
> I have a perl scrip for that generates warning and critical alerts based
on the condition given in the script.
> What I want is that " Nagis should send the warning alerts only if the
condition exists for 1hr. No change is required for critical alert.

Take a look at the $LASTHOSTSTATECHANGE$ and $LASTSERVICESTATECHANGE$
macros.  You can probably get where you want to be using those and doing
some epoch math.

--
Breandan Dezendorf
breandan at dezendorf.com
http://gurucollege.net
https://gurufoto.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130712/d1dea126/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
-------------- next part --------------
_______________________________________________
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