in progress
This commit is contained in:
parent
362710ffa8
commit
4ee5939b13
490 changed files with 14041 additions and 0 deletions
19
roles/nagios_server/files/plugins/check_koji
Executable file
19
roles/nagios_server/files/plugins/check_koji
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue