HOST-RESOURCES-MIB::hrDeviceStatus

"Jimbo Cham" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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

-------------------------------------------------------------------------
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/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.