Hello Rob, SR> Has anyone generated a graph like this? SR> http://news.netcraft.com/archives/2003/08/30/further_ddos_attack_on_rackspac SR> e.html SR> It shows where the failures are, and extends over the bottom of the grid on SR> the graph. This would be nice see, for example with a graph with network SR> loss(100%) on the same graph as network delay. SR> Is there any way to do this with rrdtool?
Yes it is, Courtesy of Brandon Gant: [whom i asked in the first place how he thinked at his CDEF's] 1. calculate ping times [if u are not able to do this please let me know so i can fill in the code also] i did it using ping tool with Perl (he did it also like this ) but with different code flows the basic is that u regex the output of ping tool whenever u are on a win32 machine (Brandon did it) / nix* machine (i did it) 2. fill in the rrd: his choice/my choice: DS:RRT:GAUGE:600:U:U DS:PL:GAUGE:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:1895 *RTT=round trip time *PL=packet loss ----------------------------- "DS:roundtrip:GAUGE:600:U:U", "DS:packetloss:GAUGE:600:U:U", "RRA:AVERAGE:0.5:1:288", "RRA:AVERAGE:0.5:12:168", "RRA:AVERAGE:0.5:72:124", "RRA:AVERAGE:0.5:288:365", "RRA:MAX:0.5:1:288", "RRA:MAX:0.5:12:168", "RRA:MAX:0.5:72:124", "RRA:MIN:0.5:288:365", "RRA:MIN:0.5:1:288", "RRA:MIN:0.5:12:168", "RRA:MIN:0.5:72:124", "RRA:MIN:0.5:288:365"; 3. generate graph (this is the tricky cdef part) i'll insert only the valuable part of the code $_[0]=argv input for the function (rrd_ping_hostname) "DEF:roundtrip=$rrd/$_[0].rrd:roundtrip:AVERAGE", "DEF:packetloss=$rrd/$_[0].rrd:packetloss:AVERAGE", "CDEF:wrongdata=roundtrip,UN,1,UNKN,IF", "CDEF:NoPL=packetloss,10,LE,INF,UNKN,IF", "CDEF:25PL=packetloss,25,LE,packetloss,10,GT,INF,UNKN,IF,UNKN,IF", "CDEF:50PL=packetloss,50,LE,packetloss,25,GT,INF,UNKN,IF,UNKN,IF", "CDEF:75PL=packetloss,75,LE,packetloss,50,GT,INF,UNKN,IF,UNKN,IF", "CDEF:100PL=packetloss,100,LE,packetloss,75,GT,INF,UNKN,IF,UNKN,IF", "COMMENT:Packet Loss Percentage ", "AREA:roundtrip#00ff00:Round Trip Time (miliseconds) \\:\\: $_[0]\\n", "STACK:NoPL#4444ff: 0-10%", "GPRINT:roundtrip:LAST: Cur\\:%3.3lf", "COMMENT: \\n", "STACK:25PL#FFFF00: 10-25%", "GPRINT:roundtrip:AVERAGE: Avg\\:%3.3lf", "COMMENT: \\n", "STACK:50PL#FFCC66: 25-50%", "GPRINT:roundtrip:MAX: Max\\:%3.3lf", "COMMENT: \\n", "STACK:75PL#FF9900: 50-75% ", "GPRINT:roundtrip:MIN: Min\\:%3.3lf", "COMMENT: \\n", "STACK:100PL#FF0000:75-100% ", "COMMENT: \\n", "AREA:wrongdata#000000:is down", "COMMENT: \\n", "COMMENT:Graph Updated: $Time \\l", "COMMENT:ideea © Brandon Gant <[EMAIL PROTECTED]>\\l"; 4. Let me know if u need any additional help, with the code or with explanations of cdefs -- Best regards, mrugan mailto:[EMAIL PROTECTED] -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
