Page 1 of 1

Switch scan fails to show any ports

Posted: Fri Sep 27, 2024 5:55 am
by jdk
I am trying to scan a new series of Aruba switches into Nagios but Nagios is not seeing any ports. The diagnosis is showing below

The key line seems to be SNMPopen failed: The msgAuthoritativeEngineID length of 3 is out of range (5..32) during discovery

I can see ports using other SNMP walk tools. This is happening in NagiosXI 5.11.1 and the latest version.

Any assistance appreciated.


[root@cr-netmon ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/switch/template --zero-speed '100000000' --enablesnmpv3 --snmp-options=:161::::3 --username='' --authprotocol='sha' --authpassword='' --privprotocol='aes' --privpassword='XXXX' --contextengineid=0 '10.141.250.33'
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on [email protected]:161::::3
SNMPopen failed: The msgAuthoritativeEngineID length of 3 is out of range (5..32) during discovery
at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 1580.
Net_SNMP_util::snmpopen('[email protected]:161::::3:v4only', 0, 'ARRAY(0x2528918)') called at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 1690
Net_SNMP_util::snmpwalk_flg('[email protected]:161::::3:v4only', undef, 'HASH(0x1f22958)', 1.3.6.1.2.1.1) called at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk('[email protected]:161::::3:v4only', 'HASH(0x1f22958)', 1.3.6.1.2.1.1) called at /usr/bin/cfgmaker line 954
main::DeviceInfo('[email protected]:161::::3', 'HASH(0x1f22bf8)', 'HASH(0x1f22958)') called at /usr/bin/cfgmaker line 143
main::main() called at /usr/bin/cfgmaker line 161
SNMPWALK Problem for [email protected]:161::::3:v4only at /usr/bin/cfgmaker line 954.
WARNING: Skipping [email protected]:161::::3 as no info could be retrieved

Use of uninitialized value $syscontact in substitution (s///) at /usr/bin/cfgmaker line 380.
Use of uninitialized value $syslocation in substitution (s///) at /usr/bin/cfgmaker line 381.
Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 382.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 415.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 415.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 415.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 415.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/switch/template --zero-speed 100000000 --enablesnmpv3 --snmp-options=:161::::3 --username=XXXX--authprotocol=sha --authpassword=XXXX --privprotocol=aes --privpassword=XXXX --contextengineid=0 10.141.250.33


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################


enablesnmpv3: yes

Re: Switch scan fails to show any ports

Posted: Tue Oct 01, 2024 10:59 am
by lgute
Hi @jdk, thanks for reaching out.

This may be an edit to hide sensitive information, but I noticed --username and --authpassword are blank/empty in the command listed for the diagnosis output. Is that correct?

Code: Select all

[root@cr-netmon ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/switch/template --zero-speed '100000000' --enablesnmpv3 --snmp-options=:161::::3 --username='' --authprotocol='sha' --authpassword='' --privprotocol='aes' --privpassword='XXXX' --contextengineid=0 '10.141.250.33'
This post may be helpful for troubleshooting...
Nagios XI Unable to monitor HP/Aruba Switches with routing