At Nagios Exchange I ran over a plugin for “3com” switches.
It’s for the ones that are Huawei at their core, then got sold as H3C or 3Com or now HP.
Here are the dependencies to run it on debian…
tar -xzf Nagios-Plugin-0.34.tar.gz
# I got many errors here, but in the end it worked.
perl Makefile.PL && make ; make test ; make install
aptitude install libparams-validate-perl libmath-calc-units libconfig-tiny-perl libnet-snmp-perl
Then it should be possible to run it:
waxu0024:/tmp# perl check_3com_health.pl
Usage: check_3com_health.pl -H [ -u|unit ] [ -C ]
[ –only ] [ -w ] [ -c ]
[ –fw ] [ –fc ] [ –pw ] [ –pc ]
[ –mw ] [ –mc ] [ –cw ] [ –cc ]
[ -T |–tcptimeout ]
Missing argument: host
Now one tricky thing.
3com devices will have the enterprise number 43 (3com) wheres H3C/Huawei devices will use (2011)
This will result in the following error:
waxu0024:/tmp# perl check_3com_health.pl -H 192.168.17.57 –fw 4
3COM_HEALTH CRITICAL – SNMP ERROR
I tried to replace the OID in the script, no better. we’ll see.