Page 1 of 3

Error with bandwidth

Posted: Mon Jun 24, 2013 6:28 am
by sarfarosh
Hello Guys
we are trying to monitor Switches with Nagios Xi, but since last 2 days am noticing that we are not able to monitor Bandwidth it just shows OK - Current BW in: 0Mbps Out: 0Mbps
for all the Ports of every Switches,and also we are not able to extract reports.

HTTPD error log says,

Code: Select all

[root@nagios155 ~]# tail -f /var/log/httpd/error_log
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string():     ^ in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): Entity: line 17: parser error : Opening and ending tag mismatch: OL line 9 and outages in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): </outages> in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string():           ^ in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag P line 8 in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string():  in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): Entity: line 18: parser error : Premature end of data in tag outages line 2 in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string():  in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages
[Mon Jun 24 14:40:06 2013] [error] [client 183.83.245.187] PHP Warning:  simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-status.inc.php on line 27, referer: http://123.176.37.155/nagiosxi/includes/components/xicore/status.php?show=outages

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 11:02 am
by slansing
Can you run the following and share the output? Thanks!

Code: Select all

ls -l /usr/local/nagiosxi/html/
chage apache -l
chage nagios -l

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 11:37 am
by sarfarosh
here are the output

Code: Select all

[root@nagios155 ~]# ls -l /usr/local/nagiosxi/html/
total 272
drwxr-x---  2 nagios nagios  4096 May 10 14:56 about
drwxr-x---  2 nagios nagios  4096 May 10 14:56 account
drwxr-x---  2 nagios nagios  4096 May 10 14:56 addons
drwxr-x---  2 nagios nagios  4096 May 10 14:56 admin
-rwxr-x---  1 nagios nagios 20009 May 18 15:01 ajaxhelper.php
-rwxr-x---  1 nagios nagios  1533 May 18 15:01 ajaxproxy.php
drwxr-x---  3 nagios nagios  4096 May 10 14:56 backend
drwxr-x---  3 nagios nagios  4096 May 10 14:56 config
-rwxr-x---  1 nagios nagios  7942 May 18 15:01 config.inc.dist
-rwxr-x---  1 nagios nagios  8075 May 19 22:20 config.inc.php
-rwxr-x---  1 nagios nagios  8065 May 13 17:05 config.inc.php.bak.123
-rwxr-x---  1 nagios nagios  7942 May 13 01:04 config.inc.php.orig
-rwxr-x---  1 nagios nagios  8075 May 18 15:01 config.inc.saved
drwxr-x---  2 nagios nagios  4096 May 10 14:56 dashboards
drwxr-x---  4 nagios nagios  4096 May 10 14:56 db
drwxr-x---  3 nagios nagios  4096 May 10 14:56 downloads
drwxr-x---  2 nagios nagios  4096 May 10 14:56 help
drwxr-x---  3 nagios nagios  4096 May 10 14:56 images
drwxr-x--- 11 nagios nagios  4096 May 10 14:56 includes
-rwxr-x---  1 nagios nagios   993 May 18 15:01 index.php
-rwxr-x---  1 nagios nagios  6785 May 18 15:01 install.php
-rwxr-x---  1 nagios nagios 87959 May 18 15:01 login.php
-rw-r-----  1 nagios nagios  2212 May 18 15:01 loginsplash.inc.dist
-rw-r-----  1 nagios nagios  2212 May 18 15:01 loginsplash.inc.php
-rw-r-----  1 nagios nagios  2212 May 18 15:01 loginsplash.inc.saved
drwxr-x---  2 nagios nagios  4096 May 10 14:56 perfgraphs
drwxr-x---  2 nagios nagios  4096 May 10 14:56 reports
-rw-r-----  1 nagios nagios 15219 May 18 15:01 rr.php
-rwxr-x---  1 nagios nagios  6332 May 18 15:01 suggest.php
drwxr-x---  2 nagios nagios  4096 May 10 14:56 tools
-rwxr-x---  1 nagios nagios  3490 May 18 15:01 upgrade.php
drwxr-x---  2 nagios nagios  4096 May 10 14:56 views
[root@nagios155 ~]# 

Code: Select all

[root@nagios155 ~]# chage apache -l
Last password change					: May 02, 2013
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

Code: Select all

[root@nagios155 ~]# chage nagios -l
Last password change					: May 10, 2013
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 11:43 am
by slansing
Are you running behind a proxy or using SSL? In my reading this issue seemed to occur only two times, once back in 2010, and again between 2012 r1.7 and r1.9, is an upgrade out of the question?

What changes do you remember making before this started to occur?

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 2:33 pm
by sarfarosh
No, in this environment there is No SSL enabled nor are we using Proxy, we have installed this instance on VMWARE, mysql DB is been offloaded & we are using MOD_GEARMAN to distribute Load and have done samba share of /var/lib/mrtg for mod_gearman_worker on other server to read .rrd files on nagios server ,it is a Clean installation of Nagios 2012 r1.8

We don't remember making any such changes,except of updating memory before this bandwidth issue occurred, report issue we are facing since we installed the nagiosxi instance, we thought this error would be occurring due to limited resources that was the reason we had upgraded the RAM & CPU CORE.

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 2:36 pm
by abrist
Do you see any red dots on the --> Home --> Process info Page?

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 2:49 pm
by sarfarosh
abrist i don see any red dot, Everything seems to be fine here attaching screenshot

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 3:01 pm
by slansing
It appears as though you are experiencing a bug which was fixed in the latest release, please upgrade to 2012 r2.2 with the following documentation:

http://assets.nagios.com/downloads/nagi ... ctions.pdf

Then please let us know how things look, also please post a new screenshot of the Monitoring Process page.

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 3:06 pm
by sarfarosh
1 query before i start the up-gradation, i know itÅ› very silly but How do i tell the Upgrade script that mine MYSQL is on another server, and also do i have to make any change to mine MOD_GEARMAN setup before i go for upgrade ?

Re: Error with bandwidth

Posted: Mon Jun 24, 2013 3:38 pm
by abrist
Neither of those should effect the upgrade process.