Division by zero in cacti-0.8.6i/lib/api_poller

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
rr
Posts: 19
Joined: Fri Oct 06, 2006 9:17 am

Division by zero in cacti-0.8.6i/lib/api_poller

Post by rr »

Hi.

Frequently in the cacti webinterface I get the error message:

Warning: Division by zero in /usr/local/cacti-0.8.6i/lib/api_poller.php on line 109

For example, when saving device settings, when rebuilding the poller
cache etc..

This started occurring out of the blue when adding a new device
not different from aleady existing devices.

I use 0.8.6i and 1minutepolling patch although I only poll every 5min
I just did not know If I needed to revert the patch so I left it in...

lines 108-109 from api_poller.php

Code: Select all

                $modulus = $rrd_step / $poller_interval;

                $rrd_next_step = $poller_interval * ($rrd_step_counter % $modulus);
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests