Facing the below issue :
1) Apply changes failed after : cp CFCS_sd_vms.cfg /usr/local/nagios/etc/import
Code: Select all
Error: Could not expand dependent service(s) (at config file '/usr/local/nagios/etc/servicedependencies.cfg', starting on line 196)
3) Nagios core validation passed after : cp CFCS_sd_vms.cfg /usr/local/nagios/etc/static
Code: Select all
[nagios@localhost sd_work]$ ls -l /usr/local/nagios/etc/static/
total 148
-rw-rw-r-- 1 nagios nagios 142038 Oct 16 02:52 CFCS_sd_vms.cfg
-rwxrwxr-x 1 apache nagios 878 Mar 13 2018 xiobjects.cfg
-rwxrwxr-x 1 apache nagios 4002 Mar 13 2018 xitemplates.cfg
-rwxrwxr-x 1 apache nagios 0 Mar 13 2018 xitest.cfg
[nagios@localhost sd_work]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 6183 services.
Warning: Host 'CFCS_PROMETHEUS_NODE1' has no default contacts or contactgroups defined!
Checked 56 hosts.
Checked 14 host groups.
Checked 6 service groups.
Checked 3 contacts.
Checked 3 contact groups.
Checked 145 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 56 hosts
Checked 2476 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 1
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check