Page 1 of 1

Timeperiod Corruption - Unable to Apply Configuration

Posted: Mon Jun 29, 2015 5:16 am
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

Re: Timeperiod Corruption - Unable to Apply Configuration

Posted: Mon Jun 29, 2015 8:51 am
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?

Re: Timeperiod Corruption - Unable to Apply Configuration

Posted: Mon Jun 29, 2015 8:53 am
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

Re: Timeperiod Corruption - Unable to Apply Configuration

Posted: Mon Jun 29, 2015 6:16 pm
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

Re: Timeperiod Corruption - Unable to Apply Configuration

Posted: Mon Jun 29, 2015 6:17 pm
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.

Re: Timeperiod Corruption - Unable to Apply Configuration

Posted: Tue Jun 30, 2015 6:29 am
by lmiltchev
I am glad I could help! :)