Page 1 of 1

Huawei Port Monitoring with Nagios

Posted: Fri Jun 09, 2017 3:14 am
by soamz
Hello, Im trying to do port monitoring of a Huawei s5700 switch.

same config works for cisco, juniper, ubiquiti, tp link, everything.
But not working for Huawei.
What am I doing wrong ?


what we want to do if we want to monitor port 3 of Huawei Switch which ifindex is 7 ?

 we have added below config in nagios config file


define service{
use generic-service ; Inherit values from a template
host_name Huawei-Copper-NOC-Switch
service_description Port 3 Link Status
check_command check_snmp!-C jetpop@1 -o ifOperStatus.7 -r 1 -m RFC1213-MIB
notes "ok"
}

 SNMPWALK is fine
but we cannot monitor switchport status
might be some special config is required

Re: Huawei Port Monitoring with Nagios

Posted: Fri Jun 09, 2017 6:21 am
by mdomanski
could You show Your check_snmp command definition and error output from executed command?

Re: Huawei Port Monitoring with Nagios

Posted: Fri Jun 09, 2017 12:46 pm
by tgriep
Also, post the output from the snmpwalk here so we can view what the device is returning and we can verify the ifindex you are using is detected.
Another thing to try is that your community string has an @ symbol in it and that could be the issue.
Put the community string in single quotes and that may fix the issue for you.

Code: Select all

-C 'jetpop@1' -o ifOperStatus.7 -r 1 -m RFC1213-MIB