switch wizard v2.0.5
Posted: Fri May 16, 2014 2:04 pm
As my other thread "router / switch wizard SNMPv3" is closed now, I'll post it here. You can move this to the other thread if you want to.
Is my download of switch.zip v2.0.5 corrupted or why is the last if-clause incomplete?
When I change it to
it works fine. I hope jomann kann help a very last time
.
Is my download of switch.zip v2.0.5 corrupted or why is the last if-clause incomplete?
Code: Select all
# Give the actual check result
if [ $comm -eq 1 ]; then
echo "OK - Interface $ifacename is up."
exit $STATE_OK
elif [ $comm -eq 2 ]; then
echo "CRITICAL - Interface $ifacename is down"
exit $STATE_CRITICAL
else
Code: Select all
# Give the actual check result
if [ $comm -eq 1 ]; then
echo "OK - Interface $ifacename is up."
exit $STATE_OK
elif [ $comm -eq 2 ]; then
echo "CRITICAL - Interface $ifacename is down"
exit $STATE_CRITICAL
fi