Adding ucode & UPS definitions to IAC
This commit is contained in:
6
roles/Sharingan/files/monit/scripts/check-cyberpower
Executable file
6
roles/Sharingan/files/monit/scripts/check-cyberpower
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ `pwrstat -status | sed 's/^\s\+//' | grep -E ^State | awk '{ print $2; }'` != 'Normal' ]; then
|
||||
exit 2;
|
||||
fi
|
||||
exit 0
|
Reference in New Issue
Block a user