Make nut ups monitoring work
This commit is contained in:
14
roles/ups/templates/upsscript.j2
Normal file
14
roles/ups/templates/upsscript.j2
Normal 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
|
||||
Reference in New Issue
Block a user