Page 1 of 1

switch wizard v2.0.5

Posted: Fri May 16, 2014 2:04 pm
by b2m
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?

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
When I change it to

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
it works fine. I hope jomann kann help a very last time ;).

Re: switch wizard v2.0.5

Posted: Fri May 16, 2014 2:18 pm
by sreinhardt
Just verified this, and patched internally. I will check if there is anything else before a new one is put out.