Ticket#2017112310000109 contacts error when I Apply Config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Zagon007
Posts: 14
Joined: Tue Jul 11, 2017 2:55 am

Ticket#2017112310000109 contacts error when I Apply Config

Post by Zagon007 »

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
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

Post by dwhitfield »

Zagon007 wrote: is it possible to have a procedure to reset everything and start from scratch with the configuration?
If that's really what you want to do, yes: /usr/local/nagiosxi/scripts/restore_defaults.sh

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
Locked