1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 22:25:23 +00:00

added ospf

This commit is contained in:
spleen 2011-02-20 16:44:33 +01:00 committed by Steve Schnepp
parent cc2567512e
commit 2d5c78a463

View file

@ -1,10 +1,4 @@
#!/bin/sh
# Created by spleen on 13.02.11.
#
# put into plugin-conf.d/plugins.conf
# [quagga_routes]
# user root
#
if [ "$1" = "config" ]; then
echo 'graph_title quagga routes'
@ -17,6 +11,7 @@ if [ "$1" = "config" ]; then
/static/ {print $1 ".label " $1 "\n" $1 ".draw AREASTACK"}
/ebgp/ {print $1 ".label " $1 "\n" $1 ".draw AREASTACK"}
/ibgp/ {print $1 ".label " $1 "\n" $1 ".draw AREASTACK"}
/ospf/ {print $1 ".label " $1 "\n" $1 ".draw AREASTACK"}
/Totals/ {print $1 ".label " $1 "\n" $1 ".draw LINE1"}
'
exit 0
@ -27,5 +22,6 @@ fi
/static/ {print $1 ".value "$2}
/ebgp/ {print $1 ".value "$2}
/ibgp/ {print $1 ".value "$2}
/ospf/ {print $1 ".value "$2}
/Totals/ {print $1 ".value "$2}
'