Alert When Hardware Changes !

Mark Saad nonesuch at longcount.org
Fri Oct 5 13:19:03 UTC 2012



On Oct 5, 2012, at 7:23 AM, "Shiv. Nath" <prabhpal at digital-infotech.net> wrote:

> 
> Dear Friends of List,
> 
> Well, i understand perhaps someone will think if it is correct please to
> ask this question here. But i did not find the better place than here.
> Here is community of technical people and the question is technical as
> well.
> 
> Question:
> 
> Is anyone aware of such program (software) that can alert me when hardware
> changes? i.e. lets say i will monitor the hardware for a computer/server
> using a program (i.e. Zabbix / Nagios) may be different program. Can i
> receive the alert when hard disk for the computer has been changed?
> 
> Any software anyone aware of?
> 
> 
> _____________________________

You could use dmidecode in a nagios check to get some data like that. For example when a memory module fails , CPU speed , number of CPUs , number of memory modules ; but it's quite hardware vendor specific . As for hard drives you would need to check if the box has a raid controller and some vendor specific way to probe it . For example I use cciss_vol_status in both FreeBSD and Linux to monitor hp raid array health in a nagios check and it works well .  For generic non raid controllers , Sata, IDE , scsi you can try using smartutils to monitor disk health . Other then that; if it's just a check to show if diskX is installed you could have a nagios check looking for the entry in /dev . Both modern FreeBSD and Linux use a devfs/udev system and add and remove entries in /dev when the device is attached or not .


Hope that helps

----
Mark saad | mark.saad at longcount.org



More information about the freebsd-stable mailing list