Xymon Mailing List Archive search

bbd purple

14 messages in this thread

list Wayne Gemmell · Mon, 21 Jan 2008 10:26:14 +0200 ·
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
list Wayne Gemmell · Mon, 21 Jan 2008 11:16:46 +0200 ·
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
list Josh Luthman · Mon, 21 Jan 2008 04:20:16 -0500 ·
Sounds to me like that script isn't reporting.  What custom script is it?
Is it client or server?
quoted from Wayne Gemmell

On 1/21/08, Wayne <user-dbaa221d03d2@xymon.invalid> 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

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Wayne Gemmell · Mon, 21 Jan 2008 11:41:06 +0200 ·
quoted from Josh Luthman
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
list Josh Luthman · Mon, 21 Jan 2008 04:52:01 -0500 ·
What custom script is it?
quoted from Wayne Gemmell

On 1/21/08, Wayne <user-dbaa221d03d2@xymon.invalid> 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

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Wayne Gemmell · Mon, 21 Jan 2008 11:59:50 +0200 ·
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
quoted from Josh Luthman


On Monday 21 January 2008 11:52:01 Josh Luthman wrote:
What custom script is it?

On 1/21/08, Wayne <user-dbaa221d03d2@xymon.invalid> 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

-- 

Regards
Wayne Gemmell
Flash Media Group
Tel:	XX (X)XX XXX XXXX
Cell:	XX (X)XX XXX XXXX
list Wayne Gemmell · Mon, 21 Jan 2008 12:01:54 +0200 ·
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 <user-dbaa221d03d2@xymon.invalid> 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

list Wayne Gemmell · Mon, 21 Jan 2008 15:48:23 +0200 ·
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
list Josh Luthman · Mon, 21 Jan 2008 12:08:13 -0500 ·
Can you copy/paste the text for the yellow/red page?
quoted from Wayne Gemmell

On 1/21/08, Wayne <user-dbaa221d03d2@xymon.invalid> 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

-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Wayne Gemmell · Tue, 22 Jan 2008 10:08:14 +0200 ·
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: 	-
quoted from Wayne Gemmell


-- 
Regards
Wayne Gemmell
Flash Media Group
Tel:	XX (X)XX XXX XXXX
Cell:	XX (X)XX XXX XXXX
list Wayne Gemmell · Tue, 22 Jan 2008 10:12:30 +0200 ·
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: 	-
list Wayne Gemmell · Thu, 7 Feb 2008 11:16:48 +0200 ·
Hi all

I've decided to post this again without any "red herrings".

bbd is purple and I have no idea what sent it that way. Any ideas?
-- 
Cheers
Wayne
list Buchan Milne · Thu, 7 Feb 2008 13:33:18 +0200 ·
quoted from Wayne Gemmell
On Thursday 07 February 2008 11:16:48 Wayne Gemmell wrote:
Hi all

I've decided to post this again without any "red herrings".

bbd is purple and I have no idea what sent it that way. Any ideas?
What is in the content of the last message? Mine (green) has something like 
this:

Service bbd on xxx.yyy.com is OK (up)

The entry in bb-hosts for xxx.yyy.com has bbd in the test list. Has your 
bb-hosts got bd listed for the host in question?
list Wayne Gemmell · Thu, 7 Feb 2008 14:03:49 +0200 ·
quoted from Buchan Milne
On Thursday 07 February 2008 13:33:18 Buchan Milne wrote:
On Thursday 07 February 2008 11:16:48 Wayne Gemmell wrote:
Hi all

I've decided to post this again without any "red herrings".

bbd is purple and I have no idea what sent it that way. Any ideas?
What is in the content of the last message? Mine (green) has something like
this:

Service bbd on xxx.yyy.com is OK (up)
Thanks, bbd wasn't in my bb-hosts.


-- 
Cheers
Wayne