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?
Notification and check intervals
Re: Notification and check intervals
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).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.
This is totally fine. You don't need to check the drive space every 5 minutes.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.
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)?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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification and check intervals
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?
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
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.
Re: Notification and check intervals
So set the interval to 1440? I guess I'll give that a try and see what happens.
Re: Notification and check intervals
Let us know if it works as expected.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notification and check intervals
That worked. Thanks.