Port 1 Bandwidth results computation

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
paolotayao
Posts: 1
Joined: Tue Jan 20, 2015 6:03 pm

Port 1 Bandwidth results computation

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Port 1 Bandwidth results computation

Post 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
Locked