Notification and check intervals

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Notification and check intervals

Post by jkinning »

When setting up some checks for our Non Production environment we would only like to get 1 email notifications per day on some checks and on others 1 every 4 hours during the hours of 6am - 6pm. The production servers will be 24x7 with the default intervals.

I have created a custom time period for M-F from 6am - 6pm. On the checks in which I only want one notification email per day I have the notification interval empty along with the w,c,r options checked. On the service checks I want notified every 4 hours I have those options w,c,r checked and the notification interval as 240. Before I pulled the trigger and applied the settings I wanted to get some confirmation from the "experts".

Also, I wanted to check my disk space less frequently, or does it really matter? I thought about just checking drive space every hour instead of every 5 minutes.

The main goal is to prevent getting bombarded with email notifications for servers that still have space. Is it better to change the notification intervals or just change the check threshold? Instead of something like -w 80 -c 90 use something like -w 85 -c 95?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification and check intervals

Post by lmiltchev »

On the checks in which I only want one notification email per day I have the notification interval empty along with the w,c,r options checked.
When you say "empty" you mean "0" (zero), correct? When you use zero, nagios won't be re-notifying contacts about problems for this host/service (only one problem alert will be sent).
Also, I wanted to check my disk space less frequently, or does it really matter? I thought about just checking drive space every hour instead of every 5 minutes.
This is totally fine. You don't need to check the drive space every 5 minutes.
The main goal is to prevent getting bombarded with email notifications for servers that still have space. Is it better to change the notification intervals or just change the check threshold? Instead of something like -w 80 -c 90 use something like -w 85 -c 95?
You need to have thresholds that "make sense" for your environment. If you have only 5% HDD space left, how fast it would fill up (before you take any corrective actions)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notification and check intervals

Post by jkinning »

So using 0, zero, will that notify once per day or just one and done?

What would I need to use in order to notify once per day?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notification and check intervals

Post by slansing »

Once per day? Well you could define the time in minutes for an entire day, but that would be after the initial retries are met, so it would be skewed a little bit.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notification and check intervals

Post by jkinning »

So set the interval to 1440? I guess I'll give that a try and see what happens.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notification and check intervals

Post by lmiltchev »

Let us know if it works as expected.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notification and check intervals

Post by jkinning »

That worked. Thanks.
Locked