How to troubleshoot Configuration Wizard issues...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

Install of Nagios:
1 Nagios XI 5.2.3
2 Redhat 6.7
3 64bit
4 Manual Install of XI

I'm trying to monitor a Solaris server.
1) The Solaris server has the NRPE agent installed (2.14) with the nagios server ip in allowed_hosts.
2) When I go to the Configuration Wizard, I just get "Waiting for configuration verification......................." repeating and never ending....

Where do I start looking at troubleshooting? What logs Server side or Client side?

Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to troubleshoot Configuration Wizard issues...

Post by tmcdonald »

Please run the following command as root from the Nagios server command line and post last 20 or so lines of output: /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Former Nagios employee
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53
PHP Warning: feof() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 51
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in /usr/local/nagiosxi/scripts/nagiosql_login.php on line 53


The script ran for 20 minutes and this was repeated over and over.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to troubleshoot Configuration Wizard issues...

Post by rkennedy »

Does your nagiosadmin password contain any characters that aren't alphanumeric?
Former Nagios Employee
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

Yes.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to troubleshoot Configuration Wizard issues...

Post by hsmith »

Are you making sure the password is wrapped in single quotes?
Former Nagios Employee.
me.
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

Where do I put the password in?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to troubleshoot Configuration Wizard issues...

Post by rkennedy »

lee.krause wrote:Yes.
This may be the issue, depending what the symbol is as this query could be parsing or stripping. Can you try changing your nagiosadmin password to something alphanumeric, and then try again?
Former Nagios Employee
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

Do I change it in the GUI? Or is there somewhere else I need to change it?
lee.krause
Posts: 86
Joined: Wed Jan 20, 2016 8:38 am

Re: How to troubleshoot Configuration Wizard issues...

Post by lee.krause »

Ok I changed the nagiosadmin password and here the last few lines of the script:

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
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 20 services.
Checked 2 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 5 contacts.
Checked 2 contact groups.
Checked 125 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 2 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: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
Locked