Re: HOST-RESOURCES-MIB::hrDeviceStatus

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 14/06/07, Jimbo Cham <[email protected]> wrote:
> 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.

Checking the code very quickly, it should cirrently report hrDeviceStatus for
network interfaces, printers and CPUs.   But not for other types of device.




> 1.) Should I just modify hr_devices.c to invoke my library calls

No.

It sounds as if you are talking about disk devices in particular.
So you should modify the 'hr_disk.c' file, to implement a routine
"disk_status", that would report the status of a particular disk

.   You then register this routine as part of initialising the hrDiskTable,
something like:

     device_status[HRDEV_DISK] = disk_status;

See the equivalent routines in hr_network.c, hr_print.c and hr_proc.c
for details.


Dave

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