Page 2 of 2

Re: Error when add remote windows server

Posted: Mon Jul 24, 2017 10:22 pm
by rafael
Update,
Website: https://www.nagios.org
Reading configuration data...
Warning: sleep_time is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Warning: p1_file is deprecated and will be removed.
Read main config file okay...
Warning: Duplicate definition found for host 'generic-host' (config file '/usr/local/nagios/etc/objects/templates.cfg', starting on line 52)
Error: Could not add object property in file '/usr/local/nagios/etc/objects/templates.cfg' on line 53.
Error processing object config files!
I was not found Duplicate 'general-host' in somewhere.
Please help me. Tks

Re: Error when add remote windows server

Posted: Tue Jul 25, 2017 12:14 pm
by lmiltchev
Run the following commands and show the output in code wraps:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cf
ls -la -R /usr/local/nagios/etc
Also, post the "/usr/local/nagios/etc/objects/templates.cfg" file.

Re: Error when add remote windows server

Posted: Wed Jul 26, 2017 11:00 pm
by rafael
Hello,

By re-install fresh CentOS/Nagios core/others, it's work for me now. Thank for your all support.

Please tick out SOLVED.