Update check_koji.

This commit is contained in:
Ricky Zhou (周家杰) 2009-03-13 23:32:24 -04:00
parent 2623d77779
commit d5762471d3

View file

@ -1,11 +1,8 @@
#!/bin/bash
CHECK='/usr/bin/wget -qO- http://publictest8.fedora.phx.redhat.com/koji/builds | /bin/grep -c failed.png'
WARNING=7
CRITICAL=15
FAILURES=$(/usr/bin/wget -qO- http://publictest8.fedora.phx.redhat.com/koji/builds | /bin/grep -c failed.png)
FAILURES=$(/usr/bin/wget -q --no-check-certificate -O- http://koji1.fedora.phx.redhat.com/koji/builds | /bin/grep -c failed.png)
WARNING=20
CRITICAL=25
if [ $FAILURES -gt $CRITICAL ]
then