send alerts with time delay

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
villex46
Posts: 7
Joined: Tue Feb 23, 2016 2:12 pm

send alerts with time delay

Post by villex46 »

Hi!

nagios core we deployed a Centos server. I'd like sending email alerts had a time delay, is it possible?

That is, for example, when we have a peak consumption of RAM, to wait for sending email 5 minutes to see if reduced

thanks!
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: send alerts with time delay

Post by rhassing »

You could use the following example.

Code: Select all

        max_check_attempts              3
        check_interval                  5
        retry_interval                  1
This example will normally check every 5 minutes.
If the check is in warning, or critical it will retry 3 times with an interval of 1 minute.
Rob Hassing
Image
villex46
Posts: 7
Joined: Tue Feb 23, 2016 2:12 pm

Re: send alerts with time delay

Post by villex46 »

thanks for quick reply!

In what file I have to change?
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: send alerts with time delay

Post by rhassing »

That should be it. And of course a restart of Nagios...
Rob Hassing
Image
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: send alerts with time delay

Post by rkennedy »

Thanks @rhassing for the assist while we were sleeping!

@villex46 - let us know if you have any further questions.
Former Nagios Employee
Locked