Error when add remote windows server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: Error when add remote windows server

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error when add remote windows server

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rafael
Posts: 21
Joined: Thu Jul 13, 2017 11:06 pm

Re: Error when add remote windows server

Post 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.
Locked