Hello.
Please suggest working scripts for collecting snmp metrics in munin monitoring for hap ax3.
Hello.
Please suggest working scripts for collecting snmp metrics in munin monitoring for hap ax3.
The search field is your friend:
Even google can help (will wonders ever cease?)
https://gallery.munin-monitoring.org/plugins/munin-contrib/snmp__mikrotik/
I found this script snmp in Perl.
doesn't work.
I enabled SNMP on the router.
The firewall allows connection for the IP address.
> /snmp/ print
enabled: yes
contact:
location:
engine-id-suffix:
engine-id: 20234q8k
src-address: ::
trap-target:
trap-community: ExMzI24dYDEwZ8DJmYThiMWfOT3MjUwOhGNjdkk7c
trap-version: 2
trap-generators: temp-exception
vrf: main
error.
root@newy:/usr/local/etc/munin/plugins # perl snmp_ram_mikrotik
Croaking: Unable to resolve the UDP/IPv4 address "ram" at snmp_ram_mikrotik line 82.
line 82
die "Croaking: $error" unless (defined ($session));
It says that it tries to connect to a host called "ram" but it can't resolve it.
What is in snmp_ram_mikrotik?
Try
host=<ip of your mikrotik> perl snmp_ram_mikrotik
The perl code is fairly explicit and easy to understand.
My IP address is listed.
Paste here what you have on the linux host when you put the command i wrote.