Hoi,
Ik heb d.m.v. apt-get snmpd en mrtg geinstalleerd.
Daarna de snmpd.conv in /etc/snmpd/ weggegooid.
cfgmaker public@localhost > /etc/mrtg.cfg gedraaid.
Alles werkte perfect, geen errors enzo.
Totdat ik reboote, toen werd er ineens niets meer gegenereerd.
Toen ik in de errorlog van mrtg keek stond daar het volgende in:
SNMP Error:
receiving response PDU: Connection refused
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1704786221
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/lib/perl5/SNMP_util.pm line 456
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@local
at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
Mijn mrtg.cfg ziet er zo uit:
# Created by
# /usr/bin/cfgmaker public@localhost
### Global Config Options
# for Debian
WorkDir: /var/www/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: debian
# Description: Linux debian 2.2.19-compact #1 Sat Jun 9 13:19:16 EST 2001 i586
# Contact: root
# 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[netwerk]: 1:public@localhost:
# SetEnv[netwerk]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[netwerk]: 1250000
# Title[netwerk]: Traffic Analysis for 1 -- debian
# PageTop[netwerk]: <H1>Traffic Analysis for debian</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>debian in Unknown</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>root</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: 'eth0' | Name: '' | Ip: '192.168.1.5' | Eth: '00-a0-24
Target[netwerk]: 2:public@localhost:
SetEnv[netwerk]: MRTG_INT_IP="192.168.1.5" MRTG_INT_DESCR="eth0"
MaxBytes[netwerk]: 1250000
Title[netwerk]: Traffic Analysis for 2 -- debian
PageTop[netwerk]: <H1>Traffic Analysis for debian</H1>
<TABLE>
<TR><TD>System:</TD> <TD>debian in Unknown</TD></TR>
<TR><TD>Maintainer:</TD> <TD>root</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>1250.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.1.5 (debian.home.nl)</TD></TR>
</TABLE>
Target[localhost.mem]: `free -bt | grep buffers\/cache | awk '{print $3"\n"$4}'`
MaxBytes[localhost.mem]: 665536000
Title[localhost.mem]: Memory Utilization for localhost
PageTop[localhost.mem]: <H1>Memory Utilization for localhost </H1>
Options[localhost.mem]: gauge,growright
YLegend[localhost.mem]: Bytes
ShortLegend[localhost.mem]: B
Legend1[localhost.mem]: Free real memory
Legend2[localhost.mem]: Free swap memory
Legend3[localhost.mem]: Maximal 5 Minute Memory In Use
Legend4[localhost.mem]: Maximal 5 Minute Active Memory
LegendI[localhost.mem]: Used:
LegendO[localhost.mem]: Buffers + Cache:
XSize[localhost.mem]: 350
En dit is al de 2e keer dat het gebeurd, na de 1e keer heb ik alles weer opnieuw geinstalleerd en in gesteld.
Weet iemand misschien wat er mis is en hoe het komt dat het na een reboot niet meer werkt?
Ik heb d.m.v. apt-get snmpd en mrtg geinstalleerd.
Daarna de snmpd.conv in /etc/snmpd/ weggegooid.
cfgmaker public@localhost > /etc/mrtg.cfg gedraaid.
Alles werkte perfect, geen errors enzo.
Totdat ik reboote, toen werd er ineens niets meer gegenereerd.
Toen ik in de errorlog van mrtg keek stond daar het volgende in:
SNMP Error:
receiving response PDU: Connection refused
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1704786221
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/lib/perl5/SNMP_util.pm line 456
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@local
at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
Mijn mrtg.cfg ziet er zo uit:
# Created by
# /usr/bin/cfgmaker public@localhost
### Global Config Options
# for Debian
WorkDir: /var/www/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: debian
# Description: Linux debian 2.2.19-compact #1 Sat Jun 9 13:19:16 EST 2001 i586
# Contact: root
# 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[netwerk]: 1:public@localhost:
# SetEnv[netwerk]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[netwerk]: 1250000
# Title[netwerk]: Traffic Analysis for 1 -- debian
# PageTop[netwerk]: <H1>Traffic Analysis for debian</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>debian in Unknown</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>root</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: 'eth0' | Name: '' | Ip: '192.168.1.5' | Eth: '00-a0-24
Target[netwerk]: 2:public@localhost:
SetEnv[netwerk]: MRTG_INT_IP="192.168.1.5" MRTG_INT_DESCR="eth0"
MaxBytes[netwerk]: 1250000
Title[netwerk]: Traffic Analysis for 2 -- debian
PageTop[netwerk]: <H1>Traffic Analysis for debian</H1>
<TABLE>
<TR><TD>System:</TD> <TD>debian in Unknown</TD></TR>
<TR><TD>Maintainer:</TD> <TD>root</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>1250.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.1.5 (debian.home.nl)</TD></TR>
</TABLE>
Target[localhost.mem]: `free -bt | grep buffers\/cache | awk '{print $3"\n"$4}'`
MaxBytes[localhost.mem]: 665536000
Title[localhost.mem]: Memory Utilization for localhost
PageTop[localhost.mem]: <H1>Memory Utilization for localhost </H1>
Options[localhost.mem]: gauge,growright
YLegend[localhost.mem]: Bytes
ShortLegend[localhost.mem]: B
Legend1[localhost.mem]: Free real memory
Legend2[localhost.mem]: Free swap memory
Legend3[localhost.mem]: Maximal 5 Minute Memory In Use
Legend4[localhost.mem]: Maximal 5 Minute Active Memory
LegendI[localhost.mem]: Used:
LegendO[localhost.mem]: Buffers + Cache:
XSize[localhost.mem]: 350
En dit is al de 2e keer dat het gebeurd, na de 1e keer heb ik alles weer opnieuw geinstalleerd en in gesteld.
Weet iemand misschien wat er mis is en hoe het komt dat het na een reboot niet meer werkt?
* Erkens is een sukkel en ramt in mirc op f5 :+
* XTerm GROOOOOOTE kuis houden op hd's :)