check_mrtg usage question

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lukesullivan
Posts: 34
Joined: Tue Jan 24, 2017 11:12 am

check_mrtg usage question

Post 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
lukesullivan
Posts: 34
Joined: Tue Jan 24, 2017 11:12 am

Re: check_mrtg usage question

Post by lukesullivan »

I can provide any needed config files for mrtg.

thanks,

-Luke
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_mrtg usage question

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked