switch wizard v2.0.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

switch wizard v2.0.5

Post 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 ;).
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: switch wizard v2.0.5

Post by sreinhardt »

Just verified this, and patched internally. I will check if there is anything else before a new one is put out.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked