Not sure when, but all the output lines got commented out. Fixed.

This commit is contained in:
Elyrith 2013-08-21 23:44:26 -04:00
parent f84ac3e093
commit 2df597f8df

View File

@ -144,9 +144,9 @@ diffseconds=$((expseconds-nowseconds))
expdays=$((diffseconds/86400)) expdays=$((diffseconds/86400))
# Trigger alarms if applicable # Trigger alarms if applicable
#[ $expdays -lt 0 ] && die $STATE_CRITICAL "CRITICAL - Domain expired on $expiration. | Warning: $warning, Critical: $critical" [ $expdays -lt 0 ] && die $STATE_CRITICAL "CRITICAL - Domain expired on $expiration. | Warning: $warning, Critical: $critical"
#[ $expdays -lt $critical ] && die $STATE_CRITICAL "CRITICAL - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical" [ $expdays -lt $critical ] && die $STATE_CRITICAL "CRITICAL - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical"
#[ $expdays -lt $warning ] && die $STATE_WARNING "WARNING - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical" [ $expdays -lt $warning ] && die $STATE_WARNING "WARNING - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical"
# No alarms? Ok, everything is right. # No alarms? Ok, everything is right.
echo "OK - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical" echo "OK - Domain will expire in $expdays days ($expdate). | Warning: $warning, Critical: $critical"