[CONFIRMED] SNMP Stopped working

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page 1, 2  Next
Author Message
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Tue May 10, 2022 7:16    Post subject: [CONFIRMED] SNMP Stopped working Reply with quote
Hello everyone, long time no see! LOL

Wasn't sure if I should post this here or in the Advanced section, if it is only related to MVEBU units. (Also if you could let me know if the links in my signature no longer apply, that would be great)

I was out of state and updated my WRT3200ACM, WRT1900AC v1, and WRT1200AC to r48646 from r48432. SNMP has seemed to stop working on all of them. I have Cacti running on a Pi, it is no longer receiving anything from the WRTs, it is still getting info from my managed switches.

I know not many here use SNMP, and I try to keep up on the svn changes, but I don't remember seeing anything to do with SNMP.

Any advice would be greatly appreciated!

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Tue May 10, 2022 8:50    Post subject: Reply with quote
Wouldn't know without rechecking your setup screenshots and snmp info and any router logs. All of which you need to provide.

On a related note; a while back I asked BS to update snmp to latest version, but it was a no, cause apparently the new version just adds bloat.
That to say the last time snmp was update or anything snmp related was many moons ago so you wouldnt have seen anything recent..

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Wed May 11, 2022 12:46    Post subject: Reply with quote
Hello the-joker!
Thank you for all the code you have done for the UI, love the Matrix one. I'm sure you also had something to do with the new options as well.

I understand the reasoning to not update SNMP, especially if it is bloated, doesn't really do much LOL. If it works it works.

I am adding a few screenshots, what would you like to see from the logs? Are we talking serial logs?

Thanks for the response.

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Wed May 11, 2022 21:41    Post subject: Reply with quote
system logs, enabled in the services tab.

grab them via terminal in /var/logs/messages and attach to your reply.

Im unsure what it will log for SNMP though.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Thu May 12, 2022 7:52    Post subject: Reply with quote
You are right, I did not see anything in the messages, and I searched my Syslog Watcher and absolutely nothing matched *snmp*.

Possibly when it boots? I can try that, to see if I catch anything. Or logging has been turned off on it, I never had to look before. Could try to use snmpwalk on one of my pi's to see if the router is even responding at all.

I will keep you updated, I mean there has been no updates to Cacti for quite a while.

Thank you!

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Thu May 12, 2022 8:45    Post subject: Reply with quote
It is not responding at all:
Code:
pi@CactiPi:~ $ snmpwalk -c public -v 1 192.168.1.1
Timeout: No Response from 192.168.1.1
pi@CactiPi:~ $


I have tried tried it on 3 pi's that are on different switches.

I SSH'd into the router, and I am not the best trying to figure out all the different commands and switches depending on what the OS is. Trying to see the status of snmp, or snmpd. Seems that snmpd does not exist, just snmp. Not sure if that is an issue or not, and I also don't know how to see if it is running, haven't found that command yet. Been a long time. I also don't see it in htop also.

Code:

root@3200_ACM:~# service status-all
service servicename start|stop|restart|main args... [-f]
options:
-f : force start of service, no matter if neccessary
list of services:
 [main]
        snmp                    [start] [stop] [restart]


_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Thu May 12, 2022 11:08    Post subject: Reply with quote
To see if snmp is working you can try grepping top

Code:
top | grep snmp

there should be two instances coming up one for snmp and one for the grep, if you dont get anything but the grep instance, try starting snmp
Code:
snmp start
or
snmp restart
or??
restart snmp
or??
start snmp


I remember a little while back someone was having issues with snmp, something about the service bailing, I spoke to BS about upgrading it, but you know the answer.

Also make sure you are running the latest public beta http://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2022/

Other than that idk... Looks ok your config

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
jwieland
DD-WRT Novice


Joined: 31 May 2018
Posts: 48

PostPosted: Fri May 13, 2022 4:36    Post subject: Reply with quote
On my WRT1200ac v2 running r48810, snmpd is in /usr/sbin (it's in the same place on my r7800). I've had no trouble with it and Cacti. If it's running, you should see it with ps:

Code:
root@wrt1200ac:~# ps | grep snmp
 4491 root      3228 S    snmpd -c /var/snmp/snmpd.conf
 4662 root      1396 S    grep snmp
root@wrt1200ac:~#


You can stop and start it with the service command:

Code:
root@wrt1200ac:~# service snmp stop
[snmpd] : daemon successfully stopped
root@wrt1200ac:~# service snmp start
[snmpd] : SNMP daemon successfully started
root@wrt1200ac:~#

_________________
Netgear R7800 - DD-WRT v3.0-r44810 VANILLA/VANILLA
Linksys WRT1200ACv2 - DD-WRT v3.0-r48810
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Sat May 14, 2022 3:21    Post subject: Reply with quote
Nevermind this post.
Nothing to see here LOL.

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv


Last edited by ATHF on Sat May 14, 2022 3:25; edited 1 time in total
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Sat May 14, 2022 3:24    Post subject: Reply with quote
jwieland wrote:
On my WRT1200ac v2 running r48810, snmpd is in /usr/sbin (it's in the same place on my r7800). I've had no trouble with it and Cacti. If it's running, you should see it with ps:

Code:
root@wrt1200ac:~# ps | grep snmp
 4491 root      3228 S    snmpd -c /var/snmp/snmpd.conf
 4662 root      1396 S    grep snmp


My output:

Code:
root@3200_ACM:~# ps | grep snmp
25737 root      1396 S    grep snmp
root@3200_ACM:~#


no snmpd.conf..

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 5:23    Post subject: Reply with quote
Then snmp is not running.

Have you tried starting it via terminal? If so what was the result.

I would suggest that in Administration commands, you add the command to start snmp service snmp start, and save as firewall and click apply, for time being at least.

I have noticed that snmp wont start as expected via UI after enabling the service, sving and applying, but after running service snmp start via terminal, the output of ps/top grep snmp outputs as normal.

Code:
:~# ps | grep snmp
25307 root     snmpd -c /var/snmp/snmpd.conf
25523 root     grep snmp


Clearly there is some bug preventing snmp from starting, will pong BS about this thread.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 8:22    Post subject: Reply with quote
What I have beeen able to tell is, if /var/snmp/snmpd.conf doesnt exist, and the service is enabled and you click apply (must be apply), the /var/snmp/snmpd.conf isnt being created consistently.

Took me 4 clicks of the apply button, waiting 10 seconds between to get snmp started and this is when the /var/snmp/snmpd.conf exists, and even then the service starting isnt being logged in /var/log/messages

if /var/snmp/snmpd.conf does not exist, you need to disable->apply, enable->apply add naseaum before the file is created, it can take up to unknown amount of times. This waiting 10 seconds between each enable/disable step to give slower machines time to catch up and the user to check if service and or file has been created/started.

and logging is equally flaky.

Meanwhile BS tried it and on his first try, it worked (Sod's law/Murphy's law at play here), idk if he is looking into it but I have reported a sure way to reproduce by removing the conf file when the service is disabled, and then taking it from there.

Could be Asus and your machine only, or could be its reproducible randomly, even though Im able to repro by removing the conf file.

I looked at the code and cant see anything weird.

I give up. Done what I could.

Good luck.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
ATHF
DD-WRT Guru


Joined: 14 Dec 2015
Posts: 761
Location: 127.0.0.1

PostPosted: Sat May 14, 2022 9:41    Post subject: Reply with quote
You are correct, it took me 3 times. I didn't add it to the firewall startup, as I saw you replied again. Wait about ten seconds between...

Code:

root@3200_ACM:~# ps | grep snmp
25737 root      1396 S    grep snmp
root@3200_ACM:~# ps | grep snmp
  711 root      1396 S    grep snmp
root@3200_ACM:~# ps | grep snmp
 3635 root      3104 S    snmpd -c /var/snmp/snmpd.conf
 5041 root      1396 S    grep snmp
root@3200_ACM:~#


The 1900AC took two times to start.

Now, should I add it to the firewall startup? (Did you have success if it was restarted?)
It (The Cacti) is now getting information. Just don't want it to go away if the UPS runs out, or if I upgrade versions..

Never pong BS, ping him and buy him a beer! Very Happy

And thank you again for looking into this!

_________________
Tutorial for flashing WRT series
WRT Installation,Upgrade & Basic Setup–Cliff Notes
r48646: WRT3200ACM, WRT1200ACv1 & 1 Velop in bridge mode(IoT subnet), WRT1900ACv1
Velop:2 WHW0101, RE6500, RE9000(AP)
Spectrum - 1000/50
SysLog Watcher 5, Security Onion 2 on Virtual Box, Fingboxes, PiHoles, NEMS, Cacti, rpisurv
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 10:13    Post subject: Reply with quote
And who buys me a beer? Im broke for reals, and cant afford the basics. Soon water and power will be next.

If you set this as firewall and long as conf exists, it will for sure run the command when you restart device (even after upgrades) and when you click apply at least on admin page (it restarts some services) so saving as firewall may work better.

But yea, its clearly some issue here and with Dnsmasq also, takes two applies to really write to dnsmasq.conf any changes. Perhaps other random services affected either randomly or limited to some platforms due to Murphy's law...

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 672
Location: All over YOUR webs

PostPosted: Sat May 14, 2022 13:03    Post subject: Reply with quote
Several fixes went in from https://svn.dd-wrt.com/changeset/48873 to https://svn.dd-wrt.com/changeset/48882 contains new snmp stuff including upgrade to latest 5.9.1

the services snmp.c was refactored so fingers crossed.

The snag as I saw it, even though the code was right (Im not a C person so looked OK) when the snmpd.conf didnt exist (as if snmp was never used this is normal) and you enabled the service and clicked apply, the file wasnt getting created as per code dictated within reasonable time and thus service didn't start.

But assuming file existed then the service should have started on first click, also not always the case.

So lets see what happens now.

And WTF, I dont even use this crap.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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 cannot attach files in this forum
You cannot download files in this forum