Greetings All,
I have a small issue where when I create a host, set it up the Interface to use SNMP to gather data.
After saving the device, I never get feedback from the device to any responses from zabbix.
I have multiple unifi devices delivering SNMP data back to my zabbix monitoring dashboard, only I cannot get the USG Gateway to send feedback.
If I run an snmpwalk command from the zabbix server to the USG Gateway, I get data back.
Only it does not send back to zabbix itself.
I have done some reading and someone suggested that the snmp data requsted is being sent back from the wrong network interface on the USG itself.
On the commanline on the zabbix server, I run the snmpwalk command and I see data sent back on eth1, nothing is sent to eth0
On the USG I run the following commands to monitor both interfaces. I do this in two separate terminal screens.
tcpdump -vv -i eth0 'port 161'
tcpdump -vv -i eth1 'port 161'
below is the output on the zabbix server
llamprec@kodi:~$ snmpwalk -Os -v 1 -c ican 192.168.1.1 | cut -d "." -f 8-50 | head -n10
1.0 = STRING: "EdgeOS v4.4.55.5377096.210212.1121"
2.0 = OID: iso.3.6.1.4.1.41112.1.5
3.0 = Timeticks: (65317742) 7 days, 13:26:17.42
4.0 = STRING: "ican"
5.0 = STRING: "ICANGateway"
6.0 = STRING: "ican"
7.0 = INTEGER: 14
8.0 = Timeticks: (13) 0:00:00.13
9.1.2.1 = OID: iso.3.6.1.2.1.10.131
9.1.2.2 = OID: iso.3.6.1.6.3.11.3.1.1
below is an extract from the tcpdump
23:19:17.303374 IP (tos 0x0, ttl 64, id 14590, offset 0, flags [DF], proto UDP (17), length 71)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(30) R=135251452 ip.ipFragOKs.0=160 } }
23:19:17.303690 IP (tos 0x0, ttl 64, id 19243, offset 0, flags [DF], proto UDP (17), length 69)
kodi.localdomain.44841 > setup.ubnt.com.snmp: [udp sum ok] { SNMPv1 C=ican { GetNextRequest(28) R=135251453 ip.ipFragOKs.0 } }
23:19:17.305024 IP (tos 0x0, ttl 64, id 14591, offset 0, flags [DF], proto UDP (17), length 70)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(29) R=135251453 ip.ipFragFails.0=0 } }
23:19:17.305320 IP (tos 0x0, ttl 64, id 19244, offset 0, flags [DF], proto UDP (17), length 69)
kodi.localdomain.44841 > setup.ubnt.com.snmp: [udp sum ok] { SNMPv1 C=ican { GetNextRequest(28) R=135251454 ip.ipFragFails.0 } }
23:19:17.306888 IP (tos 0x0, ttl 64, id 14592, offset 0, flags [DF], proto UDP (17), length 71)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(30) R=135251454 ip.ipFragCreates.0=418 } }
So my next things was to monitor both terminals for a while to see if there is any data sent between the zabbix server and the USG device, on either network interfaces.
After a while it seems there is no request sent from zabbix to the USG device. No clue why or what I am doing wrong.
Any ideas please
Thanks
Lawrence
I have a small issue where when I create a host, set it up the Interface to use SNMP to gather data.
After saving the device, I never get feedback from the device to any responses from zabbix.
I have multiple unifi devices delivering SNMP data back to my zabbix monitoring dashboard, only I cannot get the USG Gateway to send feedback.
If I run an snmpwalk command from the zabbix server to the USG Gateway, I get data back.
Only it does not send back to zabbix itself.
I have done some reading and someone suggested that the snmp data requsted is being sent back from the wrong network interface on the USG itself.
On the commanline on the zabbix server, I run the snmpwalk command and I see data sent back on eth1, nothing is sent to eth0
On the USG I run the following commands to monitor both interfaces. I do this in two separate terminal screens.
tcpdump -vv -i eth0 'port 161'
tcpdump -vv -i eth1 'port 161'
below is the output on the zabbix server
llamprec@kodi:~$ snmpwalk -Os -v 1 -c ican 192.168.1.1 | cut -d "." -f 8-50 | head -n10
1.0 = STRING: "EdgeOS v4.4.55.5377096.210212.1121"
2.0 = OID: iso.3.6.1.4.1.41112.1.5
3.0 = Timeticks: (65317742) 7 days, 13:26:17.42
4.0 = STRING: "ican"
5.0 = STRING: "ICANGateway"
6.0 = STRING: "ican"
7.0 = INTEGER: 14
8.0 = Timeticks: (13) 0:00:00.13
9.1.2.1 = OID: iso.3.6.1.2.1.10.131
9.1.2.2 = OID: iso.3.6.1.6.3.11.3.1.1
below is an extract from the tcpdump
23:19:17.303374 IP (tos 0x0, ttl 64, id 14590, offset 0, flags [DF], proto UDP (17), length 71)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(30) R=135251452 ip.ipFragOKs.0=160 } }
23:19:17.303690 IP (tos 0x0, ttl 64, id 19243, offset 0, flags [DF], proto UDP (17), length 69)
kodi.localdomain.44841 > setup.ubnt.com.snmp: [udp sum ok] { SNMPv1 C=ican { GetNextRequest(28) R=135251453 ip.ipFragOKs.0 } }
23:19:17.305024 IP (tos 0x0, ttl 64, id 14591, offset 0, flags [DF], proto UDP (17), length 70)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(29) R=135251453 ip.ipFragFails.0=0 } }
23:19:17.305320 IP (tos 0x0, ttl 64, id 19244, offset 0, flags [DF], proto UDP (17), length 69)
kodi.localdomain.44841 > setup.ubnt.com.snmp: [udp sum ok] { SNMPv1 C=ican { GetNextRequest(28) R=135251454 ip.ipFragFails.0 } }
23:19:17.306888 IP (tos 0x0, ttl 64, id 14592, offset 0, flags [DF], proto UDP (17), length 71)
setup.ubnt.com.snmp > kodi.localdomain.44841: [udp sum ok] { SNMPv1 C=ican { GetResponse(30) R=135251454 ip.ipFragCreates.0=418 } }
So my next things was to monitor both terminals for a while to see if there is any data sent between the zabbix server and the USG device, on either network interfaces.
After a while it seems there is no request sent from zabbix to the USG device. No clue why or what I am doing wrong.
Any ideas please
Thanks
Lawrence