<div dir="ltr">On Thu, Jul 11, 2013 at 4:56 PM, Prabhu Arem <<a href="mailto:prabhu.arem@gmail.com">prabhu.arem@gmail.com</a>> wrote:<br>><br>> I have a perl scrip for that generates warning and critical alerts based on the condition given in the script.<br>
> 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.<br><br>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.<br>
<br>--<br>Breandan Dezendorf<br><a href="mailto:breandan@dezendorf.com">breandan@dezendorf.com</a><br><a href="http://gurucollege.net">http://gurucollege.net</a><br><a href="https://gurufoto.net">https://gurufoto.net</a><br>
</div>