Xymon Mailing List Archive search

Repeat entries in bb-hosts

6 messages in this thread

list Mario Andre · Mon, 23 Jan 2006 16:34:39 -0300 ·
Hi Friends,

In my bb-hosts I group the hosts by networks and now I would like to create
another subpage to group ,for example, with all the database servers, but
maintaining them on the respectively networks page too.

How can I repeat entries in bb-hosts just to create the new page and the
hobbit ignore this?

Thanks in advance,

Mario.
list Henrik Størner · Mon, 23 Jan 2006 22:07:29 +0100 ·
quoted from Mario Andre
On Mon, Jan 23, 2006 at 04:34:39PM -0300, mario andre wrote:
In my bb-hosts I group the hosts by networks and now I would like to create
another subpage to group ,for example, with all the database servers, but
maintaining them on the respectively networks page too.

How can I repeat entries in bb-hosts just to create the new page and the
hobbit ignore this?
If you just want these hosts displayed on two (or more) pages, you
should have *one* place where you define them normally with all of the
various network tests you perform; and all other places you must have
them defined with

    0.0.0.0 host1.foo.com   # noconn

Hobbit will use the first (master) definition for all of the network
tests and other settings; in all of the other places it will
automatically copy the results and displays from the master definition.


Henrik
list Robert P. McGraw · Tue, 24 Jan 2006 08:34:11 -0500 ·
 

Has anyone rewritten the solaris temperature.sh and bb-prtdiag for hobbit? I
would like to get these going on and just did not want to redo work that has
already been done.

 
Thanks

 
Robert

 
Robert P. McGraw, Jr.

Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid

Purdue University
ROOM: MATH-807

Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX

XXX N. University Street
FAX: (XXX) XXX-XXXX

West Lafayette, IN XXXXX-XXXX
list Richard Deal · Tue, 24 Jan 2006 08:47:56 -0500 ·
I didn't have to modify bb-prtdiag at all to get it running under the
hobbit client.

You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.

I have these lines added to hobbitclient.cfg:

(might be some line modification by email but you get the idea)

#

#from prtdiag script

#

UNAME="/sbin/uname"

#PLATFORM_SPEC=`${UNAME} -i`

#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"

PRTDIAG_OPT="-v"

ZONENAME=/usr/bin/zonename

#Systems that don't support temperature checks

EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i

2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"

PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl

e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"

PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul

t Value|Fault LED|NO_FAULT|Power  Fault|Status        Fault|Fault
off"

LOM_COMMAND="/usr/sbin/lom"

LOM_OPT="-pfvt"

 
Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I
had to uncomment these two lines in bb-prtdiag:

PLATFORM_SPEC=`$UNAME -i`

PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"
quoted from Robert P. McGraw

 
From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid] 
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

 
Has anyone rewritten the solaris temperature.sh and bb-prtdiag for
hobbit? I would like to get these going on and just did not want to redo
work that has already been done.

 
Thanks

 
Robert

 
Robert P. McGraw, Jr.

Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid

Purdue University
ROOM: MATH-807

Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX

XXX N. University Street
FAX: (XXX) XXX-XXXX

West Lafayette, IN XXXXX-XXXX
list Jeff Newman · Tue, 24 Jan 2006 10:00:53 -0600 ·
I tried this, but I don't think my implementation was correct.

How I have it now is my bb-hosts has:

dispinclude bb-hosts.all
include bb-hosts.subs

That way I can see an "all" view, or the servers broken into categories.
I define each host in the bb-hosts.all and bb-hosts.subs

In the "subs" page, I tried setting all of the IP's to 0.0.0.0 and putting
#noconn
at the end, and shortly after, everything on both pages went purple, so
Im not sure if the way I am approaching it is wrong or what.

-Jeff
quoted from Henrik Størner


On 1/23/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Mon, Jan 23, 2006 at 04:34:39PM -0300, mario andre wrote:
In my bb-hosts I group the hosts by networks and now I would like to
create
another subpage to group ,for example, with all the database servers,
but
maintaining them on the respectively networks page too.

How can I repeat entries in bb-hosts just to create the new page and the
hobbit ignore this?
If you just want these hosts displayed on two (or more) pages, you
should have *one* place where you define them normally with all of the
various network tests you perform; and all other places you must have
them defined with

   0.0.0.0 host1.foo.com   # noconn

Hobbit will use the first (master) definition for all of the network
tests and other settings; in all of the other places it will
automatically copy the results and displays from the master definition.


Henrik

list Peter Welter · Tue, 24 Jan 2006 17:30:03 +0100 ·
The man-page states:

"dispinclude filename
    Acts like the "include" tag, but only on the BBDISPLAY server. Can
be used e.g. to put a group of hosts on multiple subpages, without
having to repeat the host definitions."

So you could set up your bb-hosts-file as follows for two (or more) views:
1 - SLA's  (fi. SLA_XXX and SLA_YYY) and
2 - System views (Solaris, Linux, Windows...).

Example bb-hosts-file:

title   Your Company

page    SLA   SLA
title   SLA - Your Company

subpage SLA_XXX  SLA_XXX
title   SLA_XXX: Unix - Solaris
include bb-hosts-solaris-SLA_XXX.txt
title   SLA_XXX: Unix - Linux
include bb-hosts-linux-SLA_XXX.txt

subpage SLA_XXX  SLA_YYY
title   SLA_YYY: Unix - Solaris
include bb-hosts-solaris-SLA_YYY.txt
title   SLA_YYY: Unix - Linux
include bb-hosts-linux-SLA_YYY.txt

[snip]

page    SYSTEM        System
title   Systems - Your Company

subpage SOLARIS        Solaris
title   Solaris-systems
dispinclude Include/bb-hosts-solaris-SLA_XXX.txt
dispinclude Include/bb-hosts-solaris-SLA_YYY.txt
...

subpage LINUX        Linux
title   Linux-systems
dispinclude Include/bb-hosts-linux-SLA_XXX.txt
dispinclude Include/bb-hosts-linux-SLA_YYY.txt
...
[snip]

Mind the include of dispinclude-setting when you start making the new
view. Although I'm not sure wether Henrik's previous suggestion is
compulsory, it works for us. Hope this helps.

Peter


2006/1/24, Jeff Newman <user-e96740e73ca8@xymon.invalid>:
quoted from Jeff Newman
I tried this, but I don't think my implementation was correct.

How I have it now is my bb-hosts has:

dispinclude bb-hosts.all
include bb-hosts.subs

That way I can see an "all" view, or the servers broken into categories.
I define each host in the bb-hosts.all and bb-hosts.subs

In the "subs" page, I tried setting all of the IP's to 0.0.0.0 and putting
#noconn
at the end, and shortly after, everything on both pages went purple, so
Im not sure if the way I am approaching it is wrong or what.

-Jeff


On 1/23/06, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Mon, Jan 23, 2006 at 04:34:39PM -0300, mario andre wrote:
In my bb-hosts I group the hosts by networks and now I would like to
create
another subpage to group ,for example, with all the database servers,
but
maintaining them on the respectively networks page too.

How can I repeat entries in bb-hosts just to create the new page and the
hobbit ignore this?
If you just want these hosts displayed on two (or more) pages, you
should have *one* place where you define them normally with all of the
various network tests you perform; and all other places you must have
them defined with

   0.0.0.0 host1.foo.com   # noconn

Hobbit will use the first (master) definition for all of the network
tests and other settings; in all of the other places it will
automatically copy the results and displays from the master definition.


Henrik