Re: How to customize Nagiso alerts

Breandan Dezendorf <[email protected]> Fri, 12 Jul 2013 11:08:10 -0400
Newsgroups gmane.network.nagios.user
Message-ID <CAAmXQ70cGbej0SgSKq3PK0w-9m=o=JwTdbh8eN91YOsnyu3Hdg@mail.gmail.com>
On Thu, Jul 11, 2013 at 4:56 PM, Prabhu Arem <[email protected]> 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
[email protected]
http://gurucollege.net
https://gurufoto.net

------------------------------------------------------------------------------
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

_______________________________________________
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