diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-21 11:44:05 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:33 -0500 |
commit | df6580c2d6655c4a278a24bc28d25fce88be3137 (patch) | |
tree | 20e0140d1388c5309f06ae64883f4b3d6dac61ea | |
parent | 28ecee135be5a62e4224b6eedd5fcdabddee75a7 (diff) | |
download | vyatta-op-df6580c2d6655c4a278a24bc28d25fce88be3137.tar.gz vyatta-op-df6580c2d6655c4a278a24bc28d25fce88be3137.zip |
Add monitoring for specific openvpn interface processes
(cherry picked from commit c7b8ec71de80d51ea48dbd981ae9b5710d721e0d)
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 |