I'm really stuck with this problem.
After googling many hours and searching this forum I hoped that somebody could point me in the right direction.
I recently upgraded our cacti installation to versioin 0.8.8a dependent on boost 5.1 with one minute polling.
Everything works perfectly except for Weathermap displaying the correct link usage.
It is way too high, e.g. 3092616.52%.
I use the “rrd_use_poller_output 1” option.
I also set the correct Bandwidth, e.g. “BANDWIDTH 20G”
Strange thing is, on some few graphs, link usage is beeing calculated correctly.
So I went to compare all outputs of two links, one calculated correctly, one not.
I also compared the structure of the .rrd files with rrdtool info.
Still I couldn't figure out any difference between them.
These are my findings / outputs so far:
working: 12797
not working: 12736
Code: Select all
mysql> select * from poller_output_boost where local_data_id = '12797' or local_data_id = '12736';
+---------------+-------------+---------------------+------------------+
| local_data_id | rrd_name | time | output |
+---------------+-------------+---------------------+------------------+
| 12736 | traffic_in | 2012-12-09 12:03:02 | 2456149964309576 |
| 12736 | traffic_out | 2012-12-09 12:03:02 | 2998069066379327 |
| 12736 | traffic_in | 2012-12-09 12:04:02 | 2456165916259355 |
| 12736 | traffic_out | 2012-12-09 12:04:02 | 2998103913342185 |
| 12736 | traffic_in | 2012-12-09 12:05:02 | 2456180197599986 |
| 12736 | traffic_out | 2012-12-09 12:05:02 | 2998138107448774 |
| 12797 | traffic_in | 2012-12-09 12:03:01 | 1781253693286711 |
| 12797 | traffic_out | 2012-12-09 12:03:01 | 1216371371048478 |
| 12797 | traffic_in | 2012-12-09 12:04:01 | 1781298169991870 |
| 12797 | traffic_out | 2012-12-09 12:04:01 | 1216391009262304 |
| 12797 | traffic_in | 2012-12-09 12:05:01 | 1781340911750276 |
| 12797 | traffic_out | 2012-12-09 12:05:01 | 1216410076523569 |
+---------------+-------------+---------------------+------------------+
mysql> select * from weathermap_data where local_data_id = '12797' or local_data_id = '12736';
+-----+---------------------------------------------+------------------+-----------+---------------+
| id || data_source_name | last_time | last_value | last_calc | sequence | local_data_id |
+-----+---------------------------------------------+--------------------+-------------------------|
| 415 || traffic_in | 1355051102 | 2456180197599986 | 2456180197599986 | 15450 | 12736 |
| 416 || traffic_out | 1355051102 | 2998138107448774 | 2998138107448774 | 15450 | 12736 |
| 491 || traffic_in | 1355051101 | 1781340911750276 | 712362640.1 | 15342 | 12797 |
| 492 || traffic_out | 1355051101 | 1216410076523569 | 317787687.75 | 15342 | 12797 |
+-----+---------------+------------+------------------+------------------+----------+--------------+
I went to take a look at the weathermap/setup.php where the calculations are beeing done but still couldn't figure out why one link should be calculated correctly and one just takes the “last_value” as “last_calc”.
root@localhost:~# cat /var/log/cacti/cacti.log | grep 2456180197599986
12/09/2012 12:05:02 PM - SPINE: Poller[0] Host[450] TH[1] DS[12736] SNMP: v2: 213.144.128.209, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.83886081, value: 2456180197599986
12/09/2012 12:05:03 PM - WEATHERMAP: Poller[0] WM poller_output: Got one! /var/www/cacti/rra/r1ams2_core_traffic_in_12736.rrd:traffic_in -> 1355051102 2456180197599986
12/09/2012 12:05:03 PM - WEATHERMAP: Poller[0] WM poller_output: Got one! /var/www/cacti/rra/r1ams2_core_traffic_in_12736.rrd:traffic_in -> 1355051102 2456180197599986
12/09/2012 12:05:03 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 2456180197599986 (was 2456165916259355, period was 60)
12/09/2012 12:05:06 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_poller_output@WeatherMapDataSource_rrd.php:178] [Map 14] Backbone: RRD ReadData: poller_output - result is 2456180197599986,2998138107448774
12/09/2012 12:06:02 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 236045992.93333 (was 2456180197599986, period was 60)
12/09/2012 12:06:02 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 2456194360359562 (was 2456180197599986, period was 60)
12/09/2012 12:07:54 PM - BOOST: Poller[0] NOTE: Updating Local Data Id:'12736', Template:traffic_in:traffic_out, Output: 1355051102:2456180197599986:2998138107448774
12/09/2012 12:07:54 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: plugins/boost/boost_rrdupdate.php 2880 /usr/bin/rrdupdate /var/www/cacti/rra/r1ams2_core_traffic_in_12736.rrd --template traffic_in:traffic_out 1355051102:2456180197599986:2998138107448774]
root@localhost:~# cat /var/log/cacti/cacti.log | grep 1781340911750276
12/09/2012 12:05:01 PM - SPINE: Poller[0] Host[33] TH[1] DS[12797] SNMP: v2: 213.144.128.207, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.83886083, value: 1781340911750276
12/09/2012 12:05:01 PM - WEATHERMAP: Poller[0] WM poller_output: Got one! /var/www/cacti/rra/r1fra1_core_traffic_in_12797.rrd:traffic_in -> 1355051101 1781340911750276
12/09/2012 12:05:01 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 1781340911750276 (was 1781298169991870, period was 60)
12/09/2012 12:05:01 PM - WEATHERMAP: Poller[0] WM poller_output: Got one! /var/www/cacti/rra/r1fra1_core_traffic_in_12797.rrd:traffic_in -> 1355051101 1781340911750276
12/09/2012 12:06:01 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 1781383646293177 (was 1781340911750276, period was 60)
12/09/2012 12:06:01 PM - WEATHERMAP: Poller[0] WM poller_output: Final value is 712242381.68333 (was 1781340911750276, period was 60)
12/09/2012 12:26:41 PM - BOOST: Poller[0] NOTE: Updating Local Data Id:'12797', Template:traffic_in:traffic_out, Output: 1355051101:1781340911750276:1216410076523569
Has somebody ever experienced such a problem?
Any help is greatly appreciated.
Many thanks for your patience.