Page 1 of 1

Port 1 Bandwidth results computation

Posted: Tue Jan 20, 2015 6:59 pm
by paolotayao
Hi everyone,

I just need some help getting some questions answered.

We got the Port 1 Bandwidth checking working using the service command

# Monitor bandwidth via MRTG logs
define service{
use generic-service ; Inherit values from a template
host_name sfdsw
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/www/mrtg/66.241.101.90_1.log!AVG!20971520,24117248!24117248,26214400!10
}

and it returns values lower that what the switch or mrtg graph indicates.

I was wondering how Nagios computes the output since the output in services differs from the output the logs when we generate its graphs.

is there any other option on the service instead of using AVG?

Inputs would be greatly appreciated. Thank you

Re: Port 1 Bandwidth results computation

Posted: Wed Jan 21, 2015 3:23 pm
by slansing
For that answer, you may want to read up on how MRTG handles this, or rather, how check_rrdtraff/mrtgtraff takes the averaged out int's from the RRD file. Besides polling the interface OIDS directly with something like check_snmp, there is not really a good way around the averaging that occurs in the RRD mechanics:

http://oss.oetiker.ch/mrtg/doc/mrtg.en.html