PHP Warning

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

PHP Warning

Postby klaus » Fri Apr 13, 2012 2:53 pm

Dear XI Team:

I am findind the following PHP warning in my /var/log/httpd/error_log very 5 seconds when I am logged in into XI and the Home Dashboard is open

[Fri Apr 13 21:19:29 2012] [error] [client 188.193.38.219] PHP Warning: Division by zero in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-sysstat.inc.php on line 113, referer: http://h1997468.stratoserver.net/nagios ... ain.php?&=

Apart from the error message the system is running fine.

Klaus.
klaus
 
Posts: 11
Joined: Mon Jan 30, 2012 3:52 pm

Re: PHP Warning

Postby klaus » Fri Apr 13, 2012 2:58 pm

In fact it is 2 PHP Warnings each time from different lines in the specific php file:

[Fri Apr 13 21:56:30 2012] [error] [client 188.193.38.219] PHP Warning: Division by zero in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-sysstat.inc.php on line 111, referer: http://h1997468.stratoserver.net/nagios ... ain.php?&=
[Fri Apr 13 21:56:30 2012] [error] [client 188.193.38.219] PHP Warning: Division by zero in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-sysstat.inc.php on line 113, referer: http://h1997468.stratoserver.net/nagios ... ain.php?&=
klaus
 
Posts: 11
Joined: Mon Jan 30, 2012 3:52 pm

Re: PHP Warning

Postby scottwilkerson » Fri Apr 13, 2012 5:03 pm

Does this machine have 0 swap memory?
User avatar
scottwilkerson
 
Posts: 4821
Joined: Tue Nov 15, 2011 3:11 pm

Re: PHP Warning

Postby klaus » Sun Apr 15, 2012 4:52 am

Correct, yes, 0 (zero) swap memory. I dont need it currently, RAM is 2 GB and usage is 200-300 MB, with no other user service running on the system. performance is ideal.
klaus
 
Posts: 11
Joined: Mon Jan 30, 2012 3:52 pm

Re: PHP Warning

Postby scottwilkerson » Sun Apr 15, 2012 2:56 pm

Ype, the Server Statistics Dashlet is assuming there is some swap. This is an assumption the software really shouldn't make, I will put this on the list of items to be modified.

Until this fix gets into the mix, if you want to stop the errors, if you allocate a couple kb to swap you will no longer have the division by zero.
User avatar
scottwilkerson
 
Posts: 4821
Joined: Tue Nov 15, 2011 3:11 pm

Re: PHP Warning

Postby klaus » Sun Apr 15, 2012 3:36 pm

Fine for me and issue can be closed on that basis.

Many thanks again!
klaus
 
Posts: 11
Joined: Mon Jan 30, 2012 3:52 pm


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 1 guest

cron