[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extra-script not executed while sending data from client to RRD
- To: hobbit (at) hswn.dk
- Subject: extra-script not executed while sending data from client to RRD
- From: Ezio Ostorero <ezio.ostorero (at) gmail.com>
- Date: Fri, 6 Mar 2009 16:32:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=4xXb7D7QOIEmICtEo21bMrHbDOArFZmGOAzIKDBXF5E=; b=XjXWLsYax+Ywfeu1Sz3KtYWRNxPKYCUCC8kDuwAbxdd7es9NWsQgSfXNEn7iSZkLA8 Ls5kxtUi4s4RD010d2TC1r8dh/rQS/4HBz0j5W+7TqpTpSPblEZUZhtWbJl0Ox4HMyUI L2IaLOTh8OhR5Rta69/QXEcWijwoBfnUy3MR4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fF5t4OGElWLJyjfuu6/GvsXJQmx4BxuDTUTPtLu8Vqi3pkbmMpxCCIk6sdTJ4muN6U F47WEqQ3yhEAKzEJUUrncIRjQGE7N8znc4RjcWiZinfZ9mw4BQtWC9VLrDBUgLWpy5L0 /INdD4G/OXuHhXVBSvto8wxT+iVYxAXcwpf6I=
Hi all,
Before posting I carefully read the all the docs I could find on the matter,
FAQs, HOWTOs, and the following strings:
http://www.hswn.dk/hobbiton/2006/10/msg00318.html
http://www.hswn.dk/hobbiton/2006/10/msg00326.html
http://www.hswn.dk/hobbiton/2008/09/msg00244.html
http://www.hswn.dk/hobbiton/2008/09/msg00265.html
So, I was able to slowly and painfully crawl along and write a couple of
"hello world" scripts.
My server "ps" looks like this:
ezio# ps -ef | grep hobbitd_rrd | grep -v grep | grep -v hobbitd_channel
hobbit 7929 7928 0 16:08 ? 00:00:00 hobbitd_rrd
--rrddir=/var/lib/hobbit/rrd
hobbit 7954 7953 0 16:08 ? 00:00:00 hobbitd_rrd
--rrddir=/var/lib/hobbit/rrd
--extra-script=/usr/lib/hobbit/server/ext/rrd_mon.sh --extra-tests=iostat
--debug
Notice the "=" sign is there between --extra-script and the actual script
name (see http://www.hswn.dk/hobbiton/2008/09/msg00357.html)
My extra script is so trivial I'm ashamed to post it, but it's good to check
if it is going to be executed at all:
#!/bin/bash
TMPLOG="/tmp/$1.$2.out.$$"
date >> $TMPLOG
echo "$1, $2, $3" >> $TMPLOG
cp $3 >> $TMPLOG 2>&1
exit 0
OK, nothing is created in /tmp, so, I'm assuming hobbit_rrd is NOT executing
my extra script.
Turning on the "--debug" option did not help much
What am I missing? Should I put all the fancy RRD-formatted-colon-separated
"echoes" in my extra-script? (I wouldn't say so)
Ciao,
Ezio