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; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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> </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> </div> <div><pre><pre>hrDeviceStatus OBJECT-TYPE SYNTAX INTEGER { unknown(1), running(2), warning(3), testing(4), down(5)</pre></pre></div> <div> </div> <div>I am planning on implementing the code to </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. This would display the Disk Status of SCSI and IDE drives.</div> <div>2.) Report the RAID (Software Raid) status by parsing the mdstat output.</div> <div> </div> <div>My questions are</div> <div> </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> </div> <div>Any guidance towards the implementation direction would be appreciated.</div> <div> </div> <div>Muni</div> <div>Developer, Nortel</div> <div>muniba AT nortel</div> <div> </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==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|