Hello all,
I was a given a task to set up SNMP on Zabbix.
When I try to configure the hosts in Zabbix, I get a "timeout while connecting to x.x.x.x". The SNMP community name is configured in Zabbix, under "MACROS" tab. The same community name is configured in the switch. Here is an output from the SNMP configuration in one of our switches.
So the "XYZ" ( random community-name in this case) is the same on both Zabbix and the switch. Logging host is of course enabled. The port 161 is enabled in Zabbix, the switch is in the right group and the correct template is also there.
Here is the configuration from the switch.
!
snmp-server community XYZ RO
snmp-server trap-source Vlan2
snmp-server source-interface informs Vlan2
snmp-server location x.x.x.x
snmp-server contact x.x.x.x
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps tty
snmp-server enable traps cluster
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps entity
snmp-server enable traps cpu threshold
snmp-server enable traps storm-control trap-rate 1
snmp-server enable traps bridge newroot topologychange
snmp-server enable traps stpx inconsistency root-inconsistency loop-inconsistency
snmp-server enable traps syslog
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps flash insertion removal
snmp-server enable traps port-security
snmp-server enable traps envmon fan shutdown supply temperature status
snmp-server enable traps mac-notification change move threshold
snmp-server enable traps vlan-membership
snmp-server host (IP) version 2c XYZ tty cluster config-copy config entity cpu storm-control bridge stpx syslog vtp vlancreate vlandelete port-security envmon mac-notification vlan-membership snmp
We have other switches in the network and SNMP works perfectly fine for them. I compared the setup in Zabbix and the configuration in the switches with those that SNMP is functioning and did exactly the same setup (just different community name) but I still cant make it work, still get "timeout while connecting"
Any tips?
No comments:
Post a Comment