issue alert email once

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
derekchung_8080
Posts: 1
Joined: Thu Feb 06, 2014 4:08 am

issue alert email once

Post by derekchung_8080 »

I am new to Nagios , I have a question about the configuration .

Now , I configed the alert mail will be sent to admin a/c when it found the error ( every 20 minutes ) , if I would like the alert mail only send one time , that mean it only send once it found the error rather than frequently send , would advise what can I do ?

Another question , if the above configuration only apply to a specify group of servers , for example , only five specific servers apply the above configuration , the other servers still send every 20 minutes , would advise what can I do ? thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: issue alert email once

Post by abrist »

derekchung_8080 wrote:Now , I configed the alert mail will be sent to admin a/c when it found the error ( every 20 minutes ) , if I would like the alert mail only send one time , that mean it only send once it found the error rather than frequently send , would advise what can I do ?
This can be accomplished by setting the notification_interval directive in either the host or service definitions to 0. Doing this tells Nagios not to resend notifications for the same event. This option is also present in host and service escalation definitions.
derekchung_8080 wrote:Another question , if the above configuration only apply to a specify group of servers , for example , only five specific servers apply the above configuration , the other servers still send every 20 minutes , would advise what can I do ? thanks
Set the notification_interval setting on a template and only apply that template to those hosts/services.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked