Log in or register to post comments
When using this It seems like all data works. The script reports as expected but in Icinga2 its always reported as a warining.
/usr/lib/nagios/plugins/check_mikrotik_switch.pl -H 172.16.1.104 -t voltage -w 14:25 -c 18:30
voltage: OK - 23.7V | voltage=23.7V
But in Icinga2:
voltage: WARN - 23.7V
gives proper output but with an error; "Use of uninitialized value in string eq at check_mikrotik_switch.pl line 180"
how to check MIkrotik router with this Plugin in Icinga2 ??? Can you please help... !!!
Error fixed. New version is on github. Thanks.
i got error something like this : syntax error at ./check_mikrotik_switch.pl line 124, near "exit"
Right, the check needs Set::IntSpan, should've mentioned this in the ReadMe.
You can get it on CPAN. On debian install libset-intspan-perl
The git clone doesn't work and manually downloading the pl causes error at line 5: Can't locate Set/IntSpan.pm