Best way to add SNMP support to your own Debian application

I am working on Debian, and I have this server that we want to control.
Our application, and there are about a hundred real-time counters that we want to export for monitoring purposes, schedules and alarms.

I was looking for a way for Debian to do this because we use Debian packaging to install the application, and Debian uses a net-snmp based snmpd daemon to export SNMP. So far, every approach I've seen has looked very complicated: from recompiling snmpd to loading a dynamic library into it and compiling a subagent form that replicates what snmpd does.

While all of these options make me think that I should go for something else besides SNMP, I don't want to give up on this before, and I was wondering if anyone had found a possible implementation.

Ideally, it should be encoded in C or C ++, since the application is in C ++, but I am open to wrappers or other suggestions.

+5
source share
4 answers

net-snmp supports both smux and agentx agents, allowing subagents to live in different processes. They also have a tutorial when writing AgentX subagents in C.

+5
source

AgentX ++, . , . snmpd. , OID, . net-snmp AgentX ( ) - , . Perl : https://metacpan.org/pod/NetSNMP::agent

+5

linux net-snmp. MIB. MIB, MIB . net-snmp , , : http://www.net-snmp.org/wiki/index.php/Tutorials#Coding_Tutorials

+2
source

Have you tried net-snmp ?

0
source

All Articles