env: solaris 10/ i386
I want to monitoring a solaris server from another CentOS server through snmp.
- At the first I entered the solaris server, there is a snmpd running.
- I can find some monitoring items like CPU/Memory/SWAP through snmp from my monitoring server, however, there's no value on it. It shows something like 'CPU Status is UNKNOWN'.
It has no com2sec, group or view settings like CentOS does, so I have no idea how to set it up.
And here's my **original** default snmpd.conf before I change anything on solaris (in /etc/snmp/conf/):
Code: Select all
# Copyright 1988 - 07/17/00 Sun Microsystems, Inc. All Rights Reserved.
#ident "@(#)snmpd.conf 2.24 00/07/17 SMI"
# See below for file format and supported keywords
sysdescr Sun SNMP Agent,
syscontact System administrator
sysLocation System administrators office
#
system-group-read-community public
#system-group-write-community private
#
read-community public
#write-community private
#
trap localhost
trap-community SNMP-trap
#
#kernel-file /vmunix
#
#managers lvs golden
managers localhost
#############################
# File Format:
# Each entry consists of a keyword followed by a parameter string,
# terminated by a newline. The keyword must begin in the first
# position. The parameters are separated from the keyword (and from
# one another) by whitespace. All text following (and including) a '#'
# character is ignored. Case in keywords is ignored, but case in
# parameter strings is NOT ignored.
# Supported Keywords:
# sysdescr String to use for sysDescr.
# syscontact String to use for sysContact.
# syslocation String to use for sysLocation.
#
# system-group-read-community Community name needed for read access
# to the system group.
# system-group-write-community Community name needed for write access
# to the system group.
# read-community Community name needed for read access
# to the entire MIB.
# write-community Community name needed for write access
# to the entire MIB (implies read access).
#
# trap Host names where traps should be sent.
# A maximum of 5 hosts may be listed.
# trap-community Community name to be used in traps.
#
# kernel-file Filename to use for kernel symbols.
#
# managers Hosts that can send SNMP queries.
# Only five hosts may be listed on any one line.
# This keyword may be repeated for a total of 32 hosts.
#
# newdevice Additional devices which are not built in snmpd
# format as below
#
# newdevice type speed name
#
# where newdevice is keyword, type is an interger which has to match your
# schema file, speed is the new device's speed, and name is this new
# device's name
I tried adding some setting in the 'conf', e.g.
-
Code: Select all
master agentxCode: Select all
view AllView included .1Code: Select all
managers localhost 192.168.0.132Code: Select all
svcadm restart svc:/application/management/sma:defaultCode: Select all
svcadm restart svc:/application/management/net-snmp:defaultIt still says "blabla is UNKNOWN"
Please advise!
Thanks!