Non-integers displaying

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
suiciety
Posts: 2
Joined: Thu Jul 23, 2009 11:44 pm

Non-integers displaying

Post by suiciety »

I've just recently discovered this fantastic plugin and have started to map out my network.

I've have added the CISCO wireless controller templates to cacti and have been graphing the number of clients connected.

For some reason weathermap is showing these as non-integer numbers.

The NODE code is as follows:

Code: Select all

NODE WirelessClients
     LABEL Wireless Clients {node:this:bandwidth_in}
     USESCALE none in
     TARGET gauge:/srv/www/htdocs/cacti/rra/mc-wlc-srvrm_cisco4400_wlanassoc_74.rrd:cisco4400_wlanassoc:-
     POSITION 400 30
Cheers
Attachments
wireless clients.gif
wireless clients.gif (2.76 KiB) Viewed 1687 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

rrdtool averages over time. As a result, you don't always get an integer value, even for integer measurements.

Try this:

Code: Select all

     LABEL Wireless Clients {node:this:bandwidth_in:%d}
to force it into an integer.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
suiciety
Posts: 2
Joined: Thu Jul 23, 2009 11:44 pm

Post by suiciety »

Thanks will give that a go.

Do the cacti graphs also round these out because I haven't noticed anyting except integers being shown on them.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests