summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-21 11:44:05 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-21 11:44:05 -0500
commitc7b8ec71de80d51ea48dbd981ae9b5710d721e0d (patch)
tree0c47f5f103c3e8ba86ca9e52a56bf61e0ae1b4e6
parentf79da4403d13ac0a4695991781f7edfa83a90dff (diff)
downloadvyatta-op-c7b8ec71de80d51ea48dbd981ae9b5710d721e0d.tar.gz
vyatta-op-c7b8ec71de80d51ea48dbd981ae9b5710d721e0d.zip
Add monitoring for specific openvpn interface processes
-rw-r--r--templates/monitor/openvpn/interface/node.def1
-rw-r--r--templates/monitor/openvpn/interface/node.tag/background/node.def1
-rw-r--r--templates/monitor/openvpn/interface/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/openvpn/interface/node.tag/background/stop/node.def2
-rw-r--r--templates/monitor/openvpn/interface/node.tag/node.def5
5 files changed, 11 insertions, 0 deletions
diff --git a/templates/monitor/openvpn/interface/node.def b/templates/monitor/openvpn/interface/node.def
new file mode 100644
index 0000000..36d2c2e
--- /dev/null
+++ b/templates/monitor/openvpn/interface/node.def
@@ -0,0 +1 @@
+help: Monitor specified OpenVPN interface process
diff --git a/templates/monitor/openvpn/interface/node.tag/background/node.def b/templates/monitor/openvpn/interface/node.tag/background/node.def
new file mode 100644
index 0000000..eda5b6a
--- /dev/null
+++ b/templates/monitor/openvpn/interface/node.tag/background/node.def
@@ -0,0 +1 @@
+help: Monitor OpenVPN in the background
diff --git a/templates/monitor/openvpn/interface/node.tag/background/start/node.def b/templates/monitor/openvpn/interface/node.tag/background/start/node.def
new file mode 100644
index 0000000..5b7b31e
--- /dev/null
+++ b/templates/monitor/openvpn/interface/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of OpenVPN
+run: ${vyatta_bindir}/vyatta-monitor-background OpenVPN-$4 openvpn-$4
diff --git a/templates/monitor/openvpn/interface/node.tag/background/stop/node.def b/templates/monitor/openvpn/interface/node.tag/background/stop/node.def
new file mode 100644
index 0000000..af785b3
--- /dev/null
+++ b/templates/monitor/openvpn/interface/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of OpenVPN
+run: ${vyatta_bindir}/vyatta-monitor-background-stop OpenVPN-$4
diff --git a/templates/monitor/openvpn/interface/node.tag/node.def b/templates/monitor/openvpn/interface/node.tag/node.def
new file mode 100644
index 0000000..661be54
--- /dev/null
+++ b/templates/monitor/openvpn/interface/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Montior specified OpenVPN interface process
+allowed: local -a array ;
+ array=( /sys/class/net/vtun* ) ;
+ echo -n "<vtunX>" ${array[@]##*/}
+run: ${vyatta_bindir}/vyatta-monitor OpenVPN-$4 openvpn-$4