Hello,
We need some help finding a performance issue in our Nagios XI web environment.
XI : v5.3.2 (updated on 3Nov)
OS : CentOS v 6.8 (kernel 2.6.32-642.1.1.el6.x86_64)
When click on a Host service to get the status detail window it takes more than 1 min to show the information.
First the web session is showing this info immediately :
Service Status Detail
FS1 : Windows : Diskspace C:
spnl0877p02
Then wait for 1min ....
When detail windows finally shows up I see this error coming in the /var/log/httpd/error_log for my www session :
[Tue Nov 22 09:13:41 2016] [error] [client 10.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/status-object-detail.inc.php on line 1155, referer: http://ap-dco67-mon/nagiosxi/includes/c ... pnl0877p02
This happens with all the services not just one.
code info on line 1155 in the php file :
foreach ($objs as $obj) {
if (!empty($obj->service_description)) {
$s .= '<option value="' . $obj->downtime_id . '">' . $obj->host_name . ' - '. $obj->service_description .' @ ' . get_datetime_string($obj->start_time/1000) . ' (ID ' . $obj->downtime_id . ')</option>';
} else {
$h .= '<option value="' . $obj->downtime_id . '">' . $obj->host_name . ' @ ' . get_datetime_string($obj->start_time/1000) . ' (ID ' . $obj->downtime_id . ')</option>';
}
}
Could you tell me why it takes soo long to get all the information?
Last week we changed network settings (routing & default gw) in the OS , anything to do with these changes ??
best regards
Koen
Host service detail takes too much time to show up
-
nagios-retail
- Posts: 36
- Joined: Mon Feb 09, 2015 3:32 am
Re: Host service detail takes too much time to show up
This could possibly affect it, can you show us the output for the following commands?Last week we changed network settings (routing & default gw) in the OS , anything to do with these changes ??
Code: Select all
ip a
cat /etc/hosts
Former Nagios Employee
-
nagios-retail
- Posts: 36
- Joined: Mon Feb 09, 2015 3:32 am
Re: Host service detail takes too much time to show up
Hi,
SOLVED
The hosts still contained an ip address in the range of the disabled interface.
Many thanks!
SOLVED
The hosts still contained an ip address in the range of the disabled interface.
Many thanks!