summaryrefslogtreecommitdiff
path: root/templates/monitor/vpn/background
diff options
context:
space:
mode:
Diffstat (limited to 'templates/monitor/vpn/background')
-rw-r--r--templates/monitor/vpn/background/list/node.def7
-rw-r--r--templates/monitor/vpn/background/node.def1
-rw-r--r--templates/monitor/vpn/background/start/all/node.def3
-rw-r--r--templates/monitor/vpn/background/start/ipsec/node.def2
-rw-r--r--templates/monitor/vpn/background/start/l2tp/node.def2
-rw-r--r--templates/monitor/vpn/background/start/node.def1
-rw-r--r--templates/monitor/vpn/background/start/pptp/node.def2
-rw-r--r--templates/monitor/vpn/background/stop/all/node.def3
-rw-r--r--templates/monitor/vpn/background/stop/ipsec/node.def2
-rw-r--r--templates/monitor/vpn/background/stop/l2tp/node.def2
-rw-r--r--templates/monitor/vpn/background/stop/node.def1
-rw-r--r--templates/monitor/vpn/background/stop/pptp/node.def2
12 files changed, 28 insertions, 0 deletions
diff --git a/templates/monitor/vpn/background/list/node.def b/templates/monitor/vpn/background/list/node.def
new file mode 100644
index 0000000..2fe1507
--- /dev/null
+++ b/templates/monitor/vpn/background/list/node.def
@@ -0,0 +1,7 @@
+help: List currently running VPN background montioring processes
+run: ARR=$(ls /var/run/vyatta/monitor/VPN*"$(tty| sed -e s-/--g -e s/dev//g)"*.pid)
+ ARR=${ARR[@]##*/}
+ ARR=${ARR[@]%%-pts*}
+ for i in "${ARR[@]}";do
+ echo $i
+ done
diff --git a/templates/monitor/vpn/background/node.def b/templates/monitor/vpn/background/node.def
new file mode 100644
index 0000000..7fbfd18
--- /dev/null
+++ b/templates/monitor/vpn/background/node.def
@@ -0,0 +1 @@
+help: Montior VPN in the background
diff --git a/templates/monitor/vpn/background/start/all/node.def b/templates/monitor/vpn/background/start/all/node.def
new file mode 100644
index 0000000..ac100e8
--- /dev/null
+++ b/templates/monitor/vpn/background/start/all/node.def
@@ -0,0 +1,3 @@
+help: Start background VPN monitoring
+run: ${vyatta_bindir}/vyatta-monitor-background "VPN-ALL" pluto pptp l2tp ppp
+
diff --git a/templates/monitor/vpn/background/start/ipsec/node.def b/templates/monitor/vpn/background/start/ipsec/node.def
new file mode 100644
index 0000000..7ba2631
--- /dev/null
+++ b/templates/monitor/vpn/background/start/ipsec/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring for IPSec VPN
+run: ${vyatta_bindir}/vyatta-monitor-background "VPN-IPSEC" pluto
diff --git a/templates/monitor/vpn/background/start/l2tp/node.def b/templates/monitor/vpn/background/start/l2tp/node.def
new file mode 100644
index 0000000..a43440e
--- /dev/null
+++ b/templates/monitor/vpn/background/start/l2tp/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring for L2TP VPN
+run: ${vyatta_bindir}/vyatta-monitor-background "VPN-L2TP:" l2tp ppp remote-access-aaa-win remote-access-zzz-mac
diff --git a/templates/monitor/vpn/background/start/node.def b/templates/monitor/vpn/background/start/node.def
new file mode 100644
index 0000000..dc17ca0
--- /dev/null
+++ b/templates/monitor/vpn/background/start/node.def
@@ -0,0 +1 @@
+help: Start VPN background monitoring
diff --git a/templates/monitor/vpn/background/start/pptp/node.def b/templates/monitor/vpn/background/start/pptp/node.def
new file mode 100644
index 0000000..7659282
--- /dev/null
+++ b/templates/monitor/vpn/background/start/pptp/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring for PPTP VPN
+run: ${vyatta_bindir}/vyatta-monitor-background "VPN-PPTP" pptp ppp
diff --git a/templates/monitor/vpn/background/stop/all/node.def b/templates/monitor/vpn/background/stop/all/node.def
new file mode 100644
index 0000000..8d735cd
--- /dev/null
+++ b/templates/monitor/vpn/background/stop/all/node.def
@@ -0,0 +1,3 @@
+help: Start background VPN monitoring
+run: ${vyatta_bindir}/vyatta-monitor-background-stop "VPN-ALL"
+
diff --git a/templates/monitor/vpn/background/stop/ipsec/node.def b/templates/monitor/vpn/background/stop/ipsec/node.def
new file mode 100644
index 0000000..d6ea71c
--- /dev/null
+++ b/templates/monitor/vpn/background/stop/ipsec/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring for IPSec VPN
+run: ${vyatta_bindir}/vyatta-monitor-background-stop "VPN-IPSEC" pluto
diff --git a/templates/monitor/vpn/background/stop/l2tp/node.def b/templates/monitor/vpn/background/stop/l2tp/node.def
new file mode 100644
index 0000000..2173baf
--- /dev/null
+++ b/templates/monitor/vpn/background/stop/l2tp/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring for L2TP VPN
+run: ${vyatta_bindir}/vyatta-monitor-background-stop "VPN-L2TP:" l2tp ppp remote-access-aaa-win remote-access-zzz-mac
diff --git a/templates/monitor/vpn/background/stop/node.def b/templates/monitor/vpn/background/stop/node.def
new file mode 100644
index 0000000..e0b76b2
--- /dev/null
+++ b/templates/monitor/vpn/background/stop/node.def
@@ -0,0 +1 @@
+help: Stop VPN background monitoring
diff --git a/templates/monitor/vpn/background/stop/pptp/node.def b/templates/monitor/vpn/background/stop/pptp/node.def
new file mode 100644
index 0000000..d1879e4
--- /dev/null
+++ b/templates/monitor/vpn/background/stop/pptp/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring for PPTP VPN
+run: ${vyatta_bindir}/vyatta-monitor-background-stop "VPN-PPTP" pptp ppp