Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Link Values

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
econ



Joined: 16 Nov 2007
Posts: 10

PostPosted: Tue Nov 20, 2007 1:02 pm    Post subject: Link Values Reply with quote

I just want to understand this properly. I am currently graphing in cacti my connections on a "bytes per second" level. So when weathermap reads my rrd files it is multiplying the rrd value by 8 to get bits per second and it displays megabits per second on the weathermap graph. Is that correct?

An example:
Outbound Connection on rrd graph: 291.46K
Weathermap Link : 2.3M

Is there any any way to have the weathermap graph show megabytes per second instead of megabits per second? Thanks.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2059
Location: United Kingdom

PostPosted: Tue Nov 20, 2007 7:13 pm    Post subject: Reply with quote

The standard SNMP MIB-2 interface counters are actually *all* in bytes (aka octets), so regardless of what cacti shows on the graph, the data stored in the RRD file is in bytes/sec. If you look at the bits/sec templates, they have a CDEF that multiplies by 8.

So, you're right, weathermap is reading those byte values from the rrd and multiplying by 8 to get bits/sec. To stop it doing that, you should use the gauge: prefix:
Code:

TARGET gauge:mylink.rrd


It's intended for non-bandwidth values, but all it really does is get the raw data from the rrd. In your case, that's what you actually want (bytes).

The percentage used for the colours is just a division between that value and the BANDWIDTH value, so as long as you specify your BANDWIDTH values in bytes too, you should be set.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group