Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 09:15:53 -0400
From:      Mark Saad <nonesuch@longcount.org>
To:        "prabhpal@digital-infotech.net" <prabhpal@digital-infotech.net>
Cc:        "centos@centos.org" <centos@centos.org>, "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: Alert When Hardware Changes !
Message-ID:  <BB797AB7-29B7-4F54-996C-175202DF4F4C@longcount.org>
In-Reply-To: <fcbf7148cf22a9c3b8d0db892c193500.squirrel@mail.digital-infotech.net>
References:  <fcbf7148cf22a9c3b8d0db892c193500.squirrel@mail.digital-infotech.net>

next in thread | previous in thread | raw e-mail | index | archive | help



On Oct 5, 2012, at 7:23 AM, "Shiv. Nath" <prabhpal@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@longcount.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BB797AB7-29B7-4F54-996C-175202DF4F4C>