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    


Unicast Packets/sec links

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



Joined: 06 Feb 2008
Posts: 32

PostPosted: Tue Jul 15, 2008 2:38 pm    Post subject: Unicast Packets/sec links Reply with quote

I'm trying to create links to show the unicast packets/sec instead of bits/sec. I have valid RRDs with the information so I added those RRDs as the target, removed the BANDWIDTH and it came out with something like this.

LINK c2601-uunet
BWLABELPOS 75 35
TARGET /var/www/html/rra/c2601_unicast_in_121.rrd:unicast_in:unicast_out
NODES c2601 uunet

Now I get numbers to show up on the map, but they appear to be incorrect. The numbers in the cacti graph show 20K in / 7k out, but the map shows 160k in / 60 k out which is about 8 times what they should be. Do I need to do some math here to account for it thinking they are bits, and if so how?


Thanks in advance.
Back to top
Howie
Cacti Guru User


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

PostPosted: Tue Jul 15, 2008 2:48 pm    Post subject: Re: Unicast Packets/sec links Reply with quote

ashke wrote:
I'm trying to create links to show the unicast packets/sec instead of bits/sec. I have valid RRDs with the information so I added those RRDs as the target, removed the BANDWIDTH and it came out with something like this.

LINK c2601-uunet
BWLABELPOS 75 35
TARGET /var/www/html/rra/c2601_unicast_in_121.rrd:unicast_in:unicast_out
NODES c2601 uunet

Now I get numbers to show up on the map, but they appear to be incorrect. The numbers in the cacti graph show 20K in / 7k out, but the map shows 160k in / 60 k out which is about 8 times what they should be. Do I need to do some math here to account for it thinking they are bits, and if so how?


Thanks in advance.


Yes you do, and here it is:

TARGET gauge:/var/www/html/rra/c2601_unicast_in_121.rrd:unicast_in:unicast_out

to stop it doing bytes->bits conversion.
Back to top
ashke



Joined: 06 Feb 2008
Posts: 32

PostPosted: Tue Jul 15, 2008 3:13 pm    Post subject: Re: Unicast Packets/sec links Reply with quote

Howie wrote:
ashke wrote:
I'm trying to create links to show the unicast packets/sec instead of bits/sec. I have valid RRDs with the information so I added those RRDs as the target, removed the BANDWIDTH and it came out with something like this.

LINK c2601-uunet
BWLABELPOS 75 35
TARGET /var/www/html/rra/c2601_unicast_in_121.rrd:unicast_in:unicast_out
NODES c2601 uunet

Now I get numbers to show up on the map, but they appear to be incorrect. The numbers in the cacti graph show 20K in / 7k out, but the map shows 160k in / 60 k out which is about 8 times what they should be. Do I need to do some math here to account for it thinking they are bits, and if so how?


Thanks in advance.


Yes you do, and here it is:

TARGET gauge:/var/www/html/rra/c2601_unicast_in_121.rrd:unicast_in:unicast_out

to stop it doing bytes->bits conversion.


Excellent, fast and helpful as usual (I'm sure it was in the docs somewhere). Is there also a way to provide the color thresholds akin to the bandwidth ones?
Back to top
Howie
Cacti Guru User


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

PostPosted: Tue Jul 15, 2008 3:19 pm    Post subject: Re: Unicast Packets/sec links Reply with quote

ashke wrote:

Excellent, fast and helpful as usual (I'm sure it was in the docs somewhere). Is there also a way to provide the color thresholds akin to the bandwidth ones?


Sure, you do it exactly the same way. The scales are in percent, not bits/sec, so you do need to set a maximum to be able to calculate a percentage. Just pick something high and unlikely, and that makes the math easy.

So, say:

BANDWIDTH 200K

for 200Kpps max, and then 10% in the scale is 20kpps, etc, and you can make a scale to your taste. If your values ever got above 200Kpps, then they would be clipped back to 100%, but since in this case 100% is probably red, it's not too much of a problem - too much is too much.
Back to top
ashke



Joined: 06 Feb 2008
Posts: 32

PostPosted: Tue Jul 15, 2008 3:26 pm    Post subject: Reply with quote

Excellent, and finally while I have your attention, something that has always bothered me is how the OVERLIBGRAPHs can open offscreen if the nodes are in the corners and theres no way to see the graph. Is there a way to keep the OVERLIBGRAPHS from opening offscreen?
Back to top
Howie
Cacti Guru User


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

PostPosted: Tue Jul 15, 2008 3:57 pm    Post subject: Reply with quote

ashke wrote:
Excellent, and finally while I have your attention, something that has always bothered me is how the OVERLIBGRAPHs can open offscreen if the nodes are in the corners and theres no way to see the graph. Is there a way to keep the OVERLIBGRAPHS from opening offscreen?


If you set OVERLIBWIDTH and OVERLIBHEIGHT correctly (and it does need to be the correct pixel size - too small makes it go crazy), and weathermap will figure out if the graph would go off the side, and make it go left instead of right, once you get past the midpoint of the map. Same for up and down.

That one should be in the FAQ, if it isn't already...

(yep - it is...)
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