From c30ac04cc9416d1b9fe7bc4280a85ca3374e9229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 9 Mar 2006 12:20:50 +0000 Subject: [PATCH] - add trap destinations param Changed files: cpqarrayd.init -> 1.3 cpqarrayd.sysconfig -> 1.3 --- cpqarrayd.init | 6 +++++- cpqarrayd.sysconfig | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cpqarrayd.init b/cpqarrayd.init index b53508f..c66a4fc 100644 --- a/cpqarrayd.init +++ b/cpqarrayd.init @@ -10,19 +10,23 @@ # Source function library . /etc/rc.d/init.d/functions +CPQ_PARAMS="" + # Get config. if [ -f /etc/sysconfig/cpqarrayd ]; then . /etc/sysconfig/cpqarrayd fi RETVAL=0 - # See how we were called. case "$1" in start) # Check if the service is already running? if [ ! -f /var/lock/subsys/cpqarrayd ]; then msg_starting cpqarrayd + for host in $TRAP_DESTINATIONS; do + CPQ_PARAMS="$CPQ_PARAMS -t $host" + done daemon cpqarrayd $CPQ_PARAMS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cpqarrayd diff --git a/cpqarrayd.sysconfig b/cpqarrayd.sysconfig index 3aac6dd..ddf09bc 100644 --- a/cpqarrayd.sysconfig +++ b/cpqarrayd.sysconfig @@ -1,4 +1,9 @@ -# Customized settings for cpqarrayd +# Customized settings for Compaq Array monitor cpqarrayd -# Specify startup options here. +# Specify a host that should receive traps. +# You can specify this option at max ten times. +# The host is in the format host:port. +#TRAP_DESTINATIONS="snmphost" + +# Specify additional startup options here. #CPQ_PARAMS="" -- 2.43.0