Page 1 of 1

Nagios Repair DB

Posted: Mon Apr 09, 2018 1:23 pm
by nms
Hi,

I am trying to launch Nagios XI again wit ha repair database. I'm left with these errors now:

Code: Select all

Warning: Duplicate definition found for contact 'nagiosadmin' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 16)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 17.
Error: Service notification period 'nagiosadmin_notification_times' specified for contact 'nagiosadmin' is not defined anywhere!
Error: Could not register contact (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 16)
   Error processing object config files!
any idea how i can proceed?
The problem is that i have a backup on a remote machine but it's outdated (2months) so i would not like to loose data. At least loosing contact pr groups will not be a big concern

Can you kindly help?

Re: Nagios Repair DB

Posted: Mon Apr 09, 2018 1:28 pm
by scottwilkerson
I believe there is a problem with this timeperiod
nagiosadmin_notification_times

If you go to CCM -> Time Periods
Click the disk icon next to any of the entries and post the whole result back to the forum for evaluation