check_mrtg usage question
Posted: Mon Nov 19, 2018 1:50 pm
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
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