Timeperiod Corruption - Unable to Apply Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Timeperiod Corruption - Unable to Apply Configuration

Post by rajasegar »

Code: Select all

###############################################################################
#
# Timeperiod configuration file
#
# Created by: Nagios Core Config Manager 2.3.3
# Date:       2015-06-26 13:33:28
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define timeperiod {
        alias                                   Notification Times for cimb ib gcls app support
        timeperiod_name cimb ib gcls app                        support_notification_times
        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
        sunday                                  00:00-24:00
        }


The timeperiod above is causing Apply configuration to fail. If I delete this from the timeperiod.cfg config files and restart the nagios service it starts up fine.
Please advice how to get rid of this entry. It cannot be found in the CCM - TimePeriod.

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Timeperiod Corruption - Unable to Apply Configuration

Post by lmiltchev »

You didn't define this time period in the "/usr/local/nagios/etc/static/" directory, did you? Do you get any config errors, when you run the Write Config Tool?

CCM->Tools->Write Config Files->Delete->Write->Verify
It cannot be found in the CCM - TimePeriod.
Can you go to the CCM->Time Periods, enter "cimb" in the "Search" bar, hit "Enter", and show us a screenshot of the results?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Timeperiod Corruption - Unable to Apply Configuration

Post by tgriep »

After you delete this entry from the timeperiod.cfg, does it still cause an error when you Apply the Configuration?
If so, can you run the following in a shell, Apply the Configuration and post back the output of the tail command?

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Timeperiod Corruption - Unable to Apply Configuration

Post by rajasegar »

lmiltchev wrote:You didn't define this time period in the "/usr/local/nagios/etc/static/" directory, did you? Do you get any config errors, when you run the Write Config Tool?

CCM->Tools->Write Config Files->Delete->Write->Verify
It cannot be found in the CCM - TimePeriod.
Can you go to the CCM->Time Periods, enter "cimb" in the "Search" bar, hit "Enter", and show us a screenshot of the results?
No nothing was added in etc/static.
Tried the Write, Delete, Write, Verify.
It took me 3 Write cycles before it finally writes all to the disk. First few times it just stops half way.
Verify complains this and that was missing.
After that it started up just fine.

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Timeperiod Corruption - Unable to Apply Configuration

Post by rajasegar »

tgriep wrote:After you delete this entry from the timeperiod.cfg, does it still cause an error when you Apply the Configuration?
If so, can you run the following in a shell, Apply the Configuration and post back the output of the tail command?

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
The problem already resolved by the Write, Delete Write Verify cycle.
Thanks anyway.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Timeperiod Corruption - Unable to Apply Configuration

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked