Ticket #1158: munin_mrtg_graphs.patch

File munin_mrtg_graphs.patch, 4.0 KB (added by anarcat, at 2011-10-28T20:18:03+02:00)
  • snmp__if_multi

    old new  
    558558    print "graph_title $host interface traffic\n"; 
    559559    print "graph_order recv send\n"; 
    560560    print "graph_args --base 1000\n"; 
    561     print "graph_vlabel bits in (-) / out (+) per \${graph_period}\n"; 
     561    print "graph_vlabel bits per \${graph_period}\n"; 
    562562    print "graph_category network\n"; 
    563563    print "graph_info This graph shows the total traffic for $host\n"; 
    564564 
    565565    print "send.info Bits sent/received by $host\n"; 
    566566    print "recv.label recv\n"; 
    567567    print "recv.type DERIVE\n"; 
    568     print "recv.graph no\n"; 
    569568    print "recv.cdef recv,8,*\n"; 
     569    print "recv.draw AREA\n"; 
     570    print "recv.colour 00eb0c\n"; 
    570571    print "recv.min 0\n"; 
    571     print "send.label bps\n"; 
     572    print "send.label sent\n"; 
    572573    print "send.type DERIVE\n"; 
    573     print "send.negative recv\n"; 
    574574    print "send.cdef send,8,*\n"; 
     575    print "send.draw LINE1\n"; 
     576    print "send.colour 1000ff\n"; 
    575577    print "send.min 0\n"; 
    576578 
    577579    print "multigraph if_errors\n"; 
    578580    print "graph_title $host interface errors\n"; 
    579581    print "graph_order recv send\n"; 
    580582    print "graph_args --base 1000\n"; 
    581     print "graph_vlabel errors in (-) / out (+) per \${graph_period}\n"; 
     583    print "graph_vlabel errors per \${graph_period}\n"; 
    582584    print "graph_category network\n"; 
    583585    print "graph_info This graph shows the total errors for $host\n"; 
    584586 
    585587    print "send.info Errors in outgoing/incomming traffic on $host\n"; 
    586588    print "recv.label recv\n"; 
    587589    print "recv.type DERIVE\n"; 
    588     print "recv.graph no\n"; 
     590    print "recv.draw AREA\n"; 
     591    print "recv.colour 00eb0c\n"; 
    589592    print "recv.min 0\n"; 
    590593    print "send.label Errors\n"; 
    591594    print "send.type DERIVE\n"; 
    592     print "send.negative recv\n"; 
     595    print "send.draw LINE1\n"; 
     596    print "send.colour 1000ff\n"; 
    593597    print "send.min 0\n"; 
    594598} 
    595599 
     
    657661    print "graph_title Interface $alias traffic\n"; 
    658662    print "graph_order recv send\n"; 
    659663    print "graph_args --base 1000\n"; 
    660     print "graph_vlabel bits in (-) / out (+) per \${graph_period}\n"; 
     664    print "graph_vlabel bits per \${graph_period}\n"; 
    661665    print "graph_category network\n"; 
    662666    print "graph_info This graph shows traffic for the \"$alias\" network interface.$extrainfo\n"; 
    663667    print "send.info Bits sent/received by this interface.\n"; 
    664668    print "recv.label recv\n"; 
    665669    print "recv.type DERIVE\n"; 
    666     print "recv.graph no\n"; 
    667670    print "recv.cdef recv,8,*\n"; 
     671    print "recv.draw AREA\n"; 
     672    print "recv.colour 00eb0c\n"; 
    668673    print "recv.max $speed\n" if $speed; 
    669674    print "recv.min 0\n"; 
    670     print "recv.warning ", (-$warn), "\n" if defined $warn; 
    671     print "send.label bps\n"; 
     675    print "recv.warning $warn\n" if defined $warn; 
     676    print "send.label sent\n"; 
    672677    print "send.type DERIVE\n"; 
    673     print "send.negative recv\n"; 
    674678    print "send.cdef send,8,*\n"; 
     679    print "send.draw LINE1\n"; 
     680    print "send.colour 1000ff\n"; 
    675681    print "send.max $speed\n" if $speed; 
    676682    print "send.min 0\n"; 
    677683    print "send.warning $warn\n" if defined $warn; 
     
    681687    print "graph_title Interface $alias errors\n"; 
    682688    print "graph_order recv send\n"; 
    683689    print "graph_args --base 1000\n"; 
    684     print "graph_vlabel errors in (-) / out (+) per \${graph_period}\n"; 
     690    print "graph_vlabel errors per \${graph_period}\n"; 
    685691    print "graph_category network\n"; 
    686692    print "graph_info This graph shows errors for the \"$alias\" network interface.$extrainfo\n"; 
    687693    print "send.info Errors in outgoing/incomming traffic on this interface.\n"; 
    688694    print "recv.label recv\n"; 
    689695    print "recv.type DERIVE\n"; 
    690     print "recv.graph no\n"; 
     696    print "recv.draw AREA\n"; 
     697    print "recv.colour 00eb0c\n"; 
    691698    print "recv.min 0\n"; 
    692699    print "recv.warning 1\n"; 
    693700    print "send.label bps\n"; 
    694701    print "send.type DERIVE\n"; 
    695     print "send.negative recv\n"; 
     702    print "send.draw LINE1\n"; 
     703    print "send.colour 1000ff\n"; 
    696704    print "send.min 0\n"; 
    697705    print "send.warning 1\n"; 
    698706}