Page 1 of 2

Nagios XI not reading Huawei routers interface descriptions

Posted: Fri Apr 24, 2015 9:47 am
by thokokang
Nagios Xi not able to read interface descriptions from Huawei Quidway net engine router. I am using Network Switch / Router Monitoring Wizard

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Fri Apr 24, 2015 12:16 pm
by jdalrymple
The Nagios switch wizard uses the standard IF-MIB. What do you get from your device if you try the following:

[jddalrymple@localhost ~]$ snmpwalk -c <community> -v 2c Huawei IP ifDescr
IF-MIB::ifDescr.1 = STRING: Vlan1
IF-MIB::ifDescr.200 = STRING: Vlan100
IF-MIB::ifDescr.301 = STRING: Vlan201
IF-MIB::ifDescr.5001 = STRING: Port-channel1
IF-MIB::ifDescr.5002 = STRING: Port-channel2
IF-MIB::ifDescr.5004 = STRING: Port-channel4
IF-MIB::ifDescr.10101 = STRING: GigabitEthernet0/1
IF-MIB::ifDescr.10102 = STRING: GigabitEthernet0/2
IF-MIB::ifDescr.10103 = STRING: GigabitEthernet0/3
IF-MIB::ifDescr.10104 = STRING: GigabitEthernet0/4
IF-MIB::ifDescr.10105 = STRING: GigabitEthernet0/5
IF-MIB::ifDescr.10106 = STRING: GigabitEthernet0/6
IF-MIB::ifDescr.10107 = STRING: GigabitEthernet0/7
IF-MIB::ifDescr.10108 = STRING: GigabitEthernet0/8
IF-MIB::ifDescr.10109 = STRING: GigabitEthernet0/9
IF-MIB::ifDescr.10110 = STRING: GigabitEthernet0/10
IF-MIB::ifDescr.10111 = STRING: GigabitEthernet0/11
IF-MIB::ifDescr.10112 = STRING: GigabitEthernet0/12
IF-MIB::ifDescr.10113 = STRING: GigabitEthernet0/13
IF-MIB::ifDescr.10114 = STRING: GigabitEthernet0/14
IF-MIB::ifDescr.10115 = STRING: GigabitEthernet0/15
IF-MIB::ifDescr.10116 = STRING: GigabitEthernet0/16
IF-MIB::ifDescr.10117 = STRING: GigabitEthernet0/17
IF-MIB::ifDescr.10118 = STRING: GigabitEthernet0/18
IF-MIB::ifDescr.10119 = STRING: GigabitEthernet0/19
IF-MIB::ifDescr.10120 = STRING: GigabitEthernet0/20
IF-MIB::ifDescr.10121 = STRING: GigabitEthernet0/21
IF-MIB::ifDescr.10122 = STRING: GigabitEthernet0/22
IF-MIB::ifDescr.10123 = STRING: GigabitEthernet0/23
IF-MIB::ifDescr.10124 = STRING: GigabitEthernet0/24
IF-MIB::ifDescr.10125 = STRING: GigabitEthernet0/25
IF-MIB::ifDescr.10126 = STRING: GigabitEthernet0/26
IF-MIB::ifDescr.10127 = STRING: GigabitEthernet0/27
IF-MIB::ifDescr.10128 = STRING: GigabitEthernet0/28

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Sat Apr 25, 2015 1:09 pm
by thokokang
Below is what i get. I think I just didn't make my self clear. What I am looking for is just like another product does, to automatically capture interface description and NagiosXI to automatically update when I change the description on the router/switch interface or when i add subinterface .

[root@nagios ~]# snmpwalk -c ........... -v 2c ............... ifDescr
IF-MIB::ifDescr.128 = STRING: InLoopBack0
IF-MIB::ifDescr.262 = STRING: NULL0
IF-MIB::ifDescr.513 = STRING: GigabitEthernet0/0/1
IF-MIB::ifDescr.641 = STRING: GigabitEthernet0/0/2
IF-MIB::ifDescr.774 = STRING: Aux0
IF-MIB::ifDescr.897 = STRING: GigabitEthernet1/0/0
IF-MIB::ifDescr.1025 = STRING: GigabitEthernet1/0/1
IF-MIB::ifDescr.1153 = STRING: GigabitEthernet2/0/0
IF-MIB::ifDescr.1281 = STRING: GigabitEthernet2/0/1
IF-MIB::ifDescr.1410 = STRING: Ethernet4/0/0
IF-MIB::ifDescr.1538 = STRING: Ethernet4/0/1
IF-MIB::ifDescr.1666 = STRING: Ethernet4/0/2
IF-MIB::ifDescr.1794 = STRING: Ethernet4/0/3
IF-MIB::ifDescr.1922 = STRING: Ethernet4/0/4
IF-MIB::ifDescr.2050 = STRING: Ethernet4/0/5
IF-MIB::ifDescr.2178 = STRING: Ethernet4/0/6
IF-MIB::ifDescr.2306 = STRING: Ethernet4/0/7
IF-MIB::ifDescr.2434 = STRING: Ethernet4/0/1.401
IF-MIB::ifDescr.2562 = STRING: Ethernet4/0/4.1
IF-MIB::ifDescr.2690 = STRING: Ethernet4/0/4.2
IF-MIB::ifDescr.2818 = STRING: Ethernet4/0/4.30
IF-MIB::ifDescr.2946 = STRING: Ethernet4/0/4.400
IF-MIB::ifDescr.3074 = STRING: Ethernet4/0/4.401
IF-MIB::ifDescr.3202 = STRING: Ethernet4/0/4.501
IF-MIB::ifDescr.3329 = STRING: GigabitEthernet1/0/1.30
IF-MIB::ifDescr.3457 = STRING: GigabitEthernet1/0/1.51
IF-MIB::ifDescr.3585 = STRING: GigabitEthernet2/0/0.28
IF-MIB::ifDescr.3713 = STRING: GigabitEthernet2/0/0.29
IF-MIB::ifDescr.3841 = STRING: GigabitEthernet2/0/0.30
IF-MIB::ifDescr.3969 = STRING: GigabitEthernet2/0/0.31
IF-MIB::ifDescr.4097 = STRING: GigabitEthernet2/0/0.32
IF-MIB::ifDescr.4225 = STRING: GigabitEthernet2/0/0.33
IF-MIB::ifDescr.4353 = STRING: GigabitEthernet2/0/0.34
IF-MIB::ifDescr.4481 = STRING: GigabitEthernet2/0/0.35
IF-MIB::ifDescr.4609 = STRING: GigabitEthernet2/0/0.36
IF-MIB::ifDescr.4737 = STRING: GigabitEthernet2/0/0.37
IF-MIB::ifDescr.4865 = STRING: GigabitEthernet2/0/0.38
IF-MIB::ifDescr.4993 = STRING: GigabitEthernet2/0/0.39
IF-MIB::ifDescr.5121 = STRING: GigabitEthernet2/0/0.40
IF-MIB::ifDescr.5249 = STRING: GigabitEthernet2/0/0.41
IF-MIB::ifDescr.5377 = STRING: GigabitEthernet2/0/0.42
IF-MIB::ifDescr.5505 = STRING: GigabitEthernet2/0/0.43
IF-MIB::ifDescr.5633 = STRING: GigabitEthernet2/0/0.44
IF-MIB::ifDescr.5761 = STRING: GigabitEthernet2/0/0.45
IF-MIB::ifDescr.5889 = STRING: GigabitEthernet2/0/0.46
IF-MIB::ifDescr.6017 = STRING: GigabitEthernet2/0/0.47
IF-MIB::ifDescr.6145 = STRING: GigabitEthernet2/0/0.48
IF-MIB::ifDescr.6273 = STRING: GigabitEthernet2/0/0.49
IF-MIB::ifDescr.6401 = STRING: GigabitEthernet2/0/0.50
IF-MIB::ifDescr.6529 = STRING: GigabitEthernet2/0/0.51
IF-MIB::ifDescr.6657 = STRING: GigabitEthernet2/0/0.52
IF-MIB::ifDescr.6785 = STRING: GigabitEthernet2/0/0.53
IF-MIB::ifDescr.6913 = STRING: GigabitEthernet2/0/0.200
IF-MIB::ifDescr.7041 = STRING: GigabitEthernet2/0/0.400
IF-MIB::ifDescr.7169 = STRING: GigabitEthernet2/0/0.1000
IF-MIB::ifDescr.7297 = STRING: GigabitEthernet2/0/1.30
IF-MIB::ifDescr.7425 = STRING: GigabitEthernet2/0/1.400
IF-MIB::ifDescr.7552 = STRING: LoopBack0
IF-MIB::ifDescr.7698 = STRING: Ethernet4/0/5.10
IF-MIB::ifDescr.7810 = STRING: Ethernet4/0/5.11
IF-MIB::ifDescr.7938 = STRING: Ethernet4/0/5.12
IF-MIB::ifDescr.8066 = STRING: Ethernet4/0/4.1000
IF-MIB::ifDescr.8193 = STRING: GigabitEthernet2/0/0.54
[root@nagios ~]#

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Mon Apr 27, 2015 9:26 am
by jdalrymple
I see what you're saying now, I think. The wizard is capturing the data OK, but you want the system to automatically update each time an interface is added/removed/modified?

This would be best implemented in a single service, not the way the wizard works which is to create a service for each interface. There are likely some plugins on the exchange that do this, but before I try to seek one out for you can you tell me what about the interface you wish to monitor? Are you simply hoping to know operational status or do you hope to see some other metrics monitored such as usage and the like?

Using the wizard is NOT going to allow for any non-interactive adding/removing of interfaces.

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Mon Apr 27, 2015 9:50 am
by thokokang
Yes exactly I want system to automatically update each time an interface is added/removed/modified - be able to read the actual interface desciption.
I want to monitor usage on these interfaces.

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Mon Apr 27, 2015 2:42 pm
by abrist
thokokang wrote:Yes exactly I want system to automatically update each time an interface is added/removed/modified - be able to read the actual interface desciption.
I want to monitor usage on these interfaces.
This type of plugin does not exist as far as I know. You would need to create a custom script to do such a thing. It would need to generate a config, check for changes on a con, and place an updated config in the static directory (and then restart nagios) as well as most likely include a companion plugin to check and notify you of changes.

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Mon Apr 27, 2015 3:30 pm
by jdalrymple
So the thing to understand here is that the wizard creates a separate service (more than 1 actually) for each interface. In order to add, remove or change services, the Nagios configuration has to be changed. It is not common to have autonomous changes made to your Nagios configuration, generally we require human intervention to make those changes.

What can be done is if you can use 1 service to grab all the data, and then the service input and output is allowed to be dynamic - the desired results can be gained with just a single service check.

The bad news is that today there isn't a GREAT check to do that. The check_snmp_int.pl does it, but probably doesn't return all the data you're seeking. You can fiddle with it and see how it works for you as it's included in the default install of NagiosXI. Also, today it's not available via wizard.

The good news however is that in the next major release of NagiosXI this will have a feature where that the host check will dynamically create the list of interfaces for you and will also allow you to alert on a great deal of metrics for those interfaces. It's an add-on that is currently not ready, but was promised to me by the developers in the next major release.

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Tue Apr 28, 2015 8:07 am
by thokokang
Thanks for the response. When is the next major release of Nagios XI ? Just wondering on the same issue Is it possible to intergrate Nagios XI with Cacti.

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Tue Apr 28, 2015 9:46 am
by tmcdonald
Considering we just released 2014r2.7 not too long ago, the next major release is probably at least a month out if not more. I don't have an exact date for you, unfortunately.

As for Cacti, could you please start a new thread for that so we can keep things organized?

Re: Nagios XI not reading Huawei routers interface descripti

Posted: Tue Apr 28, 2015 1:18 pm
by thokokang
OK thanks