NagiosXI - time period exclusions not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

NagiosXI - time period exclusions not working

Post by Bala.Mutyam »

Hi,

I have a configured NagiosXI template to ignore checks/notifications for specific time periods but not working and I'm still receiving notifications and checks also running during exclusion time period. I have tried moving configs up and deleting and re-creating configs but no luck. Can you please help me?

Here are the definitions:

Time Periods:

Code: Select all

define timeperiod {
    timeperiod_name         cp_standard_timeperiod_for_175oe1p
    alias                   CP standard timings for bmds175oe01p
    exclude                 cp_progress_db_exclusions_time_period
    sunday                  00:00-24:00
    monday                  00:00-24:00
    tuesday                 00:00-24:00
    wednesday               00:00-24:00
    thursday                00:00-24:00
    friday                  00:00-24:00
    saturday                00:00-24:00
}

Code: Select all

define timeperiod {
    timeperiod_name         cp_progress_db_exclusions_time_period
    alias                   Disable Monitoring during Maintenance
    sunday                  23:30-03:00
    monday                  23:30-03:00
    tuesday                 23:30-03:00
    wednesday               23:30-03:00
    thursday                23:30-03:00
    friday                  23:30-03:00
    saturday                23:30-03:00
}
Service Template:

Code: Select all

define service {
    name                            cp_linux_prod_progress_service_checks_template
    hostgroup_name                  CP_Linux_Progress_Prod
    service_description             Service Checks for Prod Progress Server
    max_check_attempts              5
    check_period                    cp_standard_timeperiod_for_175oe1p
    notification_interval           720
    notification_period             cp_standard_timeperiod_for_175oe1p
    contacts                        ADMc65817EU
    register                        0
}
Example Service Definition:

Code: Select all

define service {
    service_description    Q Warranty Report
    use                    cp_linux_prod_progress_service_checks_template
    check_command          check_xi_ncpa!-t 'NagiosXi' -P 5693 -M 'plugins/check_procs' -q 'args=-w 1:2 -u progress -a /pin/bin/warranty_rep.pf'!!!!!!!
    register               1
}
hostgroups:

Code: Select all

define hostgroup {
    hostgroup_name    CP_Linux_Progress_Prod
    alias             CP Progress Prod Servers
    members           member1
}
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI - time period exclusions not working

Post by ssax »

I'm pretty sure you'd need to define your exclude like this:

Code: Select all

define timeperiod {
    timeperiod_name         cp_progress_db_exclusions_time_period
    alias                   Disable Monitoring during Maintenance
    sunday                  00:00-03:00,23:30-24:00
    monday                  00:00-03:00,23:30-24:00
    tuesday                 00:00-03:00,23:30-24:00
    wednesday               00:00-03:00,23:30-24:00
    thursday                00:00-03:00,23:30-24:00
    friday                  00:00-03:00,23:30-24:00
    saturday                00:00-03:00,23:30-24:00
}
EDIT: I just labbed this up and it doesn't seem to be honoring the excludes (at least for the notifications).

EDIT2: This is working properly after changing my system time to match the exclude, I think the changes above to your timeperiod will fix your issue.

What XI version are you running? You can find it on the bottom left hand side of the web interface after logging in.

What Core version are you running?

Code: Select all

/usr/local/nagios/bin/nagios -V
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: NagiosXI - time period exclusions not working

Post by Bala.Mutyam »

Hi @ssax,

Thanks for the update.

I have made the changes and monitor tonight.
What XI version are you running?
5.8.2
What Core version are you running?
Nagios Core 4.4.6
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI - time period exclusions not working

Post by ssax »

Sounds good, I'll keep an eye out for your update.
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: NagiosXI - time period exclusions not working

Post by Bala.Mutyam »

Hi @ssax,

The time periods are working fine, happy to mark it as resolved.

Thanks for your help.

Regards
Bala
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI - time period exclusions not working

Post by lmiltchev »

Great! I am glad that the issue has been resolved! Locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked