To verify that your object configuration files do not contain errors, you can use 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 the following:
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
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
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 the configuration will be accepted by Naemon. However, any errors need 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.