Random Project

A little mistake

There is a little mistake in line 18.

You can read:
elif [ $comm -eq 0 ]; then
but it must be:
elif [ $comm -eq 2 ]; then
You have to replace 0 for 2 because the answer of snmpwalk when one ethernet interface shows down is 2 not 0.

the value 0 is only for unreachable ethernet interface.

Anyway it’s a good plugin.