[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wrong status of server side extention script in xymon-4.2.2
- To: hobbit (at) hswn.dk
- Subject: wrong status of server side extention script in xymon-4.2.2
- From: pankaj dorlikar <pankaj.dorlikar (at) gmail.com>
- Date: Fri, 8 May 2009 23:08:28 +0530
- 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=GoQxPZ4w0Xrd49EYHpXSVpZBhi81GlqZaVOlC4BszQs=; b=hfT9cgBYi9AYzpbJTEdZ/NeAmKgY+ULR+E1S9u790lECqLjx4O3lDsMKJhtfunJM8C BmU1GP6lJu2Tyi3yDCgCxAFinuRBTRFxD00dx4y6iVIrMO3umEwlmGc/Vzj4h8LuSbRx QYpQStyCjOqxLP8zUbtKnNGPubomqUyQWUrXs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=KJrMe4Y4CAdBylXE3yvKfZiTGK4n+TlHAcZ3Vt+8rhmTrMInu4HZ6n1zglROD9F968 CQOCm+BGP3KycTDr869rAPyRKolscsHA2OH8xyofJNSfSQtQEGv/XrIpCE1gCj5/cPhX shTXFqG0PwyofJL7To+czKBACzjr89rUNDRBY=
hi,
i am using xymon -4.2.2.
I have written one extension script (server side script) for monitoring k3b
service on each machine including server and clients also.On one of my
clients and on server itself,the service is not running.on other two clients
service is running.
I am getting same green status on all clients as well as server stating k3b
is running.when i checked on each client,server and 2 clients do not run
this service.;but i am getting green for that also....wt is wrong?
steps i fallowd are,
In ~/server/etc/hobbitlaunch.cfg added
k3b]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
CMD $BBHOME/ext/k3b
LOGFILE $BBSERVERLOGS/k3b.log
INTERVAL 5m
in bb-hosts,added k3b for every host..
In ~/server/ext/k3b, added:
#!/bin/sh
BBHTAG=k3b # What we put in bb-hosts to trigger this test
COLUMN=k3b # Name of the column, often same as tag in bb-hosts
$BBHOME/bin/bbhostgrep $BBHTAG | while read L
do
set $L # To get one line of output from bbhostgrep
HOSTIP="$1"
MACHINEDOTS="$2"
MACHINE=`echo $2 | $SED -e's/\./,/g'`
MSG="$BBHTAG status for host $MACHINEDOTS"
op=`ps -aef | grep k3b | grep -v grep|grep -v vim`
/*
some logic placed which will lead to results
*/
if test $op != "";then
then
COLOR=green
else
COLOR=red
fi
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date`
${MSG}
"
done
exit 0
------------------
logs alos do not show anything except bb-hosts enties..
help me..abt how can i get correct status for all clients and serverm
using server side xternal script
Pankaj V. Dorlikar