error adding cisco switch
Posted: Thu Jun 06, 2024 10:03 am
I'm trying to add a cisco switch and am getting some errors. I am able to get snmp data from the switch from my computer and verified that I'm not blocking ports.
[root@nagios ~]#
[root@nagios ~]# /usr/bin/cfgmaker --no-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/000' --enablesnmpv3 --snmp-options=:161::::3 --username='nagiossnmp' --authprotocol='sha' --authpassword='v3password''v3password' --contextengineid=0 '10.13.200.245'
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on [email protected]:161::::3
SNMPopen failed: Received usmStatsWrongDigests.0 Report-PDU with value 10 during synchronization
at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 1580.
Net_SNMP_util::snmpopen('[email protected]:161::::3:v4only', 0, 'ARRAY(0x2cead58)') called at /usr/bin/../lib/m
Net_SNMP_util::snmpwalk_flg('[email protected]:161::::3:v4only', undef, 'HASH(0x26e50a8)', 1.3.6.1.2.1.1) calletil.pm line 786
Net_SNMP_util::snmpwalk('[email protected]:161::::3:v4only', 'HASH(0x26e50a8)', 1.3.6.1.2.1.1) called at /usr/b
main::DeviceInfo('[email protected]:161::::3', 'HASH(0x26e5348)', 'HASH(0x26e50a8)') called at /usr/bin/cfgmake
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 --no-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/switch/templatev3 --snmp-options=:161::::3 --username=nagiossnmp --authprotocol=sha --authpassword=v3password --privprotocol=aes --pengineid=0 10.13.200.245
### 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@nagios ~]#
[root@nagios ~]#
[root@nagios ~]# /usr/bin/cfgmaker --no-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/000' --enablesnmpv3 --snmp-options=:161::::3 --username='nagiossnmp' --authprotocol='sha' --authpassword='v3password''v3password' --contextengineid=0 '10.13.200.245'
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on [email protected]:161::::3
SNMPopen failed: Received usmStatsWrongDigests.0 Report-PDU with value 10 during synchronization
at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 1580.
Net_SNMP_util::snmpopen('[email protected]:161::::3:v4only', 0, 'ARRAY(0x2cead58)') called at /usr/bin/../lib/m
Net_SNMP_util::snmpwalk_flg('[email protected]:161::::3:v4only', undef, 'HASH(0x26e50a8)', 1.3.6.1.2.1.1) calletil.pm line 786
Net_SNMP_util::snmpwalk('[email protected]:161::::3:v4only', 'HASH(0x26e50a8)', 1.3.6.1.2.1.1) called at /usr/b
main::DeviceInfo('[email protected]:161::::3', 'HASH(0x26e5348)', 'HASH(0x26e50a8)') called at /usr/bin/cfgmake
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 --no-down --noreversedns --if-template=/usr/local/nagiosxi/html/includes/configwizards/switch/templatev3 --snmp-options=:161::::3 --username=nagiossnmp --authprotocol=sha --authpassword=v3password --privprotocol=aes --pengineid=0 10.13.200.245
### 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@nagios ~]#