Hi all
I'm adding some custom scritps to hobbit an bbd is now purple. I can't find any indication as to what would cause this. I've looked through the logs and all seems well. Any pointers as to what could be causing this?
-- Regards Wayne Gemmell
Sounds to me like that script isn't reporting. What custom script is it? Is it client or server?
On 1/21/08, Wayne <lists2006.wayne at gmail.com> wrote:
Hi all
I'm adding some custom scritps to hobbit an bbd is now purple. I can't find any indication as to what would cause this. I've looked through the logs and all seems well. Any pointers as to what could be causing this?
-- Regards Wayne Gemmell
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
What custom script is it?
On 1/21/08, Wayne <lists2006.wayne at gmail.com> wrote:
On Monday 21 January 2008 11:20:16 Josh Luthman wrote:
Sounds to me like that script isn't reporting. What custom script is it? Is it client or server?
server.
Cheers Wayne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
Its monitoring our USSD services. Its also very much hacked from the example. I an having problems atm with the while loop but they weren't there when I posted my first message. I've pasted it below. Thanks for the help.
#!/bin/bash BBHTAG=servicemon # What we put in bb-hosts to trigger this test COLUMN=servicemon # Name of the column, often same as tag in bb-hosts
echo "Starting: "
$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'
echo $MACHINE
echo date
COLOR=green
TMPFILE=/tmp/servicemon$RANDOM.tmp
echo $TMPFILE
MSG="$BBHTAG status for host $MACHINEDOTS"
echo $MSG
#... do the test, perhaps modify COLOR and MSG
nc odin 8013 < $BBHOME/ext/ussdMtn.xml > $TMPFILE
while [ ! grep "<code>1" $TMPFILE ] || [ ! grep "<code>2" $TMPFILE ];do
nc odin 8013 < $BBHOME/ext/ussdMtn.xml > $TMPFILE
sleep 5
done
if [ ! `grep iZone $TMPFILE` ];then
COLOR=red
MSG="mtn is down!!!"
fi
nc odin 8013 < $BBHOME/ext/ussdMtnEnd.xml > /dev/null
rm $TMPFILE
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG}"
echo '$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG}"'
done exit 0
On Monday 21 January 2008 11:52:01 Josh Luthman wrote:
What custom script is it?
On 1/21/08, Wayne <lists2006.wayne at gmail.com> wrote:
On Monday 21 January 2008 11:20:16 Josh Luthman wrote:
Sounds to me like that script isn't reporting. What custom script is it? Is it client or server?
server.
Cheers Wayne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Regards Wayne Gemmell Flash Media Group Tel: 27 (0)12 430 7597 Cell: 27 (0)83 666 3342
Its monitoring our USSD services. Its also very much hacked from the example. I an having problems atm with the while loop but they weren't there when I posted my first message. I've pasted it below. Thanks for the help.
#!/bin/bash BBHTAG=servicemon # What we put in bb-hosts to trigger this test COLUMN=servicemon # Name of the column, often same as tag in bb-hosts
echo "Starting: "
$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'
echo $MACHINE
echo date
COLOR=green
TMPFILE=/tmp/servicemon$RANDOM.tmp
echo $TMPFILE
MSG="$BBHTAG status for host $MACHINEDOTS"
echo $MSG
#... do the test, perhaps modify COLOR and MSG
nc odin 8013 < $BBHOME/ext/ussdMtn.xml > $TMPFILE
while [ ! grep "<code>1" $TMPFILE ] || [ ! grep "<code>2" $TMPFILE ];do
nc odin 8013 < $BBHOME/ext/ussdMtn.xml > $TMPFILE
sleep 5
done
if [ ! `grep iZone $TMPFILE` ];then
COLOR=red
MSG="mtn is down!!!"
fi
nc odin 8013 < $BBHOME/ext/ussdMtnEnd.xml > /dev/null
rm $TMPFILE
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG}"
echo '$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG}"'
done exit 0
On Monday 21 January 2008 11:52:01 Josh Luthman wrote:
What custom script is it?
On 1/21/08, Wayne <lists2006.wayne at gmail.com> wrote:
On Monday 21 January 2008 11:20:16 Josh Luthman wrote:
Sounds to me like that script isn't reporting. What custom script is it? Is it client or server?
server.
Cheers Wayne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
K, My script is working properly now. And everything is green except bbd and http. Apache is and has been running for ages. Any ideas what could be causing this?
Cheers Wayne
Can you copy/paste the text for the yellow/red page?
On 1/21/08, Wayne <lists2006.wayne at gmail.com> wrote:
K, My script is working properly now. And everything is green except bbd and http. Apache is and has been running for ages. Any ideas what could be causing this?
Cheers Wayne
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
On Monday 21 January 2008 19:08:13 Josh Luthman wrote:
Can you copy/paste the text for the yellow/red page?
This? I'm not sure what you mean so I've just copied this off the web if.
local bbd bbgen bbtest conn cpu disk files hobbitd http info memory msgs ports procs servicemon ssh trends ussdmon odin bbd:purple:4d16h29m bbgen:green:129d23h34m bbtest:green:129d23h34m conn:green:129d23h30m cpu:green:129d23h30m disk:green:98d21h06m files:clear:129d23h30m hobbitd:yellow:9h59m http:purple:4d16h29m info:green:192.168.0.2 memory:green:129d23h30m msgs:green:129d23h30m ports:clear:129d23h30m procs:green:7m servicemon:green:9m ssh:green:3d22h14m trends:green: ussdmon:green:3d22h14m ipcop - - - conn:green:36d00h46m - - - - - info:green:192.168.0.1 - - - - - - trends:green: - bruce - - - conn:green:6d12h37m cpu:green:6d12h39m disk:blue:11d19h25m files:clear:10d22h40m - - info:green:192.168.0.8 memory:green:6d12h39m msgs:green:6d12h39m ports:clear:10d22h40m procs:clear:10d22h40m - - trends:green: - stan - - - conn:green:129d23h30m cpu:green:8d07h13m disk:blue:44d05h27m files:clear:129d23h34m - - info:green:192.168.0.7 memory:green:13h03m msgs:green:129d23h34m ports:clear:129d23h34m procs:clear:129d23h34m - - trends:green: - arno-serv - - - conn:green:83d23h38m cpu:green:73d19h03m disk:green:73d19h03m files:clear:73d19h03m - - info:green:192.168.0.6 memory:green:73d19h03m msgs:green:73d18h58m ports:clear:73d19h03m procs:clear:73d19h03m - - trends:green: -
-- Regards Wayne Gemmell Flash Media Group Tel: 27 (0)12 430 7597 Cell: 27 (0)83 666 3342
On Monday 21 January 2008 19:08:13 Josh Luthman wrote:
Can you copy/paste the text for the yellow/red page?
This? I'm not sure what you mean so I've just copied this off the web if.
local bbd bbgen bbtest conn cpu disk files hobbitd http info memory msgs ports procs servicemon ssh trends ussdmon odin bbd:purple:4d16h29m bbgen:green:129d23h34m bbtest:green:129d23h34m conn:green:129d23h30m cpu:green:129d23h30m disk:green:98d21h06m files:clear:129d23h30m hobbitd:yellow:9h59m http:purple:4d16h29m info:green:192.168.0.2 memory:green:129d23h30m msgs:green:129d23h30m ports:clear:129d23h30m procs:green:7m servicemon:green:9m ssh:green:3d22h14m trends:green: ussdmon:green:3d22h14m ipcop - - - conn:green:36d00h46m - - - - - info:green:192.168.0.1 - - - - - - trends:green: - bruce - - - conn:green:6d12h37m cpu:green:6d12h39m disk:blue:11d19h25m files:clear:10d22h40m - - info:green:192.168.0.8 memory:green:6d12h39m msgs:green:6d12h39m ports:clear:10d22h40m procs:clear:10d22h40m - - trends:green: - stan - - - conn:green:129d23h30m cpu:green:8d07h13m disk:blue:44d05h27m files:clear:129d23h34m - - info:green:192.168.0.7 memory:green:13h03m msgs:green:129d23h34m ports:clear:129d23h34m procs:clear:129d23h34m - - trends:green: - arno-serv - - - conn:green:83d23h38m cpu:green:73d19h03m disk:green:73d19h03m files:clear:73d19h03m - - info:green:192.168.0.6 memory:green:73d19h03m msgs:green:73d18h58m ports:clear:73d19h03m procs:clear:73d19h03m - - trends:green: -
participants (2)
-
josh@imaginenetworksllc.com
-
lists2006.wayne@gmail.com