Team, I have an issue with the check_mrtgtraf.pl plugin.
I have set it up correctly to monitor bandwidth on the ports on our DELL 8132F switches.
- I have conducted a number of tests in our lab, where we are sending data at a rate of 4-5Gbps from the test machines via the switches. Unfortunately the results that the plugin produces are way off.
- I have even lowered the thresholds to their lowest possible to no avail - we are not getting the required results, and the required alerts.
We need to be able to obtain results when monitoring the switches with this plugin.
This is what I have as a sample in my commands.cfg file:
$USER1$/check_mrtgtraf.pl -F MAX -L /srv/www/htdocs/mrtg/<hostname>/<hostname>_1.log -w 939524096,1006632960 -c 1073741824,1140850688 -u gigabytes
Any suggestions?
Also is there any way I could get a copy of this plugin that handles bits instead of bytes?
Thanks
GFSATech
check_mrtgtraf.pl producing wrong results
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_mrtgtraf.pl producing wrong results
Do you know if mrtg is pulling in high counters instead of the standard ones for that device? As for doing bits instead of bytes, you are certainly welcome to modify it to your hearts content. As for which counters it is presently using, posting your mrtg.cfg would go a long ways if possible.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: check_mrtgtraf.pl producing wrong results
Thanks for the tip. I made the correct changes to the mrtg.cfg file - I had forgotten that mrtg does not support high counters for SNMP v1. I have run cfgmaker with the --snmp-options=:::::2 and this partially resolves the problem.
I am monitoring the traffic on 10GBit/s interfaces, however the results from check_mrtgtraf.pl indicate that I am getting a maximum read of 4507.77172851562 Mbyte/s (35.21094Gbits/s).
How is this even possible? Am I missing something here?
Thanks
GFSATech
I am monitoring the traffic on 10GBit/s interfaces, however the results from check_mrtgtraf.pl indicate that I am getting a maximum read of 4507.77172851562 Mbyte/s (35.21094Gbits/s).
How is this even possible? Am I missing something here?
Thanks
GFSATech
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_mrtgtraf.pl producing wrong results
If that 4507 was actually megabits, as I believe the counters outputs normally, that seems to calculate to ~.55 gigabytes per second or ~4.4 gigabits, which seems pretty reasonable for your connection, no? Without seeing the labels it's providing, its a bit hard for me to be sure, but it really sounds like it's mislabeling the counter.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.