root@Liutata:/etc/snmp# mrtg /etc/mrtg.conf
SNMP Error:
no response received
SNMPv1_Session (remote host: "Liutata" [127.0.0.1].161)
community: "root"
request ID: 2000378133
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime
sysName on root@Liutata::::::v4only
at /usr/bin/mrtg line 1846
WARNING: skipping because at least the query for
ifInOctets.1 on Liutata did not succeed
WARNING: no data for ifInOctets&ifOutOctets:root@Liutata.
Skipping further queries for Host Liutata in this round.
ERROR: Target[router][_IN_] ' $target->[0]{$mode} ' did not
eval into defined data
ERROR: Target[router][_OUT_] ' $target->[0]{$mode} ' did not
eval into defined data
root@Liutata:/etc/snmp#
-----------------------
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# 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.
# Note that setting this value here means that when trying
to
# perform an snmp SET operation to the sysLocation.0
variable will make
# the agent return the "notWritable" error code. IE,
including
# this token in the snmpd.conf file will disable write
access to
# the variable.
# arguments: location_string
syslocation Pazardjik
# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying
to
# perform an snmp SET operation to the sysContact.0
variable will make
# the agent return the "notWritable" error code. IE,
including
# this token in the snmpd.conf file will disable write
access to
# the variable.
# arguments: contact_string
syscontact zajo@mail.bg
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your
running
# snmp agent.
# rwuser: a SNMPv3 read-write user
# arguments: user [noauth|auth|priv] [restriction_oid]
rouser zajo auth
rouser "nagios auth" auth
rouser nagios auth
# rocommunity: a SNMPv1/SNMPv2c read-only access community
name
# arguments: community [default|hostname|network/bits]
[oid]
rocommunity root@Liutata
# rwcommunity: a SNMPv1/SNMPv2c read-write access community
name
# arguments: community [default|hostname|network/bits]
[oid]
rwcommunity root@Liutata
###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.
# trapsink: A SNMPv1 trap receiver
# arguments: host [community] [portnum]
trapsink localhost
trapsink nagios
# trap2sink: A SNMPv2c trap receiver
# arguments: host [community] [portnum]
trap2sink localhost
trap2sink nagios
# informsink: A SNMPv2c inform (acknowledged trap) receiver
# arguments: host [community] [portnum]
informsink localhost Liutata
informsink nagios
# trapcommunity: Default trap sink community to use
# arguments: community-string
trapcommunity Liutata
# authtrapenable: Should we send traps when authentication
failures occur
# arguments: 1 | 2 (1 = yes, 2 = no)
authtrapenable 1
###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
# The following check up on various aspects of a host.
# proc: Check for processes that should be running.
# proc NAME [MAX=0] [MIN=0]
#
# NAME: the name of the process to check for. It must
match
# exactly (ie, http will not find httpd
processes).
# MAX: the maximum number allowed to be running.
Defaults to 0.
# MIN: the minimum number to be running. Defaults to
0.
#
# The results are reported in the prTable section of the
UCD-SNMP-MIB tree
# Special Case: When the min and max numbers are both 0,
it assumes
# you want a max of infinity and a min of 1.
proc mountd
proc ntalkd 4
proc sendmail 10 1
proc init 0 0
proc events/0
proc aio/0
proc portmap
proc syslogd
proc startkde
proc httpd2
proc nagios
proc ps
# disk: Check for disk space usage of a partition.
# The agent can check the amount of available disk space,
and make
# sure it is above a set limit.
#
# disk PATH [MIN=100000]
#
# PATH: mount path to the disk in question.
# MIN: Disks with space below this value will have the
Mib's errorFlag set.
# Can be a raw byte value or a percentage followed
by the %
# symbol. Default value = 100000.
#
# The results are reported in the dskTable section of the
UCD-SNMP-MIB tree
disk / 10000
disk / 100000000
# 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 14 14
load 11 11 11
# file: Check on the size of a file.
# Display a files size statistics.
# If it grows to be too large, report an error about it.
#
# file /path/to/file [maxsize_in_bytes]
#
# if maxsize is not specified, assume only size
reporting is needed.
#
# The results are reported in the fileTable section of the
UCD-SNMP-MIB tree
file /home 900000000
###########################################################################
# SECTION: Extending the Agent
#
# You can extend the snmp agent to have it return
information
# that you yourself define.
# exec: run a simple command using exec()
# arguments: [oid] name /path/to/executable arguments
exec echotest /bin/echo hello world
# Unknown directives read in from other files by snmpconf
#
com2sec local localhost COMMUNITY
com2sec LiutataNET 85.130.116.0/24 COMMUNITY
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 LiutataNET
group MyROGroup v2c LiutataNET
group MyROGroup usm LiutataNET
view all included .1 80
access MyROGroup "" any noauth exact all
none none
access MyRWGroup "" any noauth exact all
all none
----------------
### Global Defaults
# to get bits instead of bytes and graphs growing to the
right
# Options[_]: growright, bits
Language: bulgarian
WorkDir: /var/www/htdocs/mrtg
Options[_]: bits,growright
######################################################################
# System: router
# Description: Linux router 2.4.29
# Contact: zajo@mail.bg
# Location: "Liutata.NeT"
######################################################################
Target[router]: 1:root@Liutata:
SetEnv[router]: MRTG_INT_IP="" MRTG_INT_DESCR="ppp0"
MaxBytes[router]: 12500000
Title[router]: Analize traffic on ns.liutata.net
PageTop[router]: <H1> Analize traffic on ns.liutata.net
</H1>
<TABLE>
<TR><TD>System:</TD> <TD>router in
"Liutata"</TD></TR>
<TR><TD>Support:</TD> <TD>zajo@mail.bg</TD></TR>
<TR><TD>interface:</TD><TD>ppp0 </TD></TR>
<TR><TD>Lan Card is:</TD> <TD>3com 3c59x 100/10M
(6)</TD></TR>
<TR><TD>Mac address on interface:</TD>
<TD>00:10:4B:68:13:FC</TD></TR>
<TR><TD>Max speed:</TD> <TD>100.0 Mbits/s</TD></TR>
</TABLE>
Kak da go oprawq tozi problem ?!?
|