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
check_mrtg usage question
-
lukesullivan
- Posts: 34
- Joined: Tue Jan 24, 2017 11:12 am
Re: check_mrtg usage question
I can provide any needed config files for mrtg.
thanks,
-Luke
thanks,
-Luke
Re: check_mrtg usage question
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
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!