Page 3 of 3
Re: Warning: Duplicate definition found for command
Posted: Tue Jan 31, 2017 5:25 pm
by mcapra
Can you share the actual file rather than the output of more? That command is adding lines to the output and throwing off the line count. Stuff like this:
Do you know if cgi.cfg was modified using a Windows based text editor of some sort? Or has it not been touched at all? I copy+pasted your cgi.cfg into my environment and couldn't reproduce the issues, which leads me to believe there may be some encoding problems.
Re: Warning: Duplicate definition found for command
Posted: Thu Feb 02, 2017 7:10 am
by FabienA
Ha... I'm sorry i have capture the configuration file with putty..
I will retry the capture without the adding lines.
Re: Warning: Duplicate definition found for command
Posted: Thu Feb 02, 2017 7:26 am
by FabienA
This is the cgi configuration without adding lines
Thanks !!
Re: Warning: Duplicate definition found for command
Posted: Thu Feb 02, 2017 3:49 pm
by tgriep
The error may be in the nagios.cfg file so could you post that file here so we can view it?
Also, can you run the following commands on the Nagios system and post the output?
Code: Select all
dos2unix /usr/local/nagios/etc/cgi.cfg
/usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg