OK,

I've worked out that the command "/usr/local/sbin/snmpd
/usr/local/share/snmp/snmpd.conf" is NOT the command to start net-snmp.
It should just be "/usr/local/sbin/snmpd".  Thanks to Dave Shield for
confirming that.

I have also worked out that you should not have quotes around the server
name in the trap2sink line in the configuration file.  I am unsure why
the snmpconf command creates them in that way, if all they cause is
errors in the log file.  Ditto for the port numbers.

Now, my configuration file has been pared back to basically:

__________________________________________
########################################################################
###
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#

########################################################################
###
# 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  proftpd 1 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  / 480000
disk  /var 5480000

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

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

# 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  "SDS (08) 9334 xxxx"

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

# trap2sink: A SNMPv2c trap receiver
#   arguments: host [community] [portnum]

trap2sink  kens-mgmt-043 ISsCa1

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  kens-mgmt-043 ISsCa1

# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  ISsCa1

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

authtrapenable  1
___________________________________________

This however produces the following comment in the snmpd.log file:

"Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmpd.conf
file for this agent.
NET-SNMP version 5.4.2.1"

___________________________________________

After running "snmpconf -g access_control" I removed that warning and
now simply get:

" NET-SNMP version 5.4.2.1"

In the snmpd.log.

___________________________________________

When I attempt to test the installation, I get the following:

# snmpget -v 1 -c ISsCa1m localhost sysUpTime.0
Timeout: No Response from localhost.
r...@calm-dmz-6 /var/log# snmpwalk -v 2c -c ISsCa1m -m ALL localhost
.1.3 | more
Timeout: No Response from localhost

___________________________________________

Does anybody have any ideas how I can increase the timeout or fix it so
it doesn't time out?


Cheers

Brian Ross




This email, together with any attachments, is intended for the
addressee only. It may contain confidential or privileged information.
If you are not the intended recipient of this email, please notify
the sender, delete the email and attachments from your system and
destroy any copies you may have taken of the email and its attachments.
Duplication or further distribution by hardcopy, by electronic means
or verbally is not permitted without permission.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to