summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rwxr-xr-xagent/gluster1
-rwxr-xr-xagent/nut11
-rwxr-xr-xagent/timezone1
3 files changed, 11 insertions, 2 deletions
diff --git a/agent/gluster b/agent/gluster
index e7098cd..da7dcc5 100755
--- a/agent/gluster
+++ b/agent/gluster
@@ -32,4 +32,3 @@ for vol in vl.iter('volume'):
# print "[heal:%s]" % vol.text
# hi_xml = check_output(["gluster", "--mode=script", "--xml", "volume", "heal", vol.text, "info" ])
# hi = ET.fromstring(hi_xml)
-
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
diff --git a/agent/timezone b/agent/timezone
index 0172e19..4370373 100755
--- a/agent/timezone
+++ b/agent/timezone
@@ -4,4 +4,3 @@ echo "<<<timezone>>>"
cat /etc/timezone
exit 0
-