projects
/
mirror
/
dsa-nagios.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
petrova on stretch!
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
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