RE: HOST-RESOURCES-MIB::hrDeviceStatus
"Bruce Shaw" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <A8E35CF33CF6584A8497CB2E7521385B0214BA50@EDM-GOA-EXCC-5A.goa.ds.gov.ab.ca> |
Unfortunately we are constrained by the MIB which only allows us to
report the statuses below.
It is implemented for CPU's on solaris.
# /usr/local/bin/snmpwalk -v 2c -c public -m ALL localhost
hrDeviceStatus
HOST-RESOURCES-MIB::hrDeviceStatus.768 = INTEGER: running(2)
HOST-RESOURCES-MIB::hrDeviceStatus.769 = INTEGER: running(2)
HOST-RESOURCES-MIB::hrDeviceStatus.770 = INTEGER: running(2)
Referring to the mib
(http://net-snmp.sourceforge.net/docs/mibs/HOST-RESOURCES-MIB.txt)
Disk is normally reported as hrStorage rather than hrDevice, however one
of the hrDevice types is hrDiskStorage so you certainly would have the
opportunity report a status, such as it is.
You would need to decide how you're going to translate what you get from
SMART into those values below.
Sorry, you can't rewrite the MIB - it's cast in stone.
>Original meesage below
#############################
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.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------------------------------------------------------------------
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