Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Net-SNMP issues Solaris 10

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-25-2008
soupbone38 soupbone38 is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 29 April 2015, 7:37 PM EDT
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Net-SNMP issues Solaris 10

I'm unable to see any traps being sent from my Solaris 10 server using Net-snmp 5.4.2 Here is my snmp conf file. Please let me know if there are any syntax issues you might notice.

cat /etc/sma/snmp/snmpd.conf
###########################################################################
#
# 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.

# rwuser: a SNMPv3 read-write user
# arguments: user [noauth|auth|priv] [restriction_oid]

rwuser user

# rouser: a SNMPv3 read-only user
# arguments: user [noauth|auth|priv] [restriction_oid]

rouser user

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

#rocommunity public
rocommunity public .1.3.6.1.2.1.1

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

#rwcommunity private localhost .1.3.6.1.4.1.42.2.15
rwcommunity private 127.0.0.1



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

# dlmod: dynamically extend the agent using a shared-object
# arguments: module-name module-path

dlmod seaProxy /usr/sfw/lib/sparcv9/libseaProxy.so
dlmod seaExtensions /usr/sfw/lib/sparcv9/libseaExtensions.so



###########################################################################
# 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 sendmail 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 /usr/test 4129477
disk /tmp/test 1

# 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 /tmp/test 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 "Datacenter"

# 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 unixteam@xxx.com

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

sysservices 72



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

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

trapsink 10.13.13.4 public 162
trapsink netops

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

trap2sink 10.13.13.4

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

#informsink 10.13.13.4 public 162
informsink netops05

trapsess -c public 10.13.13.176

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

#trapcommunity SNMP-trap
trapcommunity public

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

authtrapenable 1
Sponsored Links
    #2  
Old Unix and Linux 12-02-2008
geek_man geek_man is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 27 March 2009, 1:59 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi!

Have you tried the following command?

# snmpget -v 2c -c public localhost sysDescr

I am trying to implement net-snmp in a solaris 10 server but I am having a lot of problems. It includes the UCD-SNMP mib but when I ask for a value like memAvailReal it returns
ERROR: Request timeout.

But when I ask for a value like sysDescr it returns the correct value.

Do you have any idea?

Thanks.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
snmp on solaris 2.8 lamou23 Solaris 2 01-15-2011 07:40 AM
SNMP on Sun Solaris 5.8 lamou23 Infrastructure Monitoring 7 10-17-2010 12:07 PM
SNMP on Sun Solaris 5.8 lamou23 Infrastructure Monitoring 1 10-13-2010 05:25 AM
snmp on solaris lamou23 Infrastructure Monitoring 4 09-05-2010 04:54 AM
net-snmp on solaris 8 melanie_pfefer Solaris 1 04-27-2008 10:44 PM



All times are GMT -4. The time now is 08:19 AM.