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&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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"> 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.</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">./configure --with-perl-modules = --with-mib-modules=3D"disman/event-mib"</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. 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: 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</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">I really have no idea what it is = complaining about. 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"># - 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"># 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"># arguments: host = [community] [portnum]</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">trap2sink netcool</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">trap2sink 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"># arguments: host = [community] [portnum]</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">informsink 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"># arguments: = community-string</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">trapcommunity = SPG-UnxVisi0n</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">trapcommunity 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"># arguments: 1 | = 2 (1 =3D yes, 2 =3D no)</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">authtrapenable 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"># This section defines = some of the information reported in</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># the "system" = 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"># Note that setting this = value here means that when trying to</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># perform an snmp SET = operation to the sysLocation.0 variable will make</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># the agent return the = "notWritable" error code. IE, including</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># this token in the = snmpd.conf file will disable write access to</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># the variable.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># arguments: = location_string</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">syslocation "Siemens Power = Generation"</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial"># syscontact: The contact information = for the administrator</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># Note that setting this = value here means that when trying to</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># perform an snmp SET = operation to the sysContact.0 variable will make</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># the agent return the = "notWritable" error code. IE, including</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># this token in the = snmpd.conf file will disable write access to</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># the variable.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># arguments: = contact_string</FONT> </P> <P><FONT SIZE=3D2 = FACE=3D"Arial">syscontact & nbsp; "PG IT Root = itroot@swpc.siemens.com"</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"># 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"># The agent can check the = amount of available disk space, and make</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># sure it is above a set = limit.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># disk PATH = [MIN=3D100000]</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># PATH: mount = path to the disk in question.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># MIN: = Disks with space below this value will have the Mib's errorFlag = set.</FONT> <BR><FONT SIZE=3D2 = FACE=3D"Arial"># &nbs p; &nb= sp; Can be a raw byte value or a percentage followed by the %</FONT> <BR><FONT SIZE=3D2 = FACE=3D"Arial"># &nbs p; &nb= sp; symbol. Default value =3D 100000.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># The results are reported = in the dskTable section of the UCD-SNMP-MIB tree</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">disk /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 -o dskPath -o = dskErrorMsg "dskTable" dskErrorFlag !=3D 0</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#monitor -u root -i -r 30 -o dskPath.1 = -o dskErrorMsg.1 "home file system" 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"># Watch the load average = levels on the machine.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># 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"># 1MAX: = If the 1 minute load average is above this limit at query</FONT> <BR><FONT SIZE=3D2 = FACE=3D"Arial"># &nbs p; &nb= sp; time, the errorFlag will be set.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># 5MAX: = Similar, but for 5 min average.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># 15MAX: = Similar, but for 15 min average.</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># The results are reported = in the laTable section of the UCD-SNMP-MIB tree</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial"># load 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"># This section defines who = is allowed to talk to your running</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial"># 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"># arguments: = 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|