If like me you had trouble with 64 bits counters...
You can have a lot at my fix : 
https://codeberg.org/cybercloud/openbsd-snmp-exporter/releases

Sorry but too tired to understand your problem but I will try to look at it 
tomorrow.

Good luck meanwhile

________________________________
De : [email protected] <[email protected]> de la part de Steve 
Shockley <[email protected]>
Envoyé : mardi, mai 19, 2026 9:10:13 PM
À : [email protected] <[email protected]>
Objet : snmpd_metrics

Hi, I'm using OpenBSD 7.8 and -current, and for a variety of reasons I'm
using Net-SNMPD instead of the built-in one.  Previously I was
forwarding from net_snmpd using proxy to snmpd listening on localhost.
I recently discovered snmpd_metrics, which seems to do something similar
without worrying about which oids to forward.

If I add agentx to the net_snmpd config and run snmpd_metrics -d -v, it
works great and I can see all the queries.  The documentation is a
little sparse, but I discovered in the initial commit message (end of
https://m365.eu.vadesecure.com/safeproxy/v4?f=58dkFptq70xybDPoy4ctcWDEmzjcfELBlcndXBEIhn6SQl4tnk4KKX3hsFzzYQbE&i=zrjiJNaMe1sz_YPXLBWyyRPSqVk2vSl9TK9ZWY4HH1MMg1bwK71hT5DvtIDgjjln3wtSCpam0bzppOqls8UEKQ&k=cHT8&r=cetC8hy30yai99uBPWDlbFz7hejFmTFOcjbAJMyMBC0i1NHIyqEkEzyrVFNXibXjEDnTDHlKM-t_bfNHu4qmvQ&s=ed5f5abf8c7d86e6a2f9703e7ba1e12bd8271d7226d0858546374fbc972ef691&u=https%3A%2F%2Fcvsweb.openbsd.org%2Flog%2Fsrc%2Flibexec%2Fsnmpd%2Fsnmpd_metrics%2Fmib.c%2Cv)
that it needs to be run as a daemon.

Is a template available for rc.d?  I can write one myself, but what user
should it run as?

I noticed if snmpd_metrics is running and net_snmpd restarts, it prints
[fd:4]: lost connection: Connection reset by peer
Failed to connect to snmpd: Permission denied
Failed to connect to snmpd: Permission denied

and never recovers.  Is there a way to make snmpd_metrics "depend" on
net_snmpd so if net_ restarts it also restarts _metrics?  (Or should it
be able to recover from that?)

Thanks.


Reply via email to