Page 1 of 1

[Bug] Recurring downtime with wildcard not visible

Posted: Wed Aug 07, 2019 9:54 am
by gmackey
Hello, I recently upgraded to 5.6.5 from 5.5.? and I'm noticing an issue with recurring downtime. It is possible this issue may have existed before the upgrade and I'm just now noticing it. I have a CPU usage monitor on a specific Windows server that is scheduled for recurring downtime each night for an hour or so. The issue is that this recurring downtime no longer appears anywhere in "Incident Management -> Recurring Downtime"! I can see it is still getting scheduled each night in scheduled downtime and starts with "AUTO", but it is nowhere to be found in Recurring Downtime. I imagine this is not the only one I'm missing there. Could you please help me to restore the Recurring Downtime views to show everything that's scheduled there? Thanks!

Re: Hidden recurring downtime

Posted: Wed Aug 07, 2019 12:12 pm
by scottwilkerson
somewhere something must have gotten lost in the DB durring the migration, here is what I would suggest, edit the following file
/usr/local/nagios/etc/recurringdowntime.cfg
You will see blocks similar to the following

Code: Select all

define schedule {
        sid             f085a03d0b86e4ad5abd327ba08e6efc
        user            nagiosadmin
        comment
        time            00:00
        duration                60
        days_of_week            mon,tue,wed,thu,fri,sat,sun
        days_of_month
        schedule_type           host
        host_name               ScottsServer
}
I would suggest finding the entry that isn't showing in the UI and remove that block.

Then re-add it through the UI

Re: Hidden recurring downtime

Posted: Wed Aug 07, 2019 2:13 pm
by gmackey
Yep, I see them in there. Thanks, I will do that. Please feel free to lock this thread and consider the issue resolved.

Re: Hidden recurring downtime

Posted: Wed Aug 07, 2019 2:28 pm
by gmackey
As a follow up, I found a Nagios XI bug. When using a wildcard, as it says you can use (and it does work), the service will no longer display in the Services tab in Recurring Downtime. Here was the problem config. Removing the wildcard character immediately resolved the issue without restarting anything. The services encompassed by the wildcard were "CPU Usage - Total" and "CPU Usage - Core [2]".

Code: Select all

define schedule {
        sid                     49cd3825f88b38871f43673ffc6fcc0a
        user                    adm-gmackey
        comment                 D2LDataDownload task - Full D2L export and import into Civitas
        time                    05:00
        duration                90
        days_of_week
        days_of_month
        months_of_year
        schedule_type           service
        service_description     CPU Usage - *
        host_name               Zelus
}

Re: [Bug] Recurring downtime with wildcard not visible

Posted: Wed Aug 07, 2019 3:20 pm
by scottwilkerson
Thanks for the followup and I have confirmed this is a bug and filed the bug report

Code: Select all

NEW TASK ID 14388 created - Nagios XI Bug Report: Recurring Service Downtime with Wildcards do not display in UI