Skip to main content
CDPTester
Bronze ⭐️⭐️⭐️
April 11, 2022
Question

how to run Kafka console producer in a remote server and feed the data to a topic in a differnent VM

Hello All,

 

I am novice to Kafka. I am receiving SNMP traps in a particular server 'X', but my Kafka is installed in a different server 'Y'. How can I publish the traps using the kafka-console-producer.sh script to load to topic ?. Any help is appreciated

1 reply

Babasaheb
Gold ⭐️
Gold ⭐️
August 7, 2022

@CDPTester 

 

You can use camel-snmp-kafka-connector to receive traps and poll SNMP (Simple Network Management Protocol) and configure it to send to Kafka topic [1].  

 

[1] https://camel.apache.org/camel-kafka-connector/0.11.x/reference/connectors/camel-snmp-kafka-source-connector.html

 

This connector will be not bundled with the CDP but you can integrate this Apache open source connector as per your requirement. Refer the following stackoverflow article for more details/example [2]

 

[2] https://stackoverflow.com/questions/54305856/snmp-camel-kafka

 

If you found this response assisted with your query, please take a moment to log in and click on  KUDOS 🙂 & ”Accept as Solution" below this post.

 

Thank you.

Translate