[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smartmontools-support
Subject:    Re: [smartmontools-support] Diskstatus via SNMP
From:       Guido =?iso-8859-1?Q?G=FCnther?= <agx () sigxcpu ! org>
Date:       2008-03-19 17:42:17
Message-ID: 20080319174217.GA8589 () bogon ! ms20 ! nix
[Download RAW message or body]

Hi Bruce,
On Mon, Mar 17, 2008 at 11:58:57PM -0600, Bruce Allen wrote:
> Well, I hope that two years isn't too slow a response.  I would be 
> interested in seeing this integrated into smartd.  Would it be possible to 
> do this in a platform/operating system independent way (not just Linux or 
> Unix specific)?  I'd also like to be able to generate SNMP traps when 
> problems are found, not just to get disk SMART data over SNMP.
Wouldn't this fit better into an external script? In Debian we call all
scripts in /etc/smartmontools/run.d/ where 10mail simply mimics the
default smart mail behaviour:

#!/bin/bash -e

# Send mail if /usr/bin/mail exists or exit silently
[ -x /usr/bin/mail ] || exit 0

input=$1
shift

/usr/bin/mail "$@" < $input

Maybe we need to export more environment variables to the scripts, but
we can possibly avoid pulling in all the snmp stuff. We avoid pulling
dbus dependencies via 60smart-notifier:

#!/bin/bash
[ -x /usr/bin/smart-notifier ] || exit 0
cat ${1} | /usr/bin/smart-notifier --notify

Something similar could be done for snmp.
 -- Guido

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic