Ad Widget

Collapse

SNMP item getting network error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    SNMP item getting network error

    I'm monitoring an NVR using "Interfaces Simple SNMP" template for network interfaces discovery.
    It uses SNMP v3 and, basically, queries every 3m for interface data.
    Recently I've noticed that it is skipping some data from "interface eth0: Bits received".

    Every 3m it queries for "eth0: Bits received", but for every 3 queries or so, 1 is missing, like shown below.
    Code:
    Timestamp           Interface eth0: Bits received
    2021-07-30 11:00:13 43087728
    2021-07-30 10:54:12 42927256
    2021-07-30 10:51:12 42286456
    2021-07-30 10:48:12 42315672
    2021-07-30 10:45:13 42692576
    2021-07-30 10:39:13 41204944
    2021-07-30 10:36:12 41245800
    Notice that there are 6 minutes gaps between some of the collected data, instead of just 3m.
    The same thing does not happen for "bits sent" data, only for "bits received".

    Grafana highlights those gaps a little better.
    Click image for larger version

Name:	eth0_gaps.png
Views:	825
Size:	46.9 KB
ID:	429005

    Searching Zabbix Server logs, I've found just a network error for this specific item (net.if.in[ifInOctets.2]). It is from days ago and has not much information.
    Code:
    $ sudo cat /var/log/zabbix/zabbix_server.log | grep "ifInOctets"
    1129:20210725:023915.562 SNMP agent item "net.if.in[ifInOctets.2]" on host "NVR" failed: first network error, wait for 15 seconds

    Despite that, my NVR host is also getting some network errors for other items.
    Code:
    25966:20210730:011815.388 SNMP agent item "net.if.out.errors[ifOutErrors.2]" on host "NVR" failed: first network error, wait for 15 seconds
    25969:20210730:011830.795 resuming SNMP agent checks on host "NVR": connection restored
    25964:20210730:070615.674 SNMP agent item "enterprises.deviceType" on host "NVR" failed: first network error, wait for 15 seconds
    25969:20210730:070631.518 resuming SNMP agent checks on host "NVR": connection restored
    25967:20210730:080025.111 SNMP agent item "remoteCam[status7]" on host "NVR" failed: first network error, wait for 15 seconds
    25969:20210730:080040.485 resuming SNMP agent checks on host "NVR": connection restored
    25968:20210730:095515.227 SNMP agent item "physicalVolume[status2]" on host "NVR" failed: first network error, wait for 15 seconds
    25969:20210730:095530.749 resuming SNMP agent checks on host "NVR": connection restored
    I'm lost right now.
    Any ideas why that is happening?
Working...