No ports were detected on switch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jladolcetta
Posts: 2
Joined: Tue Feb 23, 2021 10:32 am

No ports were detected on switch

Post by jladolcetta »

I am trying to monitor a Nexus 9508 and am getting the following output from cfgmaker:


[root@localhost ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='nagios' --authprotocol='md5' --authpassword='%xV2d3n$' --privprotocol='des' --privpassword='%xV2d3n$' --contextengineid=0 '192.168.88.2'
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on public@192.168.88.2:::::3
SNMPopen failed: Received usmStatsWrongDigests.0 Report-PDU with value 6 during synchronization
at /usr/bin/../lib64/mrtg2/Net_SNMP_util.pm line 1580.
Net_SNMP_util::snmpopen("public\@192.168.88.2:::::3:v4only", 0, ARRAY(0x5607535024d0)) called at /usr/bin/../lib64/mrtg2/Net_SNMP_util.pm line 1690
Net_SNMP_util::snmpwalk_flg("public\@192.168.88.2:::::3:v4only", undef, HASH(0x560752c7fa20), "1.3.6.1.2.1.1") called at /usr/bin/../lib64/mrtg2/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk("public\@192.168.88.2:::::3:v4only", HASH(0x560752c7fa20), "1.3.6.1.2.1.1") called at /usr/bin/cfgmaker line 952
main::DeviceInfo("public\@192.168.88.2:::::3", HASH(0x560752c7f900), HASH(0x560752c7fa20)) called at /usr/bin/cfgmaker line 143
main::main() called at /usr/bin/cfgmaker line 161
SNMPWALK Problem for public@192.168.88.2:::::3:v4only at /usr/bin/cfgmaker line 952.
WARNING: Skipping public@192.168.88.2:::::3 as no info could be retrieved

Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 380.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 413.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 413.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 413.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 413.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 --enablesnmpv3 --snmp-options=:::::3 --username=nagios --authprotocol=md5 --authpassword=%xV2d3n$ --privprotocol=des --privpassword=%xV2d3n$ --contextengineid=0 192.168.88.2


### 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
[root@localhost ~]#


The snmp config for the switch is as follows:

snmp-server user admin network-admin auth md5 0x2f463308349a3ed22a80aefcf0e03687 priv 0x2f463308349a3ed22a80aefcf0e03687 localizedkey
snmp-server user nagios network-operator auth sha 0x6cbcc14e3f7c7a373dcb5b34e71c26913b8accdb priv 0x6cbcc14e3f7c7a373dcb5b34e71c26913b8accdb localizedkey

Please let me know what I am missing.
Thanks
Jeff Ladolcetta
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: No ports were detected on switch

Post by cdienger »

The nagios account appears to be using sha so try:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='nagios' --authprotocol='sha' --authpassword='%xV2d3n$' --privprotocol='des' --privpassword='%xV2d3n$' --contextengineid=0 '192.168.88.2'
And also try it with aes:

Code: Select all

/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='nagios' --authprotocol='sha' --authpassword='%xV2d3n$' --privprotocol='aes' --privpassword='%xV2d3n$' --contextengineid=0 '192.168.88.2'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.