Hi,
when I apply configuration I receive an error:
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 73.
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)
the contact file is corrupt because I tried to change manually some contact.
I have already followed this procedure step by step : https://assets.nagios.com/downloads/nag ... tabase.pdf
- Now I have deleted all monitored servers,
is it possible to have a procedure to reset everything and start from scratch with the configuration?
thank you
Walter
Ticket#2017112310000109 contacts error when I Apply Config
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Ticket#2017112310000109 contacts error when I Apply Con
If that's really what you want to do, yes: /usr/local/nagiosxi/scripts/restore_defaults.shZagon007 wrote: is it possible to have a procedure to reset everything and start from scratch with the configuration?
If you want to just go back before the issue though, you could use /usr/local/nagiosxi/scripts/restore_xi.sh if you have a backup. For more info on the backup/restore procedure, please see https://assets.nagios.com/downloads/nag ... ios-XI.pdf