Page 2 of 3
Re: Warning: Duplicate definition found for command
Posted: Fri Jan 20, 2017 8:09 am
by FabienA
Ok, I will see that and post an other reply when i've checked my files
Thanks a lot!!
Re: Warning: Duplicate definition found for command
Posted: Fri Jan 20, 2017 2:24 pm
by rkennedy
Sounds good - let us know if you have any further questions.
Re: Warning: Duplicate definition found for command
Posted: Mon Jan 23, 2017 1:45 am
by FabienA
I check today if i have duplicate definitions .
Re: Warning: Duplicate definition found for command
Posted: Mon Jan 23, 2017 10:36 am
by dwhitfield
Are you saying checked or that you will check? I just want to be clear.
If you did check, what did you find?
Re: Warning: Duplicate definition found for command
Posted: Thu Jan 26, 2017 10:24 am
by FabienA
Hi i have delete all import files (to my old server), and the duplicates error are fixed.
But now i have this error :
Error: Unexpected token or statement in file '/usr/local/nagios/etc/cgi.cfg' on line 14.
The line 14 is the path of my nagios.cfg file.. and he is correct ...
I don't know how fixed that..
Thank you
Re: Warning: Duplicate definition found for command
Posted: Thu Jan 26, 2017 10:31 am
by dwhitfield
Please post your /usr/local/nagios/etc/cgi.cfg
Also, my guess is you've got a character(s) on line 13 or 15 that's causing line 14 not to show up as a separate entry.
Re: Warning: Duplicate definition found for command
Posted: Fri Jan 27, 2017 8:29 am
by FabienA
I post my cgi.cfg
Re: Warning: Duplicate definition found for command
Posted: Fri Jan 27, 2017 8:31 am
by FabienA
#################################################################
#
# CGI.CFG - Sample CGI Configuration File for Nagios 4.2.4
#
#
#################################################################
# MAIN CONFIGURATION FILE
# This tells the CGIs where to find your main configuration file.
# The CGIs will read the main and host config files for any other
# data they might need.
main_config_file=/usr/local/nagios/etc/nagios.cfg
# PHYSICAL HTML PATH
# This is the path where the HTML files for Nagios reside. This
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.
physical_html_path=/usr/local/nagios/share
# URL HTML PATH
# This is the path portion of the URL that corresponds to the
# physical location of the Nagios HTML files (as defined above).
# This value is used by the CGIs to locate the online documentation
# and graphics. If you access the Nagios pages with an URL like
#
http://www.myhost.com/nagios, this value should be '/nagios'
# (without the quotes).
url_html_path=/nagios
[...]
Re: Warning: Duplicate definition found for command
Posted: Fri Jan 27, 2017 11:14 am
by tmcdonald
Can you attach the file as a response? Your copy+paste got cut off.
Re: Warning: Duplicate definition found for command
Posted: Tue Jan 31, 2017 7:02 am
by FabienA
Yes i can
Thanks