[mrtg] Re: Sun Solaris Disk Space Monitoring
Anthony Lai
savedadogs at yahoo.com
Wed Feb 12 15:57:25 MET 2003
Don,
Wow, thanks for all the information. Before I try all your steps...How do run the UCD-SNMPD on my solairs box? Do I just dl the solairs ucd-snmp package and run the ucd-snmp dameon? Sorry, I am very new to this. I did not know I had to install anything on the machies I was querying....
Don Harvie <donharvie at yahoo.com.au> wrote:
Anthony Lai wrote:
> Don,
> Thanks for the help. I tried this but it did not work on a Solaris 8 box...I tried snmpget to query the box with the OID you specified....however I get the following:
> C:\SNMP\bin>snmpget -M c:\snmp\mibs -m UCD-SNMP-MIB nss10n01 public .1.3.6.1.4.1.2021.9.1
> Error in packet
> Reason: (noSuchName) There is no such variable name in this MIB.
> Failed object: enterprises.ucdavis.dskTable.dskEntry
> Does anyone know why I get this error???
Several possibilities:
1) You're not running the UCD/NET-SNMPD on the solaris box. (And of
course the enterprises.ucd-snmp subtree doesn't exist).
2) IIRC the default security settings in snmpd.conf are fairly
restrictive (They only allow public access to the system subtree)
Check this by snmpwalk(ing) from .1
An example snmpd.conf: (Access control) This is pretty open - I would
recommend you tighten things more than show here if this is your problem
lies, it should be enough to check things are operational though.
####
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser default
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to:
# name incl/excl subtree mask(optional)
view systemview included .1
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact systemview none none
and
3) You gotta tell snmpd you want to monitor disk space, Again from
snmpd.conf:
###############################################################################
# disk checks
#
# 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.
# Default value = 100000.
# Check the / partition and make sure it contains at least 10 megs.
disk / 250000
disk /usr
disk /var
disk /data
disk /home
disk /opt
disk /var/opt
HTH
--
Thanks,
Don Harvie Ph +61 2 9882 5963
Snr Network & Firewall Engineer, Fax +61 2 9882 5993
Telstra Internetworking Solutions Mob +61 417 411 427
Level 3, 112 Talavera Rd Email Don_Harvie at EnterpriseServices.com.au
North Ryde NSW 2113 donharvie at yahoo.com.au (personal)
Australia
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list