HOST-RESOURCES-MIB::hrDeviceStatus

This is a discussion on HOST-RESOURCES-MIB::hrDeviceStatus within the SNMP Users forums, part of the Networking and Network Related category; --===============0886544388== Content-Type: multipart/alternative; boundary="----=_Part_21141_10006913.1181839648030" ------=_Part_21141_10006913.1181839648030 Content-Type: text/plain; charset=ISO-8859-1; ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-14-2007
Jimbo Cham
 
Posts: n/a
Default HOST-RESOURCES-MIB::hrDeviceStatus

--===============0886544388==
Content-Type: multipart/alternative;
boundary="----=_Part_21141_10006913.1181839648030"

------=_Part_21141_10006913.1181839648030
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Folks,

After doing some research and looking through the net-snmp
agent/mibgroup/host code it seems that the net-snmp agent does not report
device status information.


hrDeviceStatus OBJECT-TYPE
SYNTAX INTEGER {
unknown(1),
running(2),
warning(3),
testing(4),
down(5)


I am planning on implementing the code to
1.) Report the Disk Status. My current thought is to do this through API
Calls to get the S.M.A.R.T status. This would display the Disk Status of
SCSI and IDE drives.
2.) Report the RAID (Software Raid) status by parsing the mdstat output.

My questions are

1.) Should I just modify hr_devices.c to invoke my library calls so that
this function is compiled into net-snmp agent. Obvious disadvantage is
creating patches that would need to be propped on each release upgrade.
2.) Create a Shared Library to be run using the dlmod entry in snmpd.conf. I
don't know that this is even possible considering that the agent already
serves the table hrDeviceTable that the hrDeviceStatus is a part of.

Any guidance towards the implementation direction would be appreciated.

Muni
Developer, Nortel
muniba AT nortel

------=_Part_21141_10006913.1181839648030
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi Folks,</div>
<div>&nbsp;</div>
<div>After doing some research and looking through the net-snmp agent/mibgroup/host code it seems that the net-snmp agent does not report device status information.</div>
<div>&nbsp;</div>
<div><pre><pre>hrDeviceStatus OBJECT-TYPE
SYNTAX INTEGER {
unknown(1),
running(2),
warning(3),
testing(4),
down(5)</pre></pre></div>
<div>&nbsp;</div>
<div>I am planning&nbsp;on&nbsp;implementing the&nbsp;code to&nbsp;&nbsp;</div>
<div>1.) Report the Disk Status. My current thought is to do this through API Calls to get the S.M.A.R.T status.&nbsp;This would&nbsp;display the Disk Status of SCSI and IDE drives.</div>
<div>2.) Report the RAID (Software Raid)&nbsp;status by parsing the mdstat output.</div>
<div>&nbsp;</div>
<div>My questions are</div>
<div>&nbsp;</div>
<div>1.) Should I just modify hr_devices.c to invoke my library calls so that this function is compiled into net-snmp agent. Obvious disadvantage is creating patches that would need to be propped on each release upgrade.
</div>
<div>2.) Create a Shared Library to be run using the dlmod entry in snmpd.conf. I don't know that this is even possible considering that the agent already serves the table hrDeviceTable that the hrDeviceStatus is a part of.
</div>
<div>&nbsp;</div>
<div>Any guidance towards the implementation direction would be appreciated.</div>
<div>&nbsp;</div>
<div>Muni</div>
<div>Developer, Nortel</div>
<div>muniba AT nortel</div>
<div>&nbsp;</div>

------=_Part_21141_10006913.1181839648030--


--===============0886544388==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============0886544388==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
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

--===============0886544388==--

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 01:02 AM.


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