Linux snmpd or new Java SNMP agent

42 views Asked by At

I work on a Java project which collects various data from different sources. My aim is to send those collected data over SNMP to the requested clients. I don't know which way I should follow. Can I use snmpd in Linux for this purpose? If so, how to transfer my Java data to snmpd? Or should I write a new Java SNMP agent? My development and target environment is Linux Centos 8 Stream.

1

There are 1 answers

0
Andrew Komiagin On

The most simple way to implement this functionality is to send SNMP TRAPs or notifications like INFORMs. INFORMs are acknowledged. In this case you wont need to implement complete SNMP agent functionality. Basically, all you need to do is utilize SNMP4J library. There are examples on how to send TRAPv1, TRAPv2 and INFORM.