From c7b8ec71de80d51ea48dbd981ae9b5710d721e0d Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 21 Oct 2011 11:44:05 -0500 Subject: Add monitoring for specific openvpn interface processes --- templates/monitor/openvpn/interface/node.def | 1 + templates/monitor/openvpn/interface/node.tag/background/node.def | 1 + .../monitor/openvpn/interface/node.tag/background/start/node.def | 2 ++ .../monitor/openvpn/interface/node.tag/background/stop/node.def | 2 ++ templates/monitor/openvpn/interface/node.tag/node.def | 5 +++++ 5 files changed, 11 insertions(+) create mode 100644 templates/monitor/openvpn/interface/node.def create mode 100644 templates/monitor/openvpn/interface/node.tag/background/node.def create mode 100644 templates/monitor/openvpn/interface/node.tag/background/start/node.def create mode 100644 templates/monitor/openvpn/interface/node.tag/background/stop/node.def create mode 100644 templates/monitor/openvpn/interface/node.tag/node.def 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 "" ${array[@]##*/} +run: ${vyatta_bindir}/vyatta-monitor OpenVPN-$4 openvpn-$4 -- cgit v1.2.3