Make nut ups monitoring work

This commit is contained in:
Daniel A. Maierhofer
2018-03-03 15:36:17 +01:00
parent 2fc852685a
commit 31f238b92a
20 changed files with 154 additions and 102 deletions

View File

@@ -0,0 +1,14 @@
# {{ ansible_managed }}
# /etc/nut/upssched/upsscript
#! /bin/sh
case $1 in
onbatt)
ssh
;;
lowbatt)
/sbin/upssched fsd;;
*)
echo "wrong Parameter";;
esac