Page 1 of 1

Recurring scheduled downtime - Alarming visible

Posted: Mon Feb 19, 2018 3:41 am
by nms
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

Re: Recurring scheduled downtime - Alarming visible

Posted: Mon Feb 19, 2018 11:04 am
by Francesco
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

Re: Recurring scheduled downtime - Alarming visible

Posted: Mon Feb 19, 2018 1:00 pm
by kyang
Thanks @Francesco!
My thinking was that a schedule downtime monitor should fire alerts ONLY between those times. Am i missing something?
Scheduled downtime should only alert you after the period is over. Do you receive scheduled downtime starts and end notifications?

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 recurringdowntime
And PM or post these files. Thanks!

Code: Select all

/usr/local/nagiosxi/var/recurringdowntime.log

Code: Select all

/usr/local/nagios/etc/recurringdowntime.cfg

Re: Recurring scheduled downtime - Alarming visible

Posted: Tue Feb 20, 2018 6:50 am
by nms
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!

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>&1

Code: 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
}
Log attached.

Rgds,

Matthew

Re: Recurring scheduled downtime - Alarming visible

Posted: Tue Feb 20, 2018 2:43 pm
by kyang
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?

Re: Recurring scheduled downtime - Alarming visible

Posted: Wed Feb 21, 2018 3:11 pm
by nms
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

Re: Recurring scheduled downtime - Alarming visible

Posted: Wed Feb 21, 2018 5:19 pm
by kyang
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!

Re: Recurring scheduled downtime - Alarming visible

Posted: Mon Feb 26, 2018 3:50 am
by nms
Hi,

Thanks. Will continue to review and test accordingly in the meantime profile is attached.

Rgds,

Re: Recurring scheduled downtime - Alarming visible

Posted: Mon Feb 26, 2018 11:22 am
by kyang
Thanks for the update and profile.

Please keep us updated and provide screenshots or examples if you see this issue again.