Back to OP5 Monitor FAQ

How to verify and troubleshoot Naemon object configuration files using naemon -v

To verify that your object configuration files do not contain errors, you can run the following command:

## asmonitor naemon -v /opt/monitor/etc/naemon.cfg

Naemon will go through all object configuration files linked to naemon.cfg and verify them. The output looks something like:

Naemon Core 1.2.0.source
Copyright (c) 2013-present Naemon Core Development Team and Community Contributors
Copyright (c) 2009-2013 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
License: GPL

Website: http://www.naemon.org
Reading configuration data...
 Read main config file okay...
 Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Warning: Service 'Check T-Centralen' on host 'dummy1' has no default contacts or contactgroups defined!
Warning: Service 'PING' on host 'dummy1' has no default contacts or contactgroups defined!
Warning: Service 'PING2' on host 'dummy1' has no default contacts or contactgroups defined!
 Checked 164 services.
Warning: Host 'dummy1' has no default contacts or contactgroups defined!
 Checked 9 hosts.
 Checked 6 contacts.
 Checked 45 host groups.
 Checked 1 service groups.
 Checked 2 contact groups.
 Checked 817 commands.
 Checked 6 time periods.
 Checked 1 host escalations.
 Checked 3 service escalations.
Checking for circular paths...
 Checked 9 hosts
 Checked 0 service dependencies
 Checked 0 host dependencies
 Checked 6 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 4
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

In my case, no errors are present. This means that Naemon will accept the configuration. However, anyerrorsneed to be corrected for Naemon to accept the configuration and start.

Note that manual editing of the object configuration files is not supported and that the WebUI should always be used when possible. However, this might be an option when everything else fails. Confer with our Client Services if you are in doubt.

["Geneos"] ["FAQ"]

Was this topic helpful?