aboutsummaryrefslogtreecommitdiff
path: root/net/apinger/files/apinger-hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'net/apinger/files/apinger-hotplug')
-rw-r--r--net/apinger/files/apinger-hotplug22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/apinger/files/apinger-hotplug b/net/apinger/files/apinger-hotplug
new file mode 100644
index 000000000..70a29daf7
--- /dev/null
+++ b/net/apinger/files/apinger-hotplug
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+usage_help()
+{
+ echo "$0 <action> <instance> <target> <srcip> <target_desc> <alarm> <alarmtype> <reason> <send> <recieved> <loss> <delay> <timestamp>"
+}
+
+export ACTION=$1
+export INSTANCE=$2
+export APINGER_TARGET=$3
+export APINGER_SRCIP=$4
+export APINGER_TARGET_ID=$5
+export APINGER_ALARM=$6
+export APINGER_ALARM_TYPE=$7
+export APINGER_ALARM_MESSAGE=$8
+export APINGER_PROBES_SENT=$9
+export APINGER_PROBES_RECEIVED=${10}
+export APINGER_LOSS=${11}
+export APINGER_DELAY=${12}
+export APINGER_TIMESTAMP=${13}
+
+exec /sbin/hotplug-call apinger $@