Salut! Incerc sa instalez MRTG si:
#rpm -Uvh net-snmp-utils-5.0.6-17.i386.rpm
# cd /etc/snmp/
#vi snmpd.conf
rocommunity doru
#chkconfig --level 345 snmpd on
# /etc/init.d/snmpd start
Starting snmpd: [ OK ]
#snmpwalk -v 1 -c doru localhost system
IF-MIB::ifNumber.0 = INTEGER: 2
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:1:29:42:82:81
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifInOctets.1 = Counter32: 1660172
IF-MIB::ifInOctets.2 = Counter32: 41483027
IF-MIB::ifInUcastPkts.1 = Counter32: 2966
IF-MIB::ifInUcastPkts.2 = Counter32: 590874
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1661324
IF-MIB::ifOutOctets.2 = Counter32: 1584233436
IF-MIB::ifOutUcastPkts.1 = Counter32: 2982
IF-MIB::ifOutUcastPkts.2 = Counter32: 1076983
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
#snmpwalk -v 1 -c doru localhost interface
IF-MIB::ifNumber.0 = INTEGER: 2
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:1:29:42:82:81
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifInOctets.1 = Counter32: 1665638
IF-MIB::ifInOctets.2 = Counter32: 41492341
IF-MIB::ifInUcastPkts.1 = Counter32: 3042
IF-MIB::ifInUcastPkts.2 = Counter32: 590962
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1666790
IF-MIB::ifOutOctets.2 = Counter32: 1584237908
IF-MIB::ifOutUcastPkts.1 = Counter32: 3058
IF-MIB::ifOutUcastPkts.2 = Counter32: 1077021
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
#rpm -Uvh mrtg-2.9.17-13.i386.rpm
# cfgmaker --output=/etc/mrtg/localhost.cfg -ifref=ip --global "workdir:
/var/www/html/mrtg/stats" [EMAIL PROTECTED]
--base: Get Device Info on [EMAIL PROTECTED]:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache [EMAIL PROTECTED]: Descr lo --> 1
--snpo: confcache [EMAIL PROTECTED]: Descr eth0 --> 2
--snpo: confcache [EMAIL PROTECTED]: Type 24 --> 1
--snpo: confcache [EMAIL PROTECTED]: Type 6 --> 2
--snpo: confcache [EMAIL PROTECTED]: Ip 127.0.0.1 --> 1
--snpo: confcache [EMAIL PROTECTED]: Ip 192.168.0.50 --> 3
--snpo: confcache [EMAIL PROTECTED]: Eth --> 1
--snpo: confcache [EMAIL PROTECTED]: Eth 00-01-29-42-82-81 --> 2
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing /etc/mrtg/localhost.cfg
]# cfgmaker --output=/etc/mrtg/192.168.0.50.cfg -ifref=ip --global "workdir:
/var/www/html/mrtg/stats" --snmp-options=:::::2 [EMAIL PROTECTED]
--base: Get Device Info on [EMAIL PROTECTED]:::::2
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache [EMAIL PROTECTED]:::::2 Descr lo --> 1
--snpo: confcache [EMAIL PROTECTED]:::::2 Descr eth0 --> 2
--snpo: confcache [EMAIL PROTECTED]:::::2 Type 24 --> 1
--snpo: confcache [EMAIL PROTECTED]:::::2 Type 6 --> 2
--snpo: confcache [EMAIL PROTECTED]:::::2 Ip 127.0.0.1 --> 1
--snpo: confcache [EMAIL PROTECTED]:::::2 Ip 192.168.0.50 --> 3
--snpo: confcache [EMAIL PROTECTED]:::::2 Eth --> 1
--snpo: confcache [EMAIL PROTECTED]:::::2 Eth 00-01-29-42-82-81 --> 2
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Walking ifHighSpeed
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHighSpeed.1 -> Mb/s
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHCInOctets.1 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHighSpeed.2 -> Mb/s
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHCInOctets.2 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHighSpeed.3 -> Mb/s
--base: snmpget [EMAIL PROTECTED]:::::2:v4only for ifHCInOctets.3 ->
--base: check for HighspeedCounters faild ... Droping back to V1
--base: Writing /etc/mrtg/192.168.0.50.cfg
# mkdir -p /var/www/html/mrtg/stats
#cp /var/www/html/mrtg/*.png /var/www/html/mrtg/stats
#mrtg /etc/mrtg/localhost.cfg
# indexmaker --output=index.html /etc/mrtg/localhost.cfg
Use of uninitialized value in hash element at /usr/bin/indexmaker line 307.
Linia 307 din /usr/bin/indexmaker este:
my $host = $$rcfg{host}{$first} || '';
Asadar, nu se creeaza fisierul index.html in care se gasesc toate graficele. Motivul
este: Use of uninitialized value in hash element at /usr/bin/indexmaker line 307 (in
/usr/bin/indexmaker). Va rog sa ma ajutati sa gasesc solutia corecta!
Multumesc!
---
Outgoing mail is certified Virus Free. Acest e-mail este clasificat ca fiind fara
virusi!
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.548 / Virus Database: 341 - Release Date: 12/5/2003
---
Detalii despre listele noastre de mail: http://www.lug.ro/