Hello,

We are trying to get an SNMP alert from a logMatch entry we have in our 
snmpd.conf file.  We are running on solaris 10 utilizing Net-SNMP version 
5.4.1.

Here is a copy of our snmpd.conf file.  Any help is appreciated:



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

# 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  [EMAIL PROTECTED]



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

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

rwcommunity  esm 



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

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

trapsink  172.24.3.48 public 162 
trapsink  tnoca2 

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

trap2sink  tnoca2 

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

informsink  tnoca2 

trapsess -c public 172.24.3.48
# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  public


createUser _internal MD5 "the first sign of madness"
iquerySecName _internal
rouser _internal

###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
#   The following check up on various aspects of a host.

defaultMonitors yes
monitor -o logMatchName -o logMatchErrorFlag "logMatchTable" 
logMatchErrorFlag != 0

# 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 

# 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  /apps/net-snmp/share/snmp/snmpd.conf 2

logmatch  test /apps/net-snmp/share/snmp/snmpd.conf 60 Com*
logmatch  Secondtest /etc/hosts 10 lu*
logmatch  Thirdtest /var/adm/messages 60 failed
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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