[SOLVED] SNMP Fails to reply.

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 373

PostPosted: Wed Apr 06, 2022 14:29    Post subject: Reply with quote
You could try cross compiling snmpd to figure out the problem.

When I started using dd-wrt, my cron jobs would work unreliably. Turns out dd-wrt had a long standing known cron falling asleep bug. I followed a simple tutorial like this and quickly got a hello world working. Then got dd-wrt's cron code from subversion and it compiled easily (static link). Just killed cron from dd-wrt and ran my cron with added debug messages. Found a small bug in dd-wrt specific cron code, proposed a fix and BS submitted it and dd-wrt users enjoy reliable cron jobs ever since.

Since snmpd is a pretty standalone process, the same technique could work to solve this snmpd bug. Alternatively contact egc about building a full build but that's more complicated.
Sponsor
Malmgren
DD-WRT Novice


Joined: 21 Aug 2017
Posts: 24

PostPosted: Wed Apr 06, 2022 16:45    Post subject: Reply with quote
I finally solved my problems, I thought I might summarize here what I did for anyone stumbling over this thread having the same problems. It turned out to have a dead simple solution. There are some OIDs that make snmpd crash and burn when asked for. It seems those OIDs aren't asked for when Munin does it's normal probe though so they aren't a problem in day-to-day running, only when doing the first setup (which seems to do a scan of all OIDs).

So the thing you need to do is following the guide on https://wiki.dd-wrt.com/wiki/index.php/Munin but with the addition of actually restarting snmpd after having run munin-node-configure. This can be done either by clicking Apply Settings on the services page of the web gui or by telnetting/ssh:ing to the router and running "snmpd -c /var/snmp/snmpd.conf". It might also be a good idea to first check if it really has crashed by running something like "ps|grep snmp" (which should output two rows if snmp is running).

Oh, and another note about the wiki guide: It really isn't a good idea using "public" as community name. Put something else in there, just be sure to put the same thing in the RO Community setting in dd-wrt and in Munins env.community setting.

/Daniel
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum