Configuration verification failed

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.
Locked
kissland
Posts: 1
Joined: Wed Oct 11, 2017 6:34 am

Configuration verification failed

Post 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?
kyang

Re: Configuration verification failed

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