SNMP request for our tuners

Jotne

Vu+ Newbie
Hi

I would like to have a SNMP deamon in my VU+
This way I can easy monitor status of my box and make nice graphs of it using SNMP tools
(Cacti/Munin++++ many other that support SNMP)
You can see CPU/Memory process, diskfree, HDD temp +++++

I have looked at this but are not able to fix this my self due to my limitation on linux.
We many need to compile a SNMPd for Mips, I do not know how.

Any voting for this or have any idea on how to implement this?
 

angelofsky1980

BlackHole Driver Specialist
Hi

I would like to have a SNMP deamon in my VU+
This way I can easy monitor status of my box and make nice graphs of it using SNMP tools
(Cacti/Munin++++ many other that support SNMP)
You can see CPU/Memory process, diskfree, HDD temp +++++

I have looked at this but are not able to fix this my self due to my limitation on linux.
We many need to compile a SNMPd for Mips, I do not know how.

Any voting for this or have any idea on how to implement this?
I will compile it ASAP and I will move your request to Development forum :)
 

Armageddon

BH Lover
Hi

I would like to have a SNMP deamon in my VU+
This way I can easy monitor status of my box and make nice graphs of it using SNMP tools
(Cacti/Munin++++ many other that support SNMP)
You can see CPU/Memory process, diskfree, HDD temp +++++

I have looked at this but are not able to fix this my self due to my limitation on linux.
We many need to compile a SNMPd for Mips, I do not know how.

Any voting for this or have any idea on how to implement this?

Great idea!
 

angelofsky1980

BlackHole Driver Specialist
Here the IPKs nd BH packages needed.

Install instructions:
Install the BH package first and then all the IPKs.
Reboot your box
 

Attachments

  • snmp_init_bh.tgz
    642 bytes · Views: 45
  • net-snmp-server_svn-r5.0_mipsel.ipk
    23.3 KB · Views: 43
  • net-snmp-mibs_svn-r5.0_mipsel.ipk
    278.2 KB · Views: 43
  • net-snmp-client_svn-r5.0_mipsel.ipk
    235.8 KB · Views: 38
  • libnetsnmp20_svn-r5.0_mipsel.ipk
    2 MB · Views: 43

Jotne

Vu+ Newbie
wow, wow, what a fast responce, I am amaced.:thanks:

It seems to be important that you run "net-snmp-mibs_svn-r5.0_mipsel.ipk" before "net-snmp-server_svn-r5.0_mipsel.ipk", or else it will fail with some missing mib errors.

Snmpd is running and does react on SNMP request, but does not give me any other information, so there may be som more mib errors
 

Jotne

Vu+ Newbie
snmpwalk -v1 -c public 192.168.1.4 1

gives me this output (should be long/long/long)
Code:
iso.3.6.1.2.1.1.1.0 = STRING: "Linux bm750 3.1.1 #1 SMP Sat Feb 4 21:29:53 CET 2012 mips"
iso.3.6.1.2.1.1.2.0 = OID: iso.3
iso.3.6.1.2.1.1.3.0 = Timeticks: (4063705141) 470 days, 8:04:11.41
iso.3.6.1.2.1.1.4.0 = STRING: "Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.5.0 = STRING: "bm750"
iso.3.6.1.2.1.1.6.0 = STRING: "Unknown (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.8.0 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.11.2.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (12) 0:00:00.12
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (12) 0:00:00.12
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (13) 0:00:00.13
End of MIB
 

angelofsky1980

BlackHole Driver Specialist
snmpwalk -v1 -c public 192.168.1.4 1

gives me this output (should be long/long/long)
Code:
iso.3.6.1.2.1.1.1.0 = STRING: "Linux bm750 3.1.1 #1 SMP Sat Feb 4 21:29:53 CET 2012 mips"
iso.3.6.1.2.1.1.2.0 = OID: iso.3
iso.3.6.1.2.1.1.3.0 = Timeticks: (4063705141) 470 days, 8:04:11.41
iso.3.6.1.2.1.1.4.0 = STRING: "Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.5.0 = STRING: "bm750"
iso.3.6.1.2.1.1.6.0 = STRING: "Unknown (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.8.0 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.11.2.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (10) 0:00:00.10
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (12) 0:00:00.12
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (12) 0:00:00.12
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (13) 0:00:00.13
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (13) 0:00:00.13
End of MIB
I think you should verify and config the daemon editing the files reported by the output of snmpwalk ....
 

Jotne

Vu+ Newbie
It will not help. This value iso.3.6.1.2.1.1.6.0 is only the location. I still miss all the mibs for network traffic, disk info etc. iso.3.6.1.2.1.1.4.0 This is system contact.
 

Tenia

Vu+ Newbie
when i try to install de package with opkg , i have a error : (i have bh 2.0.2 rev. D), have you any idea, thank you.

pkg_hash_fetch_best_installation_candidate: Packages for net-snmp-mibs found, but incompatible with the architectures configured
 

Jotne

Vu+ Newbie
I have now tried the SNMP on a Solo2 and still does not work correctly.

What you need to make the server part work is:
libnetsnmp20_svn-r5.0_mipsel.ipk (libary files needed for the binary to run)
net-snmp-mibs_svn-r5.0_mipsel.ipk (mib files)
net-snmp-server_svn-r5.0_mipsel.ipk (server files)

Not needed
net-snmp-client_svn-r5.0_mipsel.ipk (only needed if you like to have the client tools locally)
snmp_init_bh.tgz (not needed since the /etc/init.d/snmpd (snmp start file) is included in net-snmp-server_svn-r5.0_mipsel.ipk)

For some reason I did not get the install to run, so I did install the need files manual, set the correct rights and then run:
/etc/init.d/snmpd start
This then start the SNMPD daemon.

can bee seen by running:
netstat -upan
giving:
....
udp 0 0 0.0.0.0:161 0.0.0.0:* 21247/snmpd
...

If I then run from another computer/server:
snmpwalk -v 1 -c public 10.10.10.41 1.3
I still get only this:
Code:
iso.3.6.1.2.1.1.1.0 = STRING: "Linux vu-solo2-stue 3.3.8-2.0 #1 SMP Wed May 7 18:49:03 CEST 2014 mips"
iso.3.6.1.2.1.1.2.0 = OID: iso.3
iso.3.6.1.2.1.1.3.0 = Timeticks: (7306) 0:01:13.06
iso.3.6.1.2.1.1.4.0 = STRING: "Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.5.0 = STRING: "vu-solo2-stue"
iso.3.6.1.2.1.1.6.0 = STRING: "Unknown (configure /etc/snmp/snmpd.local.conf)"
iso.3.6.1.2.1.1.8.0 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.11.2.3.1.1
iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.15.2.1.1
iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.10.3.1.1
iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.1
iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.2.1.49
iso.3.6.1.2.1.1.9.1.2.6 = OID: iso.3.6.1.2.1.4
iso.3.6.1.2.1.1.9.1.2.7 = OID: iso.3.6.1.2.1.50
iso.3.6.1.2.1.1.9.1.2.8 = OID: iso.3.6.1.6.3.16.2.2.1
iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.2 = STRING: "The MIB for Message Processing and Dispatching."
iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The SNMP Management Architecture MIB."
iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The MIB module for SNMPv2 entities"
iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The MIB module for managing TCP implementations"
iso.3.6.1.2.1.1.9.1.3.6 = STRING: "The MIB module for managing IP and ICMP implementations"
iso.3.6.1.2.1.1.9.1.3.7 = STRING: "The MIB module for managing UDP implementations"
iso.3.6.1.2.1.1.9.1.3.8 = STRING: "View-based Access Control Model for SNMP."
iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.6 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.7 = Timeticks: (6) 0:00:00.06
iso.3.6.1.2.1.1.9.1.4.8 = Timeticks: (6) 0:00:00.06
End of MIB


What I miss is the CPU/Memory/interface info like this:
Code:
Load
1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1
5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2
15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3

CPU
percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
raw user cpu time: .1.3.6.1.4.1.2021.11.50.0
percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0
raw system cpu time: .1.3.6.1.4.1.2021.11.52.0
percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0
raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0
raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0

Memory Statistics

Total Swap Size: .1.3.6.1.4.1.2021.4.3.0
Available Swap Space: .1.3.6.1.4.1.2021.4.4.0
Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0
Total RAM used: .1.3.6.1.4.1.2021.4.6.0
Total RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total RAM Shared: .1.3.6.1.4.1.2021.4.13.0
Total RAM Buffered: .1.3.6.1.4.1.2021.4.14.0
Total Cached Memory: .1.3.6.1.4.1.2021.4.15.0

Any help with this would be nice.

My SNMP tool hangs (or uses long time) when trying to list what resources to monitor from my VU+ Solo
 
Last edited:

crayfish

Vu+ Newbie
Just FYI, I have compiled the latest SNMP agent 5.7.2.1-r0 (aka "SNMP Server" aka "snmpd") and put them in the VTI Forum, just search for SNMP there. I can post them here (if somebody needs them) but you can go there as well :) I have also compiled a version for the ARM CPU, which is used by the Solo 4K.


The reason you do not see the OIDs for Load, Memory, Disks etc. is that the default snmpd.conf file excludes them. You need to change this:

access MyROSystem "" any noauth exact system none none

to this:

access MyROSystem "" any noauth exact all none none


I am also in the process of creating a "SNMP Manager on Raspi" project, so that people might make more use of SNMP's power.


Crayfish
 
Top