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    


View traffic & error stats

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



Joined: 01 Mar 2005
Posts: 16

PostPosted: Tue Mar 04, 2008 8:59 pm    Post subject: View traffic & error stats Reply with quote

I'm just learning php weathermap and loving it! But I have a practical question. Does anyone put interface error stats on their weathermaps, and if so what would be the best way to display traffic and error stats for network links other than creating a separate map for error stats?
Back to top
Howie
Cacti Guru User


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

PostPosted: Thu Mar 06, 2008 6:39 pm    Post subject: Reply with quote

I've been thinking about that lately too.

I was thinking perhaps that some kind of flag in INBWFORMAT could hide a value if it was 0. The GrangeNet weathermap does that. Or maybe did. It seems a bit dead.

So you'd get "56Mb" normally, and "56Mb - 1.2 err/sec" if there were errors. We'd need some way to specify that other data source too, which doesn't exist right now.

One of the others (I think it was the old Abilene/Internet2 map) shows errors as a black bar running alongside the link. It looked pretty ugly, and not too obvious though. You can do a variation of that with my weathermap by using two links between the same nodes, one with a smaller width than the other. That looks kind of OK, actually. Like a racing stripe. It also gets you a second TARGET, to use for the stripe.
Back to top
Howie
Cacti Guru User


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

PostPosted: Mon Mar 17, 2008 5:08 pm    Post subject: Reply with quote

I was just building a new latency map at work today, and had a quick experiment with error signalling. Here's what I came up with. This uses two overlaid links, of different WIDTH. The 'inside' one is latency in this case, but would normally be traffic. The 'outside' one has no outline, and a different SCALE that makes it white most of the time, but red of non-zero error counts. In the picture below, the 'errors' link exists on both sides of the arrow, but only one side has errors, so only that side is visible.

Code:

# special scale for highlighting link errors
SCALE errors 0 0 255 255 255
SCALE errors 0 100 255 0 0

LINK link1_err
        NODES node1 node2
        BWLABEL none
        WIDTH 8
        OUTLINECOLOR none
        USESCALE errors
        TARGET rtr1_link1_errors:err_in:err_out
        ARROWSTYLE 3 2

LINK link1
        TARGET gauge:rtr1_voipmos_5807.rrd:-:rtt
        NODES node1 node2
        WIDTH 4


I would also deliberately NOT put an overlibgraph on the errors arrow, so that the user doesn't get a surprising popup graph as they go to hover over the normal traffic arrow, since the surrounding 'errors' arrow would be invisible most of the time.

0.96 has Z-ordering, so you can guarantee that the first link will be drawn under the second one, but in practice this works OK at the moment.



link-highlighting.gif
 Description:
 Filesize:  7.46 KB
 Viewed:  821 Time(s)

link-highlighting.gif


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