PDA

View Full Version : MRTG and network interfaces


Wojtek
05-16-2006, 11:19 PM
So I'm trying to install MRTG now.

Well, mrtg itself installed pretty much fine.
I can run the mrtg program and the cfgmaker config thing.

I've taken the community strintg from /etc/snmp/snmpd.conf
started the snmpd service and ran the usual cfgmaker command to see if it detected the network interface.

Problem is it does not detect any valid network interfaces.


root@xxxxxfree [/etc/snmp]# service snmpd start
Starting snmpd: [ OK ]
root@xxxxxfree [/etc/snmp]# cfgmaker hybodus@localhost
--base: Get Device Info on hybodus@localhost:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache hybodus@localhost: Descr lo --> 1
--snpo: confcache hybodus@localhost: Descr venet0 --> 2
--snpo: confcache hybodus@localhost: Ip 127.0.0.1 --> 1
--snpo: confcache hybodus@localhost: Type 24 --> 1
--snpo: confcache hybodus@localhost: Type 1 --> 2
--snpo: confcache hybodus@localhost: Eth --> 1
--snpo: confcache hybodus@localhost: Eth --> 2 (duplicate)
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifSpeed
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
# Created by
# /usr/bin/cfgmaker hybodus@localhost


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits


################################################## ####################
# System: xxxxxfree.xxxxx.net
# Description: Linux xxxxxfree.xxxxx.net 2.6.9 #1 SMP Mon Feb 20 19:31:28 MSK 2006 i686
# Contact: root@localhost
# Location: Unknown
################################################## ####################


### Interface 1 >> Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[localhost_1]: 1:hybodus@localhost:
# SetEnv[localhost_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[localhost_1]: 1250000
# Title[localhost_1]: Traffic Analysis for 1 -- xxxxxfree.xxxxx.net
# PageTop[localhost_1]: <H1>Traffic Analysis for 1 -- xxxxxfree.xxxxx.net</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>xxxxxfree.xxxxx.net in Unknown</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>root@localhost</TD></TR>
# <TR><TD>Description:</TD><TD>lo </TD></TR>
# <TR><TD>ifType:</TD> <TD>softwareLoopback (24)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>127.0.0.1 (localhost)</TD></TR>
# </TABLE>


### Interface 2 >> Descr: 'venet0' | Name: '' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
#
# Target[localhost_2]: 2:hybodus@localhost:
# SetEnv[localhost_2]: MRTG_INT_IP="" MRTG_INT_DESCR="venet0"
# MaxBytes[localhost_2]: 0
# Title[localhost_2]: Traffic Analysis for 2 -- xxxxxfree.xxxxx.net
# PageTop[localhost_2]: <H1>Traffic Analysis for 2 -- xxxxxfree.xxxxx.net</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>xxxxxfree.xxxxx.net in Unknown</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>root@localhost</TD></TR>
# <TR><TD>Description:</TD><TD>venet0 </TD></TR>
# <TR><TD>ifType:</TD> <TD>Other (1)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
# </TABLE>

cfgmaker hybodus@MyIP
gives the same error message.

This is the first time I'm having such a problem.
Any thoughts?

//edit
Os: CentOS

Wojtek
05-22-2006, 03:32 PM
I tried reinstalling mrtg, and it still does the same thing
any ideas anyone?