Changing the interface speed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Changing the interface speed

Post by nms »

Hi,

Can you change an interface speed by changing the respective cfg file of the router?

For example we have a tunnel in which it's set as a default of 100kbps, but in reality link is a 1Gb interface.

Hence i guess that i can find the cfg file of this router in "/etc/mrtg/conf.d" and the change the MaxBytes and MaxSpeed as below?:

Code: Select all

### Interface 16 >> Descr: 'Tunnel0' | Name: 'Tu0' | Ip: '10.192.126.45' | Eth: 'No Ethernet Id' ###

Target[10.192.128.227_16]: 16:[email protected]:161::::2
noHC[10.192.128.227_16]: yes
SetEnv[10.192.128.227_16]: MRTG_INT_IP="10.192.126.45" MRTG_INT_DESCR="Tunnel0"
MaxBytes[10.192.128.227_16]: 12500
Title[10.192.128.227_16]: Traffic Analysis for 16 -- am1-crtr01
PageTop[10.192.128.227_16]: <h1>Traffic Analysis for 16 -- am1-crtr01</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>System:</td>
                                        <td>am1-crtr01 in AM1</td>
                                </tr>
                                <tr>
                                        <td>Maintainer:</td>
                                        <td></td>
                                </tr>
                                <tr>
                                        <td>Description:</td>
                                        <td>Tunnel0 IPSec to BXL </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>Encapsulation Interface (131)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>Tu0</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>12.5 kBytes/s</td>
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Changing the interface speed

Post by tgriep »

Yes, you could change the MaxBytes settings in the mrtg config file to reflect the speed of the interface.
Here is a description of that option and what it does.
The maximum value either of the two variables monitored are allowed to reach. For monitoring router traffic this is normally the bytes per second this interface port can carry.

If a number higher than MaxBytes is returned, it is ignored. Also read the section on AbsMax for further info. The MaxBytes value is also used in calculating the Y range for unscaled graphs (see the section on Unscaled).

Since most links are rated in bits per second, you need to divide their maximum bandwidth (in bits) by eight (8) in order to get bytes per second. This is very important to make your unscaled graphs display realistic information. T1 = 193000, 56K = 7000, 10 MB Ethernet = 1250000, 100 MB Ethernet = 12500000. The MaxBytes value will be used by mrtg to decide whether it got a valid response from the router.
The description came from this link.
https://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html

For a 1Gig interface, you would set that option to 125000000.

Also, you would have to change the Bandwidth check for that interface in the Core Config Manager to match the settings.
The -l option would have to be set to G to match the MRTG settings so the check will display the correct performance data.
check_rrdtraf -f <rrd_file> -w <warning_pair> -c <critical_pair>
[-v][-e expire_seconds] [-l label_units]
check_rrdtraf (-V | --version)
check_rrdtraf (-h | --help)

Options:
-h, --help
Print detaiiled help screen
-V, --version
Print version information
-v Verbose output. Can be specified twice for more verbosity
-vv More verbose output, same as -v -v
-f Full path to RRD file to read data from
-w Warning threshold <rate> or pair <incoming>,<outgoing>
-c Critical threshold <rate> or pair <incoming>,<outgoing>
-e Log age threshold (in seconds, 5min=300)
-l Data display label, one of B,K,M or G
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked