I have a Raspberry Pi, connected along-with some routers and switches in my network. I use OpenNMS to manage these networking devices. I was wishing to monitor the status of the Pi also in OpenNMS. I needed to monitor a few parameters like the
I was planning to write a SNMP agent for the Pi in C/C++/Java.
Could anyone tell me where can I find some good resource on writing your own SNMP agent ?
If you just want to monitor the status of the Pi using OpenNMS, you don't have to write your own SNMP agent. You just need to install SNMP on your Pi by following this link https://bigdanzblog.wordpress.com/2015/01/03/installing-snmp-onto-a-raspberry-pi/.
Then all you need to do is modify the read-community and version properties for the SNMP-config.xml
file in OpenNMS. The default data collection definition already contains all the parameters you want to see, but in case you want to customize it. Here is the link of how to do it. http://www.opennms.org/wiki/SNMP_Data_Collection_Tutorial