summaryrefslogtreecommitdiff
path: root/agent/nut
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-09-09 19:14:41 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-09-09 19:14:51 (GMT)
commitf985fbe0fa2646a060d8b021bf6883938a32513b (patch)
treef9dbfb79b54ff8891f904bb7fdd629049d597117 /agent/nut
parent2db3a2a6be414cfdb12fc63b81d9c07394cb379c (diff)
added nut
Diffstat (limited to 'agent/nut')
-rwxr-xr-xagent/nut11
1 files changed, 11 insertions, 0 deletions
diff --git a/agent/nut b/agent/nut
new file mode 100755
index 0000000..2e4e76f
--- /dev/null
+++ b/agent/nut
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if which upsc > /dev/null 2>&1 ; then
+ echo '<<<nut>>>'
+ for ups in $(upsc -l)
+ do
+ upsc $ups| sed "s,^,$ups ,"
+ done
+fi
+
+exit 0