From 510b2c53882af06eb297491560cefe4b76425547 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 6 Mar 2010 11:58:24 -0500 Subject: Adding ospfd status page from buraglio@ --- config/openospfd/openospfd.xml | 25 ++++++++++----- config/openospfd/status_ospfd.php | 65 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 config/openospfd/status_ospfd.php diff --git a/config/openospfd/openospfd.xml b/config/openospfd/openospfd.xml index 5aca00c2..add96bb7 100644 --- a/config/openospfd/openospfd.xml +++ b/config/openospfd/openospfd.xml @@ -5,15 +5,20 @@ /usr/local/pkg/openospfd.inc pkg_edit.php?xml=openospfd.xml&id=0 - /usr/local/pkg/ - 077 - http://www.pfsense.com/packages/config/openospfd/openospfd.inc - + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/openospfd/openospfd.inc + - /usr/local/pkg/ - 077 - http://www.pfsense.com/packages/config/openospfd/openospfd_interfaces.xml - + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/openospfd/openospfd_interfaces.xml + + + /usr/local/www/ + 077 + http://www.pfsense.com/packages/config/openospfd/status_ospfd.php + OSPFd Modify ospfd settings. @@ -31,6 +36,10 @@ Interface Settings pkg.php?xml=openospfd_interfaces.xml + + Status + /status_ospfd.php + ospfd diff --git a/config/openospfd/status_ospfd.php b/config/openospfd/status_ospfd.php new file mode 100644 index 00000000..d2c1e1a4 --- /dev/null +++ b/config/openospfd/status_ospfd.php @@ -0,0 +1,65 @@ +Basic OSPFd statistics
"; + +echo "

OSPF Summary

"; +echo '
';
+
+$summary = system('/usr/local/sbin/ospfctl show summary', $summary);
+
+echo "

OSPF Neighbors

"; +echo '
';
+
+$neighbor = system('/usr/local/sbin/ospfctl show neighbor', $neighbor);
+
+echo "

FIB

"; +echo '
';
+
+$rib = system('/usr/local/sbin/ospfctl show fib', $rib);
+
+echo "

RIB

"; +echo '
';
+
+$fib = system('/usr/local/sbin/ospfctl show rib', $fib);
+
+echo "

OSPF Interfaces

"; +echo '
';
+
+$interfaces = system('/usr/local/sbin/ospfctl show interfaces', $interfaces);
+
+echo "

OSPF Database

"; +echo '
';
+
+$database = system('/usr/local/sbin/ospfctl show database', $database);
+
+
+?>
+
-- 
cgit v1.2.3