Etikett: snmp

Asus RT-N66U SNMP

Om du har bytt firmware i din rt-66u till Merlin s? f?r du m?jlighet att prata SNMP med den. Merlin kan du h?mta hem h?r http://asuswrt.lostrealm.ca/ och det fungerar riktigt bra, som orginal fast b?ttre 😉

Det du kommer att bli f?rvirrad ?ver ?r interfacen, vilket interface ?r vad? Min google-fu gav mig detta. OP5 Monitor visar nu schyssta grafer p? min trafik och h?ller koll p? statusen (om du vill ta kontroll ?ver din IT rekommenderar jag att du tar dig en titt p? OP5 Monitor). Mer bra att l?sa info finns h?r https://swenotes.wordpress.com/2015/10/02/snmp-monitoring-my-asus-rt-n66u-for-performance-testing/

eth0 = WAN
br0 = Bridge
eth1 = Wifi 2.4G
eth2 = Wifi 5G
vlan1 = LAN switch
Bryggan byggs upp av vlan1, eth1 and eth2. S? br0 ?r eventuellt hela lanet, jag ?r lite os?ker p? det.

snmp i din tomato

Om du som jag bytt firmware i din Linksys router och lagt in Tomato Firmware (www.polarcloud.com/tomato). Då kanske du saknar snmp möjligheterna somfinns i andra varianter (t.ex. DD-WRT)?

Jag ramlade över ett forum där det beskrivs hur man gör och det är ruskigt enkelt att få in en snmpd i den…

Här http://www.linksysinfo.org/forums/showthread.php?t=51064 stog det så här:

[1] create a network-share, either on a Windows- or Unix-host that runs 24/7
[2] mount that share as /cifs1 using Tomato’s CIFS Client
[3] create a subdirectory on that CIFS-share, eg. sbin/
[4] get this file: http://bok.xs4all.nl/downloads/snmpd.zip
Mirror: http://www.xs4all.nl/~bokh/downloads/snmpd.zip
This file contains the SNMPd-binary (version 5.0.9) and snmpd.conf.
(MD5 (snmpd) = ae0d622648efdb8dceb7b3b5a63e23ac)
[5] unpack the ZIP-file and move the files into the sbin-directory you just created
[6] start SNMPd by logging into your WRT54 and entering

Code:

/cifs1/sbin/snmpd -c /cifs1/sbin/snmpd.conf &

[9] test SNMP from the machine you’re going to monitor from:

Code:

snmpwalk -c public -v 2c <IP-address of the WRT54>

It’s beyond the scope of this HOWTO, how to install and enable SNMP on a system… there is lot’s of good documentation describing this.

[7] If it’s working put these two entries in Administration –> Scripts –> Firewall.

UPDATE: Changed Init to Firewall. See the Tomato-FAQ why:

http://www.polarcloud.com/tomatofaq#…artup_script_w

Code:

sleep 30
/cifs1/sbin/snmpd -c /cifs1/sbin/snmpd.conf -s &

Don’t forget to save!

Now Tomato will start SNMPd after each reboot.

[8] Start using remote monitoring. I prefer Cacti on FreeBSD:

© 2024 Editio Princeps

Tema av Anders NorenUpp ↑