Frustration with Disk Monitoring

This is a discussion on Frustration with Disk Monitoring within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C601B0.DA5263A5 Content-Type: text/plain; charset="US-ASCII&...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2005
Palmadesso Jack IT743
 
Posts: n/a
Default Frustration with Disk Monitoring

This is a multi-part message in MIME format.

------_=_NextPart_001_01C601B0.DA5263A5
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hello all,
I've been messing around with the RHEL 4 installation of Net-SNMP and
after reading the docs ( man snmpd.conf ) I've tried to monitor the
disks on my system. Its been failing miserably with "token" errors. I
guessed that I need to compile my own version of net-snmp so I did and
did so with these options.

../configure --with-perl-modules --with-mib-modules=3D"disman/event-mib"

I was hoping that by using this it would work but now I'm getting
slightly different errors. Seems like progress though.

Dec 15 14:45:20 w72l-tux kernel: audit(1134675920.917:0): avc: denied
{ getattr } for pid=3D9101 exe=3D/usr/sbin/snmpd path=3D/home =
dev=3Dhda4 ino=3D2
scontext=3Droot:system_r:snmpd_t =
tcontext=3Dsystem_u:object_r:home_root_t
tclass=3Ddir

I really have no idea what it is complaining about. Can anybody tell me
? Here is my snmpd.conf


################################################## ######################
###
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
################################################## ######################
###
# SECTION: Trap Destinations
#
# Here we define who the agent will send traps to.

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

trap2sink netcool
trap2sink 209.243.240.105

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

informsink 209.243.240.105

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

trapcommunity SPG-UnxVisi0n
trapcommunity public

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

authtrapenable 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 "Siemens Power Generation"

# 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 "PG IT Root itroot@swpc.siemens.com"



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

# 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=3D100000]
#
# 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 =3D 100000.
#
# The results are reported in the dskTable section of the UCD-SNMP-MIB
tree

disk /home 90%

agentSecName internal
rouser internal

monitor -o dskPath -o dskErrorMsg "dskTable" dskErrorFlag !=3D 0
#monitor -u root -i -r 30 -o dskPath.1 -o dskErrorMsg.1 "home file
system" dskErrorFlag.1 !=3D0

# load: Check for unreasonable load average values.
# Watch the load average levels on the machine.
#
# load [1MAX=3D12.0] [5MAX=3D12.0] [15MAX=3D12.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 5.5 5.5 5.5



################################################## ######################
###
# 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 xxxx localhost
rocommunity xxxx pg-mon-01
rocommunity xxxx pg-mon-02
rocommunity xxxx pg-mon-03
rocommunity xxxx pg-mon-04
rocommunity xxxx pg-mon-05
rocommunity xxxx pg-mon-06
rocommunity xxxx pg-mon-07
rocommunity xxxx pg-mon-08
rocommunity xxxx pg-mon-09
rocommunity xxxx pg-mon-10
rocommunity xxxx netcool
rocommunity xxxx nnm
rocommunity xxxx ehealth

Jack

------_=_NextPart_001_01C601B0.DA5263A5
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>Frustration with Disk Monitoring</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello all,</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;I've been messing around with =
the RHEL 4 installation of Net-SNMP and after reading the docs ( man =
snmpd.conf ) I've tried to monitor the disks on my system.&nbsp; Its =
been failing miserably with &quot;token&quot; errors.&nbsp; I guessed =
that I need to compile my own version of net-snmp so I did and did so =
with these options.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">./configure --with-perl-modules =
--with-mib-modules=3D&quot;disman/event-mib&quot;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I was hoping that by using this it =
would work but now I'm getting slightly different errors.&nbsp; Seems =
like progress though.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Dec 15 14:45:20 w72l-tux kernel: =
audit(1134675920.917:0): avc:&nbsp; denied&nbsp; { getattr } for&nbsp; =
pid=3D9101 exe=3D/usr/sbin/snmpd path=3D/home dev=3Dhda4 ino=3D2 =
scontext=3Droot:system_r:snmpd_t =
tcontext=3Dsystem_u:object_r:home_root_t tclass=3Ddir</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I really have no idea what it is =
complaining about.&nbsp; Can anybody tell me ? Here is my =
snmpd.conf</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">################################### #######################=
#################</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"># snmpd.conf</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; - created by the =
snmpconf configuration program</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">################################### #######################=
#################</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"># SECTION: Trap Destinations</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; Here we define who the =
agent will send traps to.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># trap2sink: A SNMPv2c trap =
receiver</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments: host =
[community] [portnum]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">trap2sink&nbsp; netcool</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">trap2sink&nbsp; 209.243.240.105</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># informsink: A SNMPv2c inform =
(acknowledged trap) receiver</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments: host =
[community] [portnum]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">informsink&nbsp; 209.243.240.105</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># trapcommunity: Default trap sink =
community to use</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments: =
community-string</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">trapcommunity&nbsp; =
SPG-UnxVisi0n</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">trapcommunity&nbsp; public</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># authtrapenable: Should we send traps =
when authentication failures occur</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments: 1 | =
2&nbsp;&nbsp; (1 =3D yes, 2 =3D no)</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">authtrapenable&nbsp; 1</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">################################### #######################=
#################</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"># SECTION: System Information =
Setup</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; This section defines =
some of the information reported in</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; the &quot;system&quot; =
mib group in the mibII tree.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># syslocation: The [typically physical] =
location of the system.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; Note that setting this =
value here means that when trying to</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; perform an snmp SET =
operation to the sysLocation.0 variable will make</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; the agent return the =
&quot;notWritable&quot; error code.&nbsp; IE, including</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; this token in the =
snmpd.conf file will disable write access to</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; the variable.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments:&nbsp; =
location_string</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">syslocation&nbsp; &quot;Siemens Power =
Generation&quot;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># syscontact: The contact information =
for the administrator</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; Note that setting this =
value here means that when trying to</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; perform an snmp SET =
operation to the sysContact.0 variable will make</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; the agent return the =
&quot;notWritable&quot; error code.&nbsp; IE, including</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; this token in the =
snmpd.conf file will disable write access to</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; the variable.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments:&nbsp; =
contact_string</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">syscontact&nbsp;&nbsp;&nbsp;&nbsp;& nbsp; &quot;PG IT Root =
itroot@swpc.siemens.com&quot;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">################################### #######################=
#################</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"># SECTION: Monitor Various Aspects of =
the Running Host</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; The following check up =
on various aspects of a host.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># disk: Check for disk space usage of a =
partition.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; The agent can check the =
amount of available disk space, and make</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; sure it is above a set =
limit.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; disk PATH =
[MIN=3D100000]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; PATH:&nbsp; mount =
path to the disk in question.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; MIN:&nbsp;&nbsp; =
Disks with space below this value will have the Mib's errorFlag =
set.</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp; Can be a raw byte value or a percentage followed by the %</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp; symbol.&nbsp; Default value =3D 100000.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; The results are reported =
in the dskTable section of the UCD-SNMP-MIB tree</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">disk&nbsp; /home 90%</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">agentSecName internal</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rouser internal</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">monitor&nbsp;&nbsp; -o dskPath -o =
dskErrorMsg &quot;dskTable&quot; dskErrorFlag !=3D 0</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#monitor -u root -i -r 30 -o dskPath.1 =
-o dskErrorMsg.1 &quot;home file system&quot; dskErrorFlag.1 =
!=3D0</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># load: Check for unreasonable load =
average values.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; Watch the load average =
levels on the machine.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; load [1MAX=3D12.0] =
[5MAX=3D12.0] [15MAX=3D12.0]</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; 1MAX:&nbsp;&nbsp; =
If the 1 minute load average is above this limit at query</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; time, the errorFlag will be set.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; 5MAX:&nbsp;&nbsp; =
Similar, but for 5 min average.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp; 15MAX:&nbsp; =
Similar, but for 15 min average.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; The results are reported =
in the laTable section of the UCD-SNMP-MIB tree</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># load&nbsp; 5.5 5.5 5.5</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">################################### #######################=
#################</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial"># SECTION: Access Control Setup</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; This section defines who =
is allowed to talk to your running</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; snmp agent.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial"># rocommunity: a SNMPv1/SNMPv2c =
read-only access community name</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; arguments:&nbsp; =
community [default|hostname|network/bits] [oid]</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx localhost</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-01</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-02</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-03</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-04</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-05</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-06</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-07</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-08</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-09</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx pg-mon-10</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx netcool</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx nnm</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">rocommunity xxxx ehealth</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jack</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C601B0.DA5263A5--


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0