Page 1 of 1
apply configuration hangs
Posted: Mon Feb 05, 2018 4:54 am
I made update to 5.4.12. After that I am unable to apply new configuration.
The dialog hangs.
Starting services on command line works but doesnt affect changes.
Re: apply configuration hangs
Posted: Mon Feb 05, 2018 10:37 am
by npolovenko
Hello,
@sysadminqskills.de.
Please run the following command to see if there are any current config errors:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If there are no errors, please run the following commands in order:
Code: Select all
1. service nagios stop
2. service ndo2db stop
3. mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
4. mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
5. service nagios start
6. service ndo2db start
Let me know if this fixed your problem.
Re: apply configuration hangs
Posted: Mon Feb 05, 2018 3:48 pm
thanks for the answer. but that didnt help
I saw the update had an error
NAGIOSQL LOGIN FAILED!
but it shows 5.4.12 and success
Re: apply configuration hangs
Posted: Mon Feb 05, 2018 4:06 pm
by npolovenko
@sysadminqskills.de, Please go over this article:
https://support.nagios.com/kb/article.php?id=34
It troubleshoots NagiosQL login issues.
Can you actually show us the output of this command:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
You can either copy paste it to a forum post or save it to a text file like this:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >> /tmp/thisthing.txt
Please also run this script as the admin user:
Code: Select all
/usr/local/nagiosxi/scripts/reset_config_perms.sh
Re: apply configuration hangs
Posted: Tue Feb 06, 2018 1:49 am
Code: Select all
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...
Warning: Service 'Firewall Cluster' on host 'firewall' has no default contacts or contactgroups defined!
Warning: Service 'Check Netapp Node' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Check Netapp Node' on host 'qsnas01' has no check time period defined!
Warning: Service 'Check Netapp Volume backup' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore prodsystems' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: Commvault' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: VM Stor common' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: VSIM83' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: automic' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: mgmsystems' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX Datastore: veeam' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume ESX VMware' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume HPVData' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume homes' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'Netapps Volume qskills' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'http Interface' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'ssh' on host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Service 'ssh' on host 'qsnas01' has no check time period defined!
Warning: Service 'Backup FIler' on host 'qsnas11' has no default contacts or contactgroups defined!
Warning: Service 'Backup FIler' on host 'qsnas11' has no check time period defined!
Warning: Service 'Http' on host 'qsnas11' has no default contacts or contactgroups defined!
Warning: Service 'Http' on host 'qsnas11' has no check time period defined!
Warning: Service 'Produktiver VM Datastore Backup' on host 'qsnas11' has no default contacts or contactgroups defined!
Warning: Service 'SSH' on host 'qsnas11' has no default contacts or contactgroups defined!
Warning: Service 'SSH' on host 'qsnas11' has no check time period defined!
Warning: Service 'VM Datastore Manamgement Systems Backup' on host 'qsnas11' has no default contacts or contactgroups defined!
Warning: Service 'qskills Share Backup' on host 'qsnas11' has no default contacts or contactgroups defined!
Checked 390 services.
Warning: Host 'elearning.qskills.de' has no default contacts or contactgroups defined!
Warning: Host 'firewall' has no default contacts or contactgroups defined!
Warning: Host 'qsnas01' has no default contacts or contactgroups defined!
Warning: Host 'qsnas11' has no default contacts or contactgroups defined!
Checked 49 hosts.
Checked 8 host groups.
Checked 24 service groups.
Checked 8 contacts.
Checked 2 contact groups.
Checked 130 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 49 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 31
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: apply configuration hangs
Posted: Tue Feb 06, 2018 3:55 am
if run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh on command line i get this:
Code: Select all
[root@qsnagios01 var]# /usr/local/nagiosxi/scripts/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=Ddb8PCecMK3g' -O nagiosql.login--2018-02-06 09:49:21-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosxi/includes/components/ccm/ [following]
--2018-02-06 09:49:21-- https://localhost/nagiosxi/includes/components/ccm/
Connecting to localhost|::1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by `/C=DE/ST=Bavaria/L=Nuremberg/O=qskills/OU=IT/CN=qsnagios01.ad.qsintra.net/[email protected]':
Self-signed certificate encountered.
WARNING: certificate common name `qsnagios01.ad.qsintra.net' doesn't match requested host name `localhost'.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosxi/login.php?redirect=/nagiosxi/includes/components/ccm/index.php%3f&noauth=1 [following]
--2018-02-06 09:49:21-- https://localhost/nagiosxi/login.php?redirect=/nagiosxi/includes/components/ccm/index.php%3f&noauth=1
Connecting to localhost|::1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by `/C=DE/ST=Bavaria/L=Nuremberg/O=qskills/OU=IT/CN=qsnagios01.ad.qsintra.net/[email protected]':
Self-signed certificate encountered.
WARNING: certificate common name `qsnagios01.ad.qsintra.net' doesn't match requested host name `localhost'.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `nagiosql.login'
[ <=> ] 26,012 --.-K/s in 0.01s
2018-02-06 09:49:21 (2.23 MB/s) - `nagiosql.login' saved [26012]
NAGIOSQL LOGIN FAILED!
Re: apply configuration hangs
Posted: Tue Feb 06, 2018 12:49 pm
by npolovenko
@sysadminqskills.de, Seems like you're using SSL with XI. Please go over the tutorial below and make sure you've followed each step:
https://assets.nagios.com/downloads/nag ... 2hEALw_wcB
Re: apply configuration hangs
Posted: Wed Feb 07, 2018 2:33 am
Hi,
thanks for the Link. That solved the issue. I forget to make some changes around the ssl configuration.
This thread can be closed.
Re: apply configuration hangs
Posted: Wed Feb 07, 2018 10:14 am
by npolovenko
@sysadminqskills.de, You're welcome. Locking the thread.