projects
/
mirror
/
dsa-nagios.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
86d132c8d288e4a273642c89e573f2837a7a47a8
[mirror/dsa-nagios.git]
/
dsa-check-ups
1
#!/bin/bash
2
3
st=$(upsc ups1@localhost | awk -F: '$1 == "ups.status" {print $2}' | sed -e 's/^ *//')
4
if [ "$st" = "OL CHRG" ]; then
5
echo "OK: Status is $st"
6
exit 0
7
else
8
echo "Warning: Status is $st"
9
exit 1
10
fi