Focal Fossa : snmpd log alerts continuously if ipv6 is disabled
Bug #1871307 reported by
Cyril Buquet
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Fix Released
|
Low
|
Rafael David Tinoco |
Bug Description
On ubuntu server with ipv6 disabled, snmpd log alerts continuously
"ipaddress_linux: could not open /proc/net/if_inet6: No such file or directory"
Package (not accepted by bug report) : snmpd
How to test :
1) Add ipv6.disable=1 to GRUB_CMDLINE_
2) update-grub
3) remove or comment "agentaddress 127.0.0.1,[::1]" into /etc/snmp/
4) systemctl enable snmpd
5) reboot
6) systemctl status snmpd
7) grep if_inet6 /var/log/syslog
Other information about this problem :
https:/
https:/
Related branches
~rafaeldtinoco/ubuntu/+source/net-snmp:lp1871307-focal
Merged
into
ubuntu/+source/net-snmp:ubuntu/focal-devel
at
revision bea3ca6805f3b6971fbcad8068228619b22ba95a
- Lucas Kanashiro (community): Approve
- Canonical Server: Pending requested
- Canonical Server Core Reviewers: Pending requested
-
Diff: 57 lines (+35/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/lp1871307-log-once-proc-net-if_inet6-failure.patch (+27/-0)
debian/patches/series (+1/-0)
affects: | ubuntu → net-snmp (Ubuntu) |
tags: | added: focal |
Changed in net-snmp (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
importance: | Undecided → Low |
To post a comment you must log in.
Fixed by upstream commit:
commit cd09fd825228618 30aaf9d237b26ee f5f9ba50d2
Author: Bart Van Assche <email address hidden>
Date: Wed Nov 21 20:47:42 2018 -0800
MIB-II: Only log once that opening /proc/net/if_inet6 failed
If IPv6 has been disabled (ipv6.disable=1) then opening /proc/net/if_inet6
fails. Only log this once instead of thousand of times a day.
Reported-by: Fif <email address hidden>
diff --git a/agent/ mibgroup/ ip-mib/ data_access/ ipaddress_ linux.c b/agent/ mibgroup/ ip-mib/ data_access/ ipaddress_ linux.c .280575ce3 100644 mibgroup/ ip-mib/ data_access/ ipaddress_ linux.c mibgroup/ ip-mib/ data_access/ ipaddress_ linux.c netsnmp_ container *container, int idx_offset)
index 5ddead3e0.
--- a/agent/
+++ b/agent/
@@ -234,7 +234,7 @@ _load_v6(
#define PROCFILE "/proc/ net/if_ inet6" perror( "ipaddress_ linux: could not open " PROCFILE); LOGONCE( (LOG_ERR, "ipaddress_linux: could not open " PROCFILE));
if (!(in = fopen(PROCFILE, "r"))) {
- snmp_log_
+ NETSNMP_
return -2;
}