Huawei Port Monitoring with Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
soamz
Posts: 42
Joined: Sat May 07, 2016 8:29 am

Huawei Port Monitoring with Nagios

Post 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
mdomanski
Posts: 23
Joined: Thu Dec 15, 2016 11:17 am

Re: Huawei Port Monitoring with Nagios

Post by mdomanski »

could You show Your check_snmp command definition and error output from executed command?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Huawei Port Monitoring with Nagios

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked