Hi,
I need your help since some FW are not responding to SNMP. We setup this community 7cq%O*p3u&7G
but I am not sure if it has the correct nomenclature, I mean, NagiosXi accept any character?
When I run the command Nagios suggest in the server I get this:
________________________________________________________________________________________________________________
[root@cdcprodnagmo01 ~]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' '7cq%O*p3u&7G@192.168.223.3:161::::2'
Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMP_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 604.
Subroutine SNMPv1_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib64/mrtg2/SNMP_Session.pm line 604.
--base: Get Device Info on 7cq%O*p3u&7G@192.168.223.3:161::::2
SNMP Error:
no response received
SNMPv2c_Session (remote host: "192.168.223.3" [192.168.223.3].161)
community: "7cq%O*p3u&7G"
request ID: -2000938572
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 651.
SNMPWALK Problem for 1.3.6.1.2.1.1 on 7cq%O*p3u&7G@192.168.223.3:161::::2:v4only
at /usr/bin/cfgmaker line 952.
WARNING: Skipping 7cq%O*p3u&7G@192.168.223.3:161::::2 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 "7cq%O*p3u&7G@192.168.223.3:161::::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:
######################################################################
________________________________________________________________________________________________________________
When I run the coomand below I get this:
[root@cdcprodnagmo01 ~]# snmpwalk -v2c -c 7cq%O*p3u&7G 192.168.223.3
[1] 2650868
-bash: 7G: command not found
[root@cdcprodnagmo01 ~]# No hostname specified.
USAGE: snmpwalk [OPTIONS] AGENT [OID]
Version: 5.8
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net
SNMP Community is not working
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: SNMP Community is not working
Hi,
For the snmpwalk command, please try wrapping your community string in single quotes and test again.
I searched that error and you seem to be hitting the issue in the document below. Please take a backup of the SNMP_Session.pm, and make the recommended changes and then test again.
Nagios XI - MRTG Reports SNMP_Session Errors
--Benjamin
For the snmpwalk command, please try wrapping your community string in single quotes and test again.
I searched that error and you seem to be hitting the issue in the document below. Please take a backup of the SNMP_Session.pm, and make the recommended changes and then test again.
Nagios XI - MRTG Reports SNMP_Session Errors
--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!