Page 1 of 2

Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 10:04 am
by mvargas
Version of Nagio XI 2014R2.7
CentOS 6.6
64bit
VMware Image

In the XI GUI under Admin Menu in: Monitoring Engine Status

Monitor Engine Process: No data
Monitor Engine Event Queue: Scheduled Events Over Time: Error: No output from backend!

When I attempt to restart Nagios Services from XI or apply a configuration request I get Your request was not processed in a timely manner. It may still execute, as the server maybe temporarily busy.

Any help would be appreciated. Thank You!

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 10:19 am
by ssax
SSH into your Nagios XI server as root and run these commands:

Code: Select all

killall -9 nagios
service nagios start
Please post the full output of those commands if there are any errors.

If it starts properly, give it a minute or two then check the XI interface.

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 10:48 am
by mvargas
I received
Starting nagios: done
but I still have no data and Error: No output from the backend.

When I was attempting to start up Nagios Mobile I went into the httpd.conf file and did an edit on something that was commented out. Once it did not work, I just commented out those lines again so I don't know how that would impact my connection from XI.

We recently changed our Nagios IP from an internal to an external IP so that we can reach it externally.

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 10:56 am
by abrist
Did you make sure to change the program url (admin --> manage system settings) when you changed the ip for the nagios server?
Do you have a hardcoded hosts entry for the server with the old ip?

Code: Select all

cat /etc/hosts

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 3:08 pm
by mvargas
I checked the hosts and the IPs match.

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Fri Jun 26, 2015 4:04 pm
by mvargas
I found this that may shed some light as to why the monitoring engine is not connecting:

Last login: Fri Jun 26 10:22:00 2015 from 172.24.36.14
[root@monitor01 ~]# cd /usr/local/nagiosxi/scripts
[root@monitor01 scripts]# ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://loca lhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'subm it=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2015-06-26 15:44:32-- http://localhost/nagiosxi/includes/compon ents/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... failed: Connection refused.
NAGIOSQL LOGIN FAILED!
[root@monitor01 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&user name=nagiosxi&password=n@gweb' -O nagiosql.login--2015-06-26 15:51:10-- http://localhost/nagiosxi/incl udes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... failed: Connection refused.
NAGIOSQL LOGIN FAILED!
You have new mail in /var/spool/mail/root


Any help is greatly appreciated.

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Sun Jun 28, 2015 8:10 pm
by Box293
Are you using a proxy server? You may need to exclude localhost in wgetrc

This article shows you the required steps:

http://support.nagios.com/wiki/index.ph ... th_Proxies

Something else to try.
Open two ssh sessions.

In the first one run:

Code: Select all

tail /var/log/httpd/error_log -f
in the second session run:

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Does the first ssh session output anything?

You might also try the same steps except this time tail the access_log

Code: Select all

tail /var/log/httpd/access_log -f

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Mon Jun 29, 2015 8:45 am
by mvargas
First SSH Session:

Code: Select all

[root@monitor01 ~]# tail /var/log/httpd/error_log -f
[Sun Jun 28 03:28:01 2015] [notice] Digest: generating secret for dige   st authentication ...
[Sun Jun 28 03:28:01 2015] [notice] Digest: done
[Sun Jun 28 03:28:01 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3   .3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal op   erations
Second SSH Session:

Code: Select all

[root@monitor01 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&username=nagiosxi&password=n@gweb' -O nagiosql.login--2015-06-29 08:39:39--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... failed: Connection refused.
Connecting to localhost|127.0.0.1|:80... failed: Connection refused.
NAGIOSQL LOGIN FAILED! 
I am considering building a new Nagios server and figuring out how to Export the data. I am new to this system. I am going to try and call Nagios today.

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Mon Jun 29, 2015 9:10 am
by tgriep
Could you post the following file to we can review it?

Code: Select all

/etc/wgetrc

Re: Nagios XI GUI lost connection Monitoring Engine

Posted: Tue Sep 29, 2015 9:57 pm
by dhabets
i have the same issue:

Monitor Engine Process: No data
Monitor Engine Event Queue: Scheduled Events Over Time: Error: No output from backend!


Did anyone ever solve this? For me it started after the most recent upgrade.