in progress

This commit is contained in:
Ricky Elrod 2014-04-24 17:53:34 +00:00 committed by Ricky Elrod
parent 362710ffa8
commit 4ee5939b13
490 changed files with 14041 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/bin/bash
FAILURES=$(/usr/bin/wget -q --no-check-certificate -O- http://koji03.phx2.fedoraproject.org/koji/builds | /bin/grep -c failed.png)
WARNING=20
CRITICAL=25
if [ $FAILURES -gt $CRITICAL ]
then
echo "Koji: CRITICAL failed builds: $FAILURES"
exit 2
elif [ $FAILURES -gt $WARNING ]
then
echo "Koji: WARNING failed builds: $FAILURES"
exit 1
else
echo "Koji: OK failed builds: $FAILURES"
exit 0
fi