summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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