Hi all,
In the System Utilities>Boost Status I can read this:
Warning: Division by zero in /var/www/html/cacti/plugins/boost/setup.php on line 299
Warning: Division by zero in /var/www/html/cacti/plugins/boost/setup.php on line 449
Current Boost Status
Boost On Demand Updating: Never Run
Total Data Sources: 22824
Boost Storage Statistics
Database Engine: MEMORY
Current Boost Tables Size: 0 Bytes
Avg Bytes/Record: 0 Bytes
Warning: Division by zero in /var/www/html/cacti/plugins/boost/setup.php on line 449 Max Allowed Boost Table Size: 552 MBytes
Estimated Maximum Records: 0 Records
Runtime Statistics
Last Start Time:
Last Run Duration: 0 seconds (0% of update frequency)
RRD Updates:
Peak Poller Memory: N/A
Detailed Runtime Timers: N/A
Max Poller Memory Allowed: 1024 MBytes
Run Time Configuration
Update Frequency: 30 Minutes
Next Start Time:
Maximum Records: 1000000 Records
Maximum Allowed Runtime: 20 Minutes
Boost Server Details
Server Config Status: Disabled
Multiprocess Server: Multiple Process
Update Timeout: 2 Seconds
Server/Port: localhost@9050
Authorized Update Web Servers: 127.0.0.1
RRDtool Binary Used: /usr/bin/rrdtool
Image Caching
Image Caching Status: Disabled
Cache Directory:
Cached Files: WARNING: N/A
Cached Files Size: WARNING: Directory Does NOT Exist!!
I´m so noob with cacti and mysql, but I think I deleted some tables from cacti´s database. The lost tables may be tables that start with boost_* , like boost_peak_memory, boost_poller_status, etc.. I reinstalled the plugin many times with no changes. Could someone help me?.
Thanks in advance for your help.
Regards,
Division by zero in setup.php (boost)
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Division by zero in setup.php (boost)
This is which version of BOOST, please?
R.
R.
Re: Division by zero in setup.php (boost)
I have the same problem.
My boost version is 5.1.
#############
Technical Support
General Information
Date Mon, 14 Oct 2013 10:58:19 -0500
Cacti Version 0.8.8b
Cacti OS unix
SNMP Version NET-SNMP version: 5.1.2
RRDTool Version RRDTool 1.2.x
Hosts 101
Graphs 1426
Data Sources Script/Command: 6
SNMP: 3
SNMP Query: 1122
Script Query: 2
Script - Script Server (PHP): 4
Total: 1137
Poller Information
Interval 60
Type SPINE 0.8.7c Copyright 2002-2008 by The Cacti Group
Items Action[0]: 1125
Action[1]: 10
Action[2]: 4
Total: 1139
Concurrent Processes 1
Max Threads 8
PHP Servers 5
Script Timeout 25
Max OID 10
Last Run Statistics Time:25.7513 Method:spine Processes:1 Threads:8 Hosts:102 HostsPerProcess:102 DataSources:1133 RRDsProcessed:1033
PHP Information
PHP Version 5.1.6
PHP OS Linux
PHP uname Linux localhost.localdomain 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 14 16:12:46 EST 2009 i686
PHP SNMP Installed
max_execution_time 30
memory_limit 64M
#############
Boost Status
Warning: Division by zero in /var/www/html/plugins/boost/setup.php on line 299
Current Boost Status
Boost On Demand Updating: Disabled
Total Data Sources: 3140
Boost Storage Statistics
Database Engine: MEMORY
Current Boost Tables Size: 0 Bytes
Avg Bytes/Record: 0 Bytes
Warning: Division by zero in /var/www/html/plugins/boost/setup.php on line 449
Max Allowed Boost Table Size: 121 MBytes
Estimated Maximum Records: 0 Records
Runtime Statistics
Last Start Time: 2013-10-10 9:01:32
Last Run Duration: 0 seconds
RRD Updates: 0
Peak Poller Memory: 6.2 MBytes
Detailed Runtime Timers: N/A
Max Poller Memory Allowed: 1024 MBytes
Run Time Configuration
Update Frequency: N/A
Next Start Time:
Maximum Records: 1000000 Records
Maximum Allowed Runtime: 20 Minutes
Boost Server Details
Server Config Status: Disabled
Multiprocess Server: Multiple Process
Update Timeout: 2 Seconds
Server/Port: localhost@9050
Authorized Update Web Servers: 127.0.0.1
RRDtool Binary Used: /usr/bin/rrdtool
Image Caching
Image Caching Status: Enabled
Cache Directory: /var/www/html/plugins/boost/cache
Cached Files: 0 Files
Cached Files Size: 0 Bytes
Thanks
My boost version is 5.1.
#############
Technical Support
General Information
Date Mon, 14 Oct 2013 10:58:19 -0500
Cacti Version 0.8.8b
Cacti OS unix
SNMP Version NET-SNMP version: 5.1.2
RRDTool Version RRDTool 1.2.x
Hosts 101
Graphs 1426
Data Sources Script/Command: 6
SNMP: 3
SNMP Query: 1122
Script Query: 2
Script - Script Server (PHP): 4
Total: 1137
Poller Information
Interval 60
Type SPINE 0.8.7c Copyright 2002-2008 by The Cacti Group
Items Action[0]: 1125
Action[1]: 10
Action[2]: 4
Total: 1139
Concurrent Processes 1
Max Threads 8
PHP Servers 5
Script Timeout 25
Max OID 10
Last Run Statistics Time:25.7513 Method:spine Processes:1 Threads:8 Hosts:102 HostsPerProcess:102 DataSources:1133 RRDsProcessed:1033
PHP Information
PHP Version 5.1.6
PHP OS Linux
PHP uname Linux localhost.localdomain 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 14 16:12:46 EST 2009 i686
PHP SNMP Installed
max_execution_time 30
memory_limit 64M
#############
Boost Status
Warning: Division by zero in /var/www/html/plugins/boost/setup.php on line 299
Current Boost Status
Boost On Demand Updating: Disabled
Total Data Sources: 3140
Boost Storage Statistics
Database Engine: MEMORY
Current Boost Tables Size: 0 Bytes
Avg Bytes/Record: 0 Bytes
Warning: Division by zero in /var/www/html/plugins/boost/setup.php on line 449
Max Allowed Boost Table Size: 121 MBytes
Estimated Maximum Records: 0 Records
Runtime Statistics
Last Start Time: 2013-10-10 9:01:32
Last Run Duration: 0 seconds
RRD Updates: 0
Peak Poller Memory: 6.2 MBytes
Detailed Runtime Timers: N/A
Max Poller Memory Allowed: 1024 MBytes
Run Time Configuration
Update Frequency: N/A
Next Start Time:
Maximum Records: 1000000 Records
Maximum Allowed Runtime: 20 Minutes
Boost Server Details
Server Config Status: Disabled
Multiprocess Server: Multiple Process
Update Timeout: 2 Seconds
Server/Port: localhost@9050
Authorized Update Web Servers: 127.0.0.1
RRDtool Binary Used: /usr/bin/rrdtool
Image Caching
Image Caching Status: Enabled
Cache Directory: /var/www/html/plugins/boost/cache
Cached Files: 0 Files
Cached Files Size: 0 Bytes
Thanks
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Division by zero in setup.php (boost)
Line 299 should read:
And line 449:
Both fixes will be part of nex version
R.
Code: Select all
$avg_row_length = ($total_records ? intval($data_length / $total_records) : 0);
Code: Select all
$max_table_records = ($avg_row_length ? round($max_data_length/$avg_row_length, 0) : 0);
R.
Re: Division by zero in setup.php (boost)
thanks a lot.
Who is online
Users browsing this forum: No registered users and 1 guest