logo       

Connection from callback error: msg#00253

network.net-snmp.user

Subject: Connection from callback error

Im resending as i realized my first email to the list was from the wrong
accountid so it has probably been rejected.

The subject line is the error I message I am getting in syslog:
Jan 27 16:05:59 testsys snmpd: Connection from callback: 1 on fd 4
Refused. If I dont have enough information here then let me know what to
add. I searched the snmp group at google for that message and got 2 hits
unrelated.

thanks for any help,

-Greg




System: Intel P3 400
OS: Fedora Core 1

RPM Change from the Fedora RPM:
Spec File was modified to include

--with-mib-modules="host agentx smux disman/event-mib"

then rpmrebuild -ba ...
then replaced the Fedora Core 1 net-snmp and net-snmp-utils rpms

Iptables: stopped to make sure it wasnt iptables causing the problem
even though I saw no blocked log entries.

snmp and snmptrapd start without a problem.

Here is the snmpd.conf file on the test system where the error (in the
subject line is occuring)

###########################################################################
#
# 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.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity dontusepublic



###########################################################################
# SECTION: Extending the Agent
#
# You can extend the snmp agent to have it return information
# that you yourself define.

# pass: Run a command that intepretes the request for an entire tree.
# The pass program defined here will get called for all
# requests below a certain point in the mib tree. It is then
# responsible for returning the right data beyond that point.
#
# arguments: miboid program
#
# example: pass .1.3.6.1.4.1.2021.255 /path/to/local/passtest
#
# See the snmpd.conf manual page for further information.
#
# Consider using "pass_persist" for a performance increase.

pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

###########################################################################
# 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 syslogd
proc smartd
proc crond
proc init
proc mingetty 10 1
proc psadwatchd
proc klogd
proc kjournald 5 3
proc kswapd
proc keventd
proc kapmd
proc bdflush
proc kupdated
proc mdrecoveryd
#proc sshd 10 1


# 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 / 10%

# 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 10 10 10


###########################################################################
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
# arguments: host [community] [portnum]

trapsink 127.0.0.1 dontusepublic

# authtrapenable: Should we send traps when authentication failures
occur
# arguments: 1 | 2 (1 = yes, 2 = no)

authtrapenable 1



###########################################################################
# 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 "Some Location"

# 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 Root <root@localhost>

# sysservices: The proper value for the sysServices object.
# arguments: sysservices_number

sysservices 12

agentSecName internal
rouser internal
defaultMonitors yes
monitor -u internal -o sysUpTime.0 -o hrSWRunName "high process memory"
hrSWRunPerfMem > 10000




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise