Warning: Duplicate definition found for command

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.
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post by FabienA »

Ok, I will see that and post an other reply when i've checked my files

Thanks a lot!!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Warning: Duplicate definition found for command

Post by rkennedy »

Sounds good - let us know if you have any further questions.
Former Nagios Employee
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post by FabienA »

I check today if i have duplicate definitions .
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Warning: Duplicate definition found for command

Post 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?
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Warning: Duplicate definition found for command

Post 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.
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post by FabienA »

I post my cgi.cfg
Last edited by FabienA on Fri Jan 27, 2017 8:32 am, edited 1 time in total.
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post 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

[...]
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Warning: Duplicate definition found for command

Post by tmcdonald »

Can you attach the file as a response? Your copy+paste got cut off.
Former Nagios employee
FabienA
Posts: 16
Joined: Thu Jan 12, 2017 8:17 am

Re: Warning: Duplicate definition found for command

Post by FabienA »

Yes i can

Thanks
Attachments
cgi.log
(13.13 KiB) Downloaded 212 times
Locked