Fix Nagios mode return levels
This commit is contained in:
parent
d7f6ae73e1
commit
95e035deb1
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ do
|
|||
break;
|
||||
elif [ $i -eq $MAX_CHECK ]
|
||||
then
|
||||
[ $NAGIOS -eq 1 ] && echo "WARNING : Fail to retrieve current stable version" && exit 1
|
||||
[ $NAGIOS -eq 1 ] && echo "UNKNOWN : Fail to retrieve current stable version" && exit 1
|
||||
error="Site du projet injoignable (ou structure du site modifie !!) => Impossible de recuperer le numero de la version stable actuel."
|
||||
[ $DEBUG -eq 1 ] && echo $error
|
||||
if [ -f $CACHE_FAILED ]
|
||||
|
@ -165,7 +165,7 @@ if [ "$newest" != "$current" ]
|
|||
then
|
||||
if [ $NAGIOS -eq 1 ]
|
||||
then
|
||||
echo "CRITICAL : A newest version of Roundcube Webmail is available (newest : $newest / current : $current)"
|
||||
echo "WARNING : A newest version of Roundcube Webmail is available (newest : $newest / current : $current)"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue