Problems to see the bandwidth correctly with mrtg

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Problems to see the bandwidth correctly with mrtg

Postby jorgeinteractivo » Thu Nov 09, 2017 9:01 am

hello people, I have a problem that I can not solve because I ask for help from this kind community.
I want to monitor a port of a cisco switch, I'm using mrtg, I generate the .log file and I get to see the graph and the consumption correctly (Out 40.7 Mb / s (4.1%), In 25.3 Mb / s (2.5%)), The port in question is fiber optic with a speed of 1GB, therefore that is the limit.
But when the file.cfg that corresponds to the host, I use the command:
check_command check_local_mrtgtraf! /var/www/mrtg/172.16.100.190_gigabitethernet1_0_25.log! AVG! 500000000,600000000! 900000000,1000000000! 10
On the Nagios graph and also using the pnp4nagios plugin, it shows me the wrong data, (Traffic OK - Avg. In = 2.0 MB / s, Avg. Out = 3.8 MB / s)
I was researching a lot, and maybe I saw some plugin use bits and other bytes. But I do not know why in one place the graph and consumption are good and in another place it is different.

I do the test with the dude, and it's equivalent to the graph that I attached to nagios2-mrtg, so it's apparently correct that configuration.

I hope you can help me. Greetings from Argentina
Attachments
nagios1.jpg
nagios2-mrtg.jpg
jorgeinteractivo
 
Posts: 2
Joined: Thu Nov 09, 2017 8:25 am

Re: Problems to see the bandwidth correctly with mrtg

Postby kyang » Fri Nov 10, 2017 3:46 pm

Would the use a different plugin be an option for you?

Also what version of the check_mrtgtraf plugin do you have?
Code: Select all
./check_mrtgtraf -V


If you are using the check_mrtgtraf plugin from the Nagios plugins.

Have you tested out other plugins in the Nagios exchange for checking bandwidth or so?

https://exchange.nagios.org/
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
 
Posts: 660
Joined: Tue Jul 25, 2017 3:35 pm

Re: Problems to see the bandwidth correctly with mrtg

Postby jorgeinteractivo » Fri Nov 17, 2017 7:26 am

Currently, I am using
check_mrtgtraf v2.2.1 (nagios-plugins 2.2.1)

This is the config of my host:

define service {
use generic-service,srv-pnp
host_name sw-01
service_description Port 25 Bandwidth Usage
check_command check_local_mrtgtraf!/var/www/mrtg/172.16.100.190_gigabitethernet1_0_25.log!AVG!5000000,6000000!9000000,10000000!10
}

I need to be able to visualize the bandwidth of a network interface, the equipment is a cisco catalyst 2960 switch. Or maybe configure to show the option in real megaytes, I do not know why it shows so little in The Dude shows much more, or in the same mrtg it looks good. If there is another tool that I would like to recommend, but until now everything that probe did not work
.
the dude.jpg
jorgeinteractivo
 
Posts: 2
Joined: Thu Nov 09, 2017 8:25 am

Re: Problems to see the bandwidth correctly with mrtg

Postby kyang » Fri Nov 17, 2017 2:44 pm

I'm not entirely sure, you could try posting in the nagiosgraph discussion to see if anyone has encountered the same issue?
https://sourceforge.net/p/nagiosgraph/discussion/394748

Also, here's something I saw
Code: Select all
- The calculated i/o rates are a little off from what MRTG actually
   reports.  I'm not sure why this is right now, but will look into it
   for future enhancements of this plugin.


https://www.monitoring-plugins.org/doc/ ... gtraf.html
http://nagios-plugins.org/doc/man/check_mrtgtraf.html

It seems like the plugin hasn't been updated for quite some time now according to GitHub.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
 
Posts: 660
Joined: Tue Jul 25, 2017 3:35 pm


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 29 guests