I am trying to get performance from network interfaces from network device (mikrotik, cisco routers etc.) about interface traffic via SNMP poll and send those data to Azure Monitor Log Analytics.
I have installed and working Azure Log Analytics agent on Debian Linux, https://docs.microsoft.com/en-us/azure/azure-monitor/agents/agent-linux and working Syslog monitoring https://docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-syslog
However, I am unable to find a good example of CollectD configuration file using SNMP plugin and how to send those performance data to Azure Monitor service https://docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-collectd
https://collectd.org/wiki/index.php/Plugin:SNMP
If somebody can share CollectD configuration files using SNMP CollectD plugin and sending this performance data to Azure Monitor? Or how to troubleshoot CollectD service with SNMP plugin? Or any other free software (on Linux or Windows) which can do SNMP pull (and SNMP trap) and supports sending data to Azure Monitor I would be thankful.
This page seems to give clear instructions on how to get CollectD to write to the Azure agent: https://docs.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-collectd
These pages (here and enter link description here) seem to have pretty clear config with examples for polling various device types.
Can you share some of the errors that you're encountering? There's also the Linux
snmpwalk
tool that might help with debugging SNMP? I think I used it a long time ago to set things up, testing all the strings were correct.UPDATE:
I've done the following to test on an EC2 instance so far, and can get CollectD to print out what it finds from SNMP. I'd suggest you get this working and then move on to pushing to Azure.
net-snmp
andnet-snmp-utils
collectd
andcollectd-snmp
Install Commands:
Config:
/etc/snmp/snmpd.conf
:/etc/collectd.conf
:Command outputs: