apply configuration hangs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 13
Joined: Tue Nov 07, 2017 3:10 am

apply configuration hangs

Post by [email protected] »

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.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: apply configuration hangs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
[email protected]
Posts: 13
Joined: Tue Nov 07, 2017 3:10 am

Re: apply configuration hangs

Post by [email protected] »

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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: apply configuration hangs

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
[email protected]
Posts: 13
Joined: Tue Nov 07, 2017 3:10 am

Re: apply configuration hangs

Post by [email protected] »

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
[email protected]
Posts: 13
Joined: Tue Nov 07, 2017 3:10 am

Re: apply configuration hangs

Post by [email protected] »

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!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: apply configuration hangs

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
[email protected]
Posts: 13
Joined: Tue Nov 07, 2017 3:10 am

Re: apply configuration hangs

Post by [email protected] »

Hi,

thanks for the Link. That solved the issue. I forget to make some changes around the ssl configuration.
This thread can be closed.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: apply configuration hangs

Post by npolovenko »

@sysadminqskills.de, You're welcome. Locking the thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked