Nagios XI GUI lost connection Monitoring Engine

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mvargas
Posts: 11
Joined: Thu Jan 15, 2015 11:04 am

Nagios XI GUI lost connection Monitoring Engine

Post 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!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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.
mvargas
Posts: 11
Joined: Thu Jan 15, 2015 11:04 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
mvargas
Posts: 11
Joined: Thu Jan 15, 2015 11:04 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post by mvargas »

I checked the hosts and the IPs match.
mvargas
Posts: 11
Joined: Thu Jan 15, 2015 11:04 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mvargas
Posts: 11
Joined: Thu Jan 15, 2015 11:04 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post by tgriep »

Could you post the following file to we can review it?

Code: Select all

/etc/wgetrc
Be sure to check out our Knowledgebase for helpful articles and solutions!
dhabets
Posts: 5
Joined: Sat Jul 19, 2014 8:38 am

Re: Nagios XI GUI lost connection Monitoring Engine

Post 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.
Locked