Howie, very good!
So, now, using :rtt:sumpds I am getting the colour!
But, I am still NOT getting a VALUE in the output on the Label on the NODE itself. Well, I am, just that it is still 0, yet Cacti is reporting a value, in this case 44.
Node Config on Weather Map:
Code: Select all
NODE ENG-ZIM-HO-R01
LABEL Latency {node:this:rtt:%d} avg
TARGET gauge:/var/lib/cacti/rra/228/512.rrd:rtt:sumpds
POSITION 360 240
Output from Debug:
Code: Select all
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] SNMP Result: Host responded to SNMP
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] NOTE: There are '6' Polling Items for this Host
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[427] SNMP: v2: 10.200.170.254, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, value: 0
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[428] SNMP: v2: 10.200.170.254, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 27238559
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[428] SNMP: v2: 10.200.170.254, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 8464340
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[429] SNMP: v2: 10.200.170.254, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 10081064
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[429] SNMP: v2: 10.200.170.254, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 30520485
07/20/2011 10:56:12 PM - SPINE: Poller[0] Host[228] DS[512] SNMP: v2: 10.200.170.254, dsname: rtt, oid: .1.3.6.1.4.1.9.9.42.1.2.10.1.1.12, value: 44
The
VALUE 44 at the end is right as that matches my graph.
Any ideas? Is
%d right to display the value, or what about
%m?
Weathermap output is:
First block below shows errors before I corrected it as above.
Code: Select all
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.html & /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: ProcessTargets: LINK ENG-ZIM-HO-R01-node02534, target: gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d on config line 72 of /usr/share/cacti/site/plugins/weathermap/configs/simple.conf was not recognised as a valid TARGET [WMWARN08]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] WARNING: [Map 6] simple.conf: ProcessTargets: NODE ENG-ZIM-HO-R01, target: gauge:/var/lib/cacti/rra/228/512.rrd:bandwidth_in:%d on config line 62 of /usr/share/cacti/site/plugins/weathermap/configs/simple.conf was not recognised as a valid TARGET [WMWARN08]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/20/2011 10:50:44 AM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Wrote map to /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png and /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.thumb.png
This second block show
NO errors after I corrected it, so meaning that it
"likes" the readings it gets, but just it is
NOT inserting the 44!:
Code: Select all
07/20/2011 11:16:16 PM - WEATHERMAP: Poller[0] STATS: Weathermap 0.97a run complete - Wed, 20 Jul 11 23:16:16 +0200: 3 maps were run in 4 seconds with 147 warnings.
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] Weathermap 0.97a starting - Normal logging mode. Turn on DEBUG in Cacti for more information
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Map: /usr/share/cacti/site/plugins/weathermap/configs/simple.conf -> /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.html & /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: About to write image file. If this is the last message in your log, increase memory_limit in php.ini [WMPOLL01]
07/20/2011 11:21:00 PM - WEATHERMAP: Poller[0] [Map 6] simple.conf: Wrote map to /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.png and /usr/share/cacti/site/plugins/weathermap/output/0e998509837ebb9fad51.thumb.png
0