retire da-backup checks
[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