From owner-freebsd-stable@FreeBSD.ORG Fri Oct 5 13:19:02 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC80A106566B for ; Fri, 5 Oct 2012 13:19:02 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 95FE88FC08 for ; Fri, 5 Oct 2012 13:19:02 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id l39so1280250qcs.13 for ; Fri, 05 Oct 2012 06:19:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=yytA9U3bymnSddTzwNT/02Ga5MhW68ry6/mMLyZKJFQ=; b=NA/xXBA/vARlb6hfey51u13Ci67Y4wUgcuBRUILTzdiY/daVmkxzX08Ja83ls7SwAa Xazwi5hDqxnysndGJwiVauRKRCpgjC3QHuzFDrn/YPQLam6Tq8SyUsisAYovSgh5iXY8 c7e6rCz70gFdoD0z64Tn4EgzqSG6SMWq2rQ6ByhpzNCZq8zxjQykJujP/Ty30FX1WI2W Gs8xczGQ8dl1reSRyFvfKz80uNNztBUyqfwCIEOARzs/Uk41XqBy3EoDyvmnLMpjoIM0 nS6A369gn/Jmbvf7DiMOZR3jJsnG+ceU33sMOEfJBbC4Bv28DK+OgiZi2CY4IIGWPTz+ jFVQ== Received: by 10.224.1.69 with SMTP id 5mr16722717qae.61.1349443141798; Fri, 05 Oct 2012 06:19:01 -0700 (PDT) Received: from [97.62.44.60] (60.sub-97-62-44.myvzw.com. [97.62.44.60]) by mx.google.com with ESMTPS id bx11sm9892255qab.0.2012.10.05.06.18.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 06:19:00 -0700 (PDT) References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (9B206) From: Mark Saad Date: Fri, 5 Oct 2012 09:15:53 -0400 To: "prabhpal@digital-infotech.net" X-Gm-Message-State: ALoCoQlZ48dpvLsU4r6rNLPbpkrA8EC74v6vsORPqbowmoWrtMc4TCDCXY/KOUAQgccY/tMYoSm0 Cc: "centos@centos.org" , "freebsd-stable@freebsd.org" Subject: Re: Alert When Hardware Changes ! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 13:19:03 -0000 On Oct 5, 2012, at 7:23 AM, "Shiv. Nath" wro= te: >=20 > Dear Friends of List, >=20 > 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. >=20 > Question: >=20 > 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? >=20 > Any software anyone aware of? >=20 >=20 > _____________________________ You could use dmidecode in a nagios check to get some data like that. For ex= ample when a memory module fails , CPU speed , number of CPUs , number of me= mory modules ; but it's quite hardware vendor specific . As for hard drives y= ou would need to check if the box has a raid controller and some vendor spec= ific way to probe it . For example I use cciss_vol_status in both FreeBSD an= d 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 smar= tutils to monitor disk health . Other then that; if it's just a check to sho= w if diskX is installed you could have a nagios check looking for the entry i= n /dev . Both modern FreeBSD and Linux use a devfs/udev system and add and r= emove entries in /dev when the device is attached or not . Hope that helps ---- Mark saad | mark.saad@longcount.org