Page 1 of 1
Time Periods Question
Posted: Tue Aug 19, 2014 12:58 pm
by bowmant
I am trying to get some time periods working so not all my devices and services alert after hours. Many are simply not critical 24/7.
In CCM, Time Periods. I have defined "Workhours-TEST" that consists of 5 daily entries in this format:
monday 08:00-17:00
I also have an exclusion called "TEST-exclude" with a single time peiod:
monday 11:45-12:45
I put that exclusion under the "Manage time period exclusion" link, saved it, and applied.
I then edited my test Windows host, "Websense", Alert Settings tab, and changed the Notification period to "workhours-TEST."
For good measure, I also made sure the Websense c: drive disk check Alert Settings tab was also set to workhours-TEST.
I waited until 11:46 or so and changed the c: drive disk check to low enough values it went to critical.
What did I miss? Am I using this feature incorrectly?
The goal is to simply make some hosts (and if a host is set, are all services on that host also set?) and some services to not alert during certain time frames. I would like checks to continue, just not be bugged with an email in the middle of the night.
Thanks,
Todd Bowman
Re: Time Periods Question
Posted: Tue Aug 19, 2014 4:14 pm
by tmcdonald
Two things:
1.) You only changed the Alert timeperiod, not the Check timeperiod, so at 11:46 it checked and came back as critical - this is expected since it is checking 24/7
2.) If you just want to receive alerts between 08:00 and 17:00 you don't need any exclusions
What specifically were you expecting to happen when you lowered the thresholds?
Re: Time Periods Question
Posted: Tue Aug 19, 2014 4:40 pm
by bowmant
I was testing a workhours period so I know how to set it up once we determine exactly what systems we don't want to be alerted on at certain times of the day.
When I lowered the disk threshold so it would be critical, I expected to see the alert in the Nagios web console but NOT receive an email about the problem. I would have expected the system to send the email at 12:45, after my test exclusion ended.
What did I configure wrong? I'd prefer the checks continue even with no alerting so we can review graphs of what is happening over night if we want.
Re: Time Periods Question
Posted: Tue Aug 19, 2014 4:50 pm
by tmcdonald
Ahh, you never mentioned in your first post that you *did* receive an email for that.
First things to check is making sure that the time on your server is what you think it is. If you lowered the thresholds at 11:46 your time but the server still thought it was 11:44 then it would send. Also make sure that the server is in the proper timezone. 11:46 for you may be 10:46 for Nagios.
You should be able to run
Code: Select all
grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
to get a good idea if your time settings are matching up or not.
Re: Time Periods Question
Posted: Tue Aug 19, 2014 5:06 pm
by bowmant
Yes, I see I didn't mention the part about getting the email. Been one of those days, sorry. It was, uhh, implied.
Anyway, the time on the server is correct, as is the timezone. Matches my workstation perfectly.
Re: Time Periods Question
Posted: Wed Aug 20, 2014 4:35 pm
by tmcdonald
Can I get a copy of your profile? In the XI web interface, go to Admin -> System Profile and click the blue "Download Profile" button. Then send the profile.zip to me in a private message.
Tech Note: Profile received and placed in directory
Re: Time Periods Question
Posted: Thu Aug 21, 2014 8:14 am
by bowmant
Profile uploaded! Let me know if you need anything else.
Re: Time Periods Question
Posted: Thu Aug 21, 2014 2:49 pm
by abrist
I must be missing something in your configs because the configs look fine. Which host/service checks have the exclusion?
If this is a time-sensitive query (pun intended), please send an email to
[email protected] to open a ticket (if you have support on your account).
Re: Time Periods Question
Posted: Tue Aug 26, 2014 9:10 am
by bowmant
Sorry, for some reason I just now saw this reply. No, this isn't really urgent, just something I want to get set up and configured as part of tweaking all our settings.
I'll check our configs and re-test today or tomorrow and post an update.
Re: Time Periods Question
Posted: Tue Aug 26, 2014 11:04 am
by slansing
Great! It would be greatly helpful if you did open a ticket for this, though as it is not a pressing issue it's totally up to you of course. It's just easier for us to track, and allows us to centralize all the information you send us in a secure fashion.