From 2d5c78a463a1de8e7a3a44b64fbbcb8ba77a674d Mon Sep 17 00:00:00 2001 From: spleen Date: Sun, 20 Feb 2011 16:44:33 +0100 Subject: [PATCH] added ospf --- plugins/other/quagga_routes | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/other/quagga_routes b/plugins/other/quagga_routes index 75e36a83..51b87561 100755 --- a/plugins/other/quagga_routes +++ b/plugins/other/quagga_routes @@ -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} '