Page 1 of 1

Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 9:08 am
by TBT
When adding a new fused server in Nagios Fusion 2012R1.3, Server Status is Unresponsive and Auth Check is Server Timedout.

Looking in /usr/local/nagiosfusion/var/poller.log I see the following errors:
..***GET DATA!***
RUNTIME: 210 INTERVAL: 30 POLL INTERVAL: 30
PHP Notice: Undefined index: SERVER_PORT in /usr/local/nagiosfusion/html/includes/utils.inc.php on line 507
PHP Notice: Undefined index: SERVER_PORT in /usr/local/nagiosfusion/html/includes/utils.inc.php on line 508
PHP Notice: Undefined index: SERVER_NAME in /usr/local/nagiosfusion/html/includes/utils.inc.php on line 512
Saving Tac Data to DB: Network Applications
SQL: INSERT INTO fusion_tac_data (server_id,server_sid,server_name,last_update_time,error,error_message)
VALUES (0,'3jt44v','Network Applications',1,NOW(),1,'1','<span class="tacservertimeout"><img src="http://:/nagiosfusion/images/critical_small.png"> A timeout occurred while attempting to contact the server.</span>') SQL Error [nagiosfusion] :</b> ERROR: INSERT has more expressions than target columns
LINE 2: ...LUES (0,'3jt44v','Network Applications',1,NOW(),1,'1','<span...
^Polling Recent Alerts...
NAGIOSXI ALERT FETCH Network Applications
COUNT :0
2 callbacks run
Also, in the Apache error log:
[Fri Dec 07 08:56:47 2012] [error] [client IP] PHP Notice: Undefined index: 3jt44v in /usr/local/nagiosfusion/html/includes/utils-menu.inc.php on line 932, referer: https://domain/nagiosfusion/config/
[Fri Dec 07 08:57:06 2012] [error] [client IP] PHP Notice: Undefined index: 3jt44v in /usr/local/nagiosfusion/html/includes/utils-menu.inc.php on line 932, referer: https://domain/nagiosfusion/admin/
[Fri Dec 07 08:57:09 2012] [error] [client IP] PHP Notice: Undefined index: 3jt44v in /usr/local/nagiosfusion/html/includes/utils-menu.inc.php on line 932, referer: https://domain/nagiosfusion/config/main.php

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 11:06 am
by mguthrie
Can you post a screenshot of the Admin->Manage Fused Servers->(broken server) page? I'd like to glance at the info you entered. You can send me a PM if there's any private information there.

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 11:21 am
by mguthrie
You might need to add that host name to the /etc/hosts file on the Fusion server. It's possible that the Fusion server doesn't know how to resolve that address.

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 11:28 am
by TBT
Fixed. But that would suggest it doesn't use just IP address as the text field states.

Thanks.

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 11:37 am
by mguthrie
IP is safer, for the reason you experienced, but yes, it will accept a host name as well.

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 11:43 am
by TBT
Also tried using an IP address in that field and it was still unreachable. Is there some type of reverse look-up going on?

Re: Fused Server Unresponsive and Timeout

Posted: Fri Dec 07, 2012 3:17 pm
by mguthrie
Huh, that's weird. No, it just does a curl http request under the hood to fetch information from XI's API. It's be similar to just running something like:

Code: Select all

curl www.example.com
from the command-line.