Blame | Last modification | View Log | RSS feed
#/bin/shfile="/var/log/services/nagios-Monitoring.properties"if [ -f "$file" ]thenwhile IFS='=' read -r key valuedokey=$(echo $key | tr '.' '_')eval ${key}=\${value}done < "$file"currentBalance=${currentSmsCount}elseecho "$file not found."fiif [ $currentBalance -lt 1000 ]; thenecho "CRITICAL - $currentBalance"exit 2elif [ 1000 -le $currentBalance ]; thenecho "OK - $currentBalance"exit 0elseecho "UNKNOWN - $currentBalance"exit 3fi