I have two raspberry pis. One has Dietpi installed while the other has Hassio.
I am using SNMP installed on Dietpi to get the OID of a free space left on a specific disc on Dietpi. In this way, I could check on my Hassio installation how much disc space is left on Dietpi through the SNMP integration.
Since about a week I can see that I cannot retrieve anymore that information but I always get a Timeout: No Response from localhost
Hi Joulinar, I had also noticed those errors but to me they don’t look important as they are related to partitions I am not interested (I am only interested in /mnt/sdb1).
I cannot understand why it has been working for me but it is just since a week or two that suddenly I get that error now.
well you receive a Timeout on your request. So it could be, that the system is not able to complete the request because of the 2 missing file systems bot being available.
What happen if you execute just a minimized snmpwalk command
snmpwalk -On -v 2c -c public localhost
maybe there are some more information within journalctl
Hi Joulinar, by giving the first command you mentioned I get a very long list of OIDs but in the end I can see there is still “Timeout: No Response from localhost”. I have cut the code because it was very long otherwise.
This is instead the result with the second command:
root@DietPi:~# journalctl -u snmpd.service
-- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Sun 2020-02-02 22:22:18 CET. --
Feb 02 21:34:03 DietPi systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
Feb 02 21:34:03 DietPi systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon..
Feb 02 21:34:04 DietPi snmpd[591]: pcilib: Cannot open /proc/bus/pci
Feb 02 21:34:04 DietPi snmpd[591]: pcilib: Cannot find any working access method.
Feb 02 21:34:04 DietPi snmpd[591]: pcilib: pci_init failed
Feb 02 21:36:01 DietPi snmpd[591]: Cannot statfs /mnt/batocera: No such device
Feb 02 21:36:01 DietPi snmpd[591]: /etc/snmp/snmpd.conf: line 145: Warning: Unknown token: defaultMonitors.
Feb 02 21:36:01 DietPi snmpd[591]: /etc/snmp/snmpd.conf: line 147: Warning: Unknown token: linkUpDownNotifications.
Feb 02 21:36:01 DietPi snmpd[591]: Turning on AgentX master support.
Feb 02 21:36:01 DietPi snmpd[591]: error finding row index in _ifXTable_container_row_restore
Feb 02 21:36:01 DietPi snmpd[591]: error finding row index in _ifXTable_container_row_restore
Feb 02 21:36:01 DietPi snmpd[591]: NET-SNMP version 5.7.3
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Feb 02 22:20:47 DietPi snmpd[591]: Connection from UDP: [127.0.0.1]:56546->[127.0.0.1]:161
Joulinar so in practice what could I do? Sorry but I am pretty noob with snmpd and honestly I don’t really like it as it seems very obscure to me. I am only using because it has been the only (easy?) way to check how much space I have left on my device and interface that information in Home assistant sitting in another raspberry pi.
ok it stop at the same line. It seems snmp is not able to collect some data and that’s where it timeout. for me it still looks like, you would need to fix the 2 error messages we have seen above.
Feb 02 18:24:38 DietPi snmpd[576]: Cannot statfs /mnt/batocera: No such device
Feb 02 18:24:38 DietPi snmpd[576]: Cannot statfs /run/docker/netns/ad525e0f7c50: Permission denied
Joulinar I think I solved the problem. With the function of dietpi drive manager I tried to see if I could delete this /mnt/batocera as I never created/used it. As soon as I opened the drive manager the partition disappeared. I guess for some reason the system was thinking that partition was existing and freezing when not finding it but now it looks like the registry was automatically “fixed” after accessing the drive manager. Still don’t know how all this mess created but I am happy got solved.