Hi,
i took a backup of server1 (Rhel 7.3) and applied it on server2 (Rhel 7.3) , everything is fine but when i tries to apply configuration, it never ends and throws .
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/Local disk.cfg', starting on line 16)
On server:
find / -name 'Local disk.cfg'
find: '/softlib/instlib/Linux/WSRR/ansible': Permission denied
./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=jNJ0d38KRDij' -O nagiosql.login--2018-05-14 14:27:49-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'nagiosql.login'
[ <=> ] 37,280 --.-K/s in 0.01s
2018-05-14 14:27:50 (3.36 MB/s) - 'nagiosql.login' saved [37280]
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
)
RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=jNJ0d38KRDij' -O nagiosql.login--2018-05-14 14:27:50-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'nagiosql.login'
[ <=> ] 37,280 --.-K/s in 0.01s
2018-05-14 14:27:50 (3.72 MB/s) - 'nagiosql.login' saved [37280]
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-05-14 14:27:50-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'nagiosql.export.monitoring'
[ <=> ] 21,806 --.-K/s in 0.008s
2018-05-14 14:27:51 (2.50 MB/s) - 'nagiosql.export.monitoring' saved [21806]
WRITE CONFIGS SUCCESSFUL!
OUTPUT:
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 49 services.
Checked 3 hosts.
Checked 3 host groups.
Checked 0 service groups.
Checked 8 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 13 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 3 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 13 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
RET: 0
help in solving the issue.
Thanks
"Apply Configuration" never applies
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: "Apply Configuration" never applies
Go to Configure -> CCM -> Services
From the template name drop down select "Local disk"
click the disk icon next to any service in the list.
The object definition stat starts on line 16 is missing either hosts, or a service description
From the template name drop down select "Local disk"
click the disk icon next to any service in the list.
The object definition stat starts on line 16 is missing either hosts, or a service description
Re: "Apply Configuration" never applies
one of the other posts in nagios support helped me to solve the issue. you can close this thread.
Thanks,
Thanks,
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact: