Page 1 of 1

check_mrtg usage question

Posted: Mon Nov 19, 2018 1:50 pm
by lukesullivan
I'm trying to get a check for any errors or discards on a router interface. I have mrtg running on the nagios server, and collecting data for the router in question.

I dont think I want to use check_mrtgtraf, since I'm not looking at traffic or utilization rates.

I'm interested in getting a notification if the errors or discards go up.

I imagine that I'll need to write a distinct check for each interface that I want to monitor for errors, but when trying to use the check_mrtg command, I get the following:

[root@nagiosxi-60ox nagios]# ./libexec/check_mrtg -F /var/lib/mrtg/lawgw1.net.harvard.edu_116.rrd -a MAX -w 10 -c 20
check_mrtg: You must supply the variable number
Usage:
check_mrtg -F log_file -a <AVG | MAX> -v variable -w warning -c critical

.... so what are the list of variables that I can pass to this check? I've tried inInErrors and ifinerrors, neither of which worked.

thanks,

-Luke

Re: check_mrtg usage question

Posted: Mon Nov 19, 2018 1:53 pm
by lukesullivan
I can provide any needed config files for mrtg.

thanks,

-Luke

Re: check_mrtg usage question

Posted: Mon Nov 19, 2018 3:17 pm
by tgriep
The check_mrtg plugin is another plugin for measuring the bandwidth for an interface and cannot report on interface errors and discards.

You will have to use a different plugin to do that.

I did a search on the Exchange site and found these that could work for you.
https://exchange.nagios.org/directory/P ... ce/details
https://exchange.nagios.org/directory/P ... pl/details