[mrtg] Re: Some basics
Saqib bin Sohail
saqibbs at iee.org
Mon Apr 7 11:03:53 MEST 2003
Ok I have made the following SNMPD.conf
Then I ran Snmp which is working fine.
Now I ran the CFgmaker and got the following Mrtg.cfg file.
I think it ran properly.
Now the problem is that when I give the command
/usr/bin/mrtg /etc/mrtg/mrtg.cfg
I get the following error a number of times.
Malformed UTF-8 character (unexpected non-continuation byte 0x20,
immediately after start byte 0xe2) at
/usr/bin/../lib/mrtg2/locales_mrtg.pm line 4051.
with each time modification in start byte
Hope you could help me out.
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
# arguments: community [default|hostname|network/bits] [oid]
rwcommunity public 192.168.0.213
rwcommunity public 192.168.0.0 / 24
rwcommunity public 127.0.0.1
###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
# The following check up on various aspects of a host.
# load: Check for unreasonable load average values.
# Watch the load average levels on the machine.
#
# load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
# 1MAX: If the 1 minute load average is above this limit at query
# time, the errorFlag will be set.
# 5MAX: Similar, but for 5 min average.
# 15MAX: Similar, but for 15 min average.
#
# The results are reported in the laTable section of the
UCD-SNMP-MIB tree
load 12 12 12
###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.
# syslocation: The [typically physical] location of the system.
# arguments: location_string
syslocation PGRLAB
# syscontact: The contact information for the administrator
# arguments: contact_string
syscontact "Saqib bin Sohail"
# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number
sysservices 79
# Created by
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/html/mrtg/30003'
--global 'Options[_]: growright,bits' --ifref=ip public at 192.168.0.213
### 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
WorkDir: /var/www/html/mrtg/30003
Options[_]: growright,bits
######################################################################
# System: firewall.uet.edu.pk
# Description: Linux firewall.uet.edu.pk 2.4.18-14 #1 Wed Sep 4 13:35:50
EDT 2002 i686
# Contact: "Saqib bin Sohail"
# Location: PGRLAB
######################################################################
### 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[192.168.0.213_127.0.0.1]: /127.0.0.1:public at 192.168.0.213:
# SetEnv[192.168.0.213_127.0.0.1]: MRTG_INT_IP="127.0.0.1"
MRTG_INT_DESCR="lo"
# MaxBytes[192.168.0.213_127.0.0.1]: 1250000
# Title[192.168.0.213_127.0.0.1]: Traffic Analysis for 127.0.0.1 --
firewall.uet.edu.pk
# PageTop[192.168.0.213_127.0.0.1]: <H1>Traffic Analysis for 127.0.0.1
-- firewall.uet.edu.pk</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>firewall.uet.edu.pk in
PGRLAB</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</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>10.0 Mbits/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>127.0.0.1
(localhost.localdomain)</TD></TR>
# </TABLE>
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.213' | Eth:
'00-c0-26-60-f7-44' ###
Target[192.168.0.213_192.168.0.213]:
/192.168.0.213:public at 192.168.0.213:
SetEnv[192.168.0.213_192.168.0.213]: MRTG_INT_IP="192.168.0.213"
MRTG_INT_DESCR="eth0"
MaxBytes[192.168.0.213_192.168.0.213]: 1250000
Title[192.168.0.213_192.168.0.213]: Traffic Analysis for 192.168.0.213
-- firewall.uet.edu.pk
PageTop[192.168.0.213_192.168.0.213]: <H1>Traffic Analysis for
192.168.0.213 -- firewall.uet.edu.pk</H1>
<TABLE>
<TR><TD>System:</TD> <TD>firewall.uet.edu.pk in PGRLAB</TD></TR>
<TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</TD></TR>
<TR><TD>Description:</TD><TD>eth0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>10.0 Mbits/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.0.213 ()</TD></TR>
</TABLE>
### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '172.16.0.1' | Eth:
'00-c0-26-60-f2-32' ###
Target[192.168.0.213_172.16.0.1]: /172.16.0.1:public at 192.168.0.213:
SetEnv[192.168.0.213_172.16.0.1]: MRTG_INT_IP="172.16.0.1"
MRTG_INT_DESCR="eth1"
MaxBytes[192.168.0.213_172.16.0.1]: 1250000
Title[192.168.0.213_172.16.0.1]: Traffic Analysis for 172.16.0.1 --
firewall.uet.edu.pk
PageTop[192.168.0.213_172.16.0.1]: <H1>Traffic Analysis for 172.16.0.1
-- firewall.uet.edu.pk</H1>
<TABLE>
<TR><TD>System:</TD> <TD>firewall.uet.edu.pk in PGRLAB</TD></TR>
<TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</TD></TR>
<TR><TD>Description:</TD><TD>eth1 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>10.0 Mbits/s</TD></TR>
<TR><TD>Ip:</TD> <TD>172.16.0.1 ()</TD></TR>
</TABLE>
On Mon, 2003-04-07 at 11:13, Kashif Hameed wrote:
> salam man what kind of help ui want tell me if i know it i will give u step
> by step instructionok
> recently i have done mrtg for my serial and ehternet link
> by the way i am from lahore if u wana contact me reagardinhg help u can call
> me 03334287563 ok
>
>
>
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list