Page 1 of 1

Configuration verification failed

Posted: Wed Oct 11, 2017 6:42 am
by kissland
Hi there,

When adding a printer to be monitored I'm getting the following - Configuration verification failed - I then visit Configuration Snapshots area and find Config Error.

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Ping' on host 'hereismyhostname.host' (config file '/usr/local/nagios/etc/services/hereismyhostname.cfg', starting on line 46)


The log goes on quite a bit with similar duplicates going on.

Any ideas?

Re: Configuration verification failed

Posted: Wed Oct 11, 2017 9:23 am
by kyang
Duplicate definition found for service 'Ping' on host 'hereismyhostname.host' (config file '/usr/local/nagios/etc/services/hereismyhostname.cfg', starting on line 46
Could you post your cfg file for that host?

Code: Select all

cat /usr/local/nagios/etc/services/host.cfg
How many errors is it showing? Is it for the same host? If not you can post the other cfg files for the other hosts as well.