SNMP is not up after reboot.

I like mikrotik a lot. I also managed to use internal temp. sensors to read environmental temperature data.

Basically what i do i just torn on SNMP on mikrotik and using snmp client read data from it like.

/usr/lib/nagios/plugins/check_snmp -H 'IPofRouter' -C 'communityname' -o .1.3.6.1.4.1.14988.1.1.3.10.0 -w 400 -c 450

And if it starts to show value. It will show it all time until reboot. But after reboot. it blames that MIB is incorrect. And only way to fix it is to enable/disable SNMP. And it mostly doesn’t work from first on/off cycle. I have to do it about 5 times. With some delay.

Once it reads value correctly. It works correclty until next reboot.

This problem is starting from begining (about version 5.10). Now using 5.18.
RB1100 AHx2. Two different boxes. On both same issue.

Something wrong happens at boot. And slight on/off in scheduler helps :slight_smile:

/system scheduler print
Flags: X - disabled 
#    NAME        START-TIME INTERVAL  ON-EVENT                                                                             RUN-COUNT 
0   SNMP Fix     startup        0s            {/snmp set enabled=no}\r\n:delay 60\r\n{/snmp set enabled=yes}  1

the point is to disable snmp on startup and then turn it on after 60 sec.