Hi,
I have two services which i set as a recurring downtime for all weeks, all months. They're set not to be monitored from 17:01pm till 06:59am.
However i could see that an alert was raised at 06:08am (which is between the time frames mentioned) and was visible in the operations center.
My thinking was that a schedule downtime monitor should fire alerts ONLY between those times. Am i missing something?
Attached are screenshot of such settings.
Rgds,
Matthew
Recurring scheduled downtime - Alarming visible
Recurring scheduled downtime - Alarming visible
You do not have the required permissions to view the files attached to this post.
Re: Recurring scheduled downtime - Alarming visible
Hi,
The downtime does not mean that you stop to monitor the nodes/services, but that you not send notification/escalation/etc.
You can also calculate Service Availability with or without downtime periods.
If you want to stop the monitoring you have to stop active (and passive) check during your chosen time period.
I kindly ask to Nagios expert to correct me if I'm wrong
The downtime does not mean that you stop to monitor the nodes/services, but that you not send notification/escalation/etc.
You can also calculate Service Availability with or without downtime periods.
If you want to stop the monitoring you have to stop active (and passive) check during your chosen time period.
I kindly ask to Nagios expert to correct me if I'm wrong
-
kyang
Re: Recurring scheduled downtime - Alarming visible
Thanks @Francesco!
Were there any issues with your cron job for recurring downtime?
https://support.nagios.com/kb/article.php?id=61
Following one of our kb articles for troubleshooting.
Can you post the output of this command?
And PM or post these files. Thanks!
Scheduled downtime should only alert you after the period is over. Do you receive scheduled downtime starts and end notifications?My thinking was that a schedule downtime monitor should fire alerts ONLY between those times. Am i missing something?
Were there any issues with your cron job for recurring downtime?
https://support.nagios.com/kb/article.php?id=61
Following one of our kb articles for troubleshooting.
Can you post the output of this command?
Code: Select all
cat /etc/cron.d/nagiosxi | grep recurringdowntimeCode: Select all
/usr/local/nagiosxi/var/recurringdowntime.logCode: Select all
/usr/local/nagios/etc/recurringdowntime.cfgRe: Recurring scheduled downtime - Alarming visible
Hi,
There were no issues in the cron. Also the log file doesn't produce any errors.
To be clear, what we are after is that if a service has problems it will not be displayed in the operations center (We don't use notifications) if this occurs between those two timeframes. if the problem is still on, then it should be displayed after the period is over.
My doubt was that i had a timeframe from 17:00 pm to 07:59, but the alert on this service was raised at 06:08, being between those timeframes.
Honestly i saw the alarm on the service history of the service, so i cannot fully confirm that it was also visible on the Operations Centre!
Log attached.
Rgds,
Matthew
There were no issues in the cron. Also the log file doesn't produce any errors.
To be clear, what we are after is that if a service has problems it will not be displayed in the operations center (We don't use notifications) if this occurs between those two timeframes. if the problem is still on, then it should be displayed after the period is over.
My doubt was that i had a timeframe from 17:00 pm to 07:59, but the alert on this service was raised at 06:08, being between those timeframes.
Honestly i saw the alarm on the service history of the service, so i cannot fully confirm that it was also visible on the Operations Centre!
Code: Select all
cat /etc/cron.d/nagiosxi | grep recurringdowntime
01 * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1Code: Select all
define schedule {
sid e1803424bab43ce2ce5b30bb67567a55
user nagiosadmin
comment Downtime - 00:00 till 06:59
time 00:00
duration 419
days_of_week
days_of_month
months_of_year
schedule_type service
service_description 200_S-itops-Linux002_TimeElapsedSinceLastFileModification*
host_name woe-sha-ciot01-p_v-itops
}
define schedule {
sid 6f35062ba51d20ae18e7119e4a2162c4
user nagiosadmin
comment Office Hours (including weekend)
time 17:01
duration 899
days_of_week
days_of_month
months_of_year
schedule_type service
service_description 100_T-Billing-MSSQL036_KPN File Processing*
host_name am1-sha-dbcls1-p_w-itinfra
}
Rgds,
Matthew
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Recurring scheduled downtime - Alarming visible
Thanks for the information.
What OS and version of XI are you on?
I'm going to try and attempt to test this. I would like to see if come across this, and I'll take a look at the operations center to see if its visible in there.
Have you seen this happen before in the past or just recently?
What OS and version of XI are you on?
I'm going to try and attempt to test this. I would like to see if come across this, and I'll take a look at the operations center to see if its visible in there.
Have you seen this happen before in the past or just recently?
Re: Recurring scheduled downtime - Alarming visible
Hi,
The OS is CentOS 6.9 with the 5.4.12 for XI. It's recent since it was the first time i needed to schedule a recurring downtime for a service.
Rgds,
Matt
The OS is CentOS 6.9 with the 5.4.12 for XI. It's recent since it was the first time i needed to schedule a recurring downtime for a service.
Rgds,
Matt
-
kyang
Re: Recurring scheduled downtime - Alarming visible
I tested this out with a few services and have not received any visible alarms during downtime.
Nothing shows up in Operations Center either.
Please continue to review it, and if you see the issue happens again.
Let us know and provide your Nagios XI profile.
Nagios XI Profile Instructions --> On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.
If you receive a PROFILE BUILD FAILED
Please follow this article,
https://support.nagios.com/kb/article.p ... ategory=44
Thanks!
Nothing shows up in Operations Center either.
Please continue to review it, and if you see the issue happens again.
Let us know and provide your Nagios XI profile.
Nagios XI Profile Instructions --> On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.
If you receive a PROFILE BUILD FAILED
Please follow this article,
https://support.nagios.com/kb/article.p ... ategory=44
Thanks!
Re: Recurring scheduled downtime - Alarming visible
Hi,
Thanks. Will continue to review and test accordingly in the meantime profile is attached.
Rgds,
Thanks. Will continue to review and test accordingly in the meantime profile is attached.
Rgds,
You do not have the required permissions to view the files attached to this post.
-
kyang
Re: Recurring scheduled downtime - Alarming visible
Thanks for the update and profile.
Please keep us updated and provide screenshots or examples if you see this issue again.
Please keep us updated and provide screenshots or examples if you see this issue again.