cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1260
Views
5
Helpful
4
Replies

mrtg interface exclusion

ghenaprocop
Level 1
Level 1

does anyone know how to remove some interfaces from being monitored by mrtg?

I have a switch with 24 ports and need to monitor only the first one gi0/1.

PS Can mrtg store the total amount of traffic that went through? for examle for entire day went 2 Gbytes out and 3 Gbytes in.

4 Replies 4

ghenaprocop
Level 1
Level 1

Any ideas?

Maybe somebody knows how to disable snmp on per interface basis on the switch 2970?

Hi,

SNMP is enabled globally and cannot be disabled on a per interface basis.

kind regards,

Kevin

khuysmans
Level 1
Level 1

Hi,

If you have MRTG set up and working, it will be launched referencing to some sort of configuration file. This is the file in which you configured where it should save the output files and so on.

You may have used the configmaker that comes with MRTG to create this file.

Within that file the configmaker will have made an entry for each interface on the switch and as such it is creating reports for each. You can just delete the configuration lines of the interfaces you wish to ignore or you can comment them by putting "#" in front of them.

When you open the configuration file all files that start with "#" are comments and can be ignored. MRTG is making graphics and files for all files such as:

Target[_9]: 9:@:

SetEnv[_9]: MRTG_INT_IP="" MRTG_INT_DESCR="GigabitEthernet3/5"

MaxBytes[_9]: 125000000

Title[_9]: Traffic Analysis for 9 --

PageTop[_9]:

Traffic Analysis for 9 --

System: in
Maintainer:
Description:GigabitEthernet3/5
ifType: ethernetCsmacd (6)
ifName: Gi3/5
Max Speed: 125.0 MBytes/s

In the first line:

Target[_9]: 9:@:

The 9 refers to the index of the interface, in this case interface Gi3/5.

You should locate the entries MRTG has made in its configuration file that point to Gi0/1 and then comment or delete the rest.

Hope this was helpful. Please rate this post if it was.

With kind regards,

Kevin