Xymon Mailing List Archive search

centralized configuration - external scripts

12 messages in this thread

list Cayo de Moraes · Wed, 18 Nov 2009 08:10:00 +0100 ·
Hi guys,

just like we use the file hobbit-clients.cfg to manage DISK, CPU, PROCS etc.
for each client, we would like to have a centralized configuration for the
external scripts.

So far I tested two things:

1)  Server-side check:
bb-hosts entry (for the external scripts), additional code entry in the
external scripts (for bbhostgrep), etc.

Problem: this seems to work only with "Network checks" which will be done
from Server-side to check the clients, like advanced ftp/ping/ssh script
etc. It doesnt work for scripts, wich have to run on the clients, like mysql
checks.


2) ONHOST:
the entry ONHOST in the hobbitlaunch.cfg.

Problem: this is not working for me... i tought with this entry Hobbit would
be able to issue an order to the client and then execute the command in the
client, but when looking into the logfiles, i see that Hobbit have to find
the external script on the Hobbit-Server (i think its the same result as in
Problem 1). I tought it would work as a "bb-bbextab"... but the MAN Pages
says it has to be configured on the server....


So guys, do i have another way to manage this external scripts (which have
to be run on the clients) in the Hobbit-Server?

TIA,
Cayo
list Cayo de Moraes · Thu, 19 Nov 2009 10:42:49 +0100 ·
nobody knows anything about it?

any help would be appreciated.


2009/11/18 Cayo de Moraes <user-92aec3b3c467@xymon.invalid>
quoted from Cayo de Moraes
Hi guys,

just like we use the file hobbit-clients.cfg to manage DISK, CPU, PROCS
etc. for each client, we would like to have a centralized configuration for
the external scripts.

So far I tested two things:

1)  Server-side check:
bb-hosts entry (for the external scripts), additional code entry in the
external scripts (for bbhostgrep), etc.

Problem: this seems to work only with "Network checks" which will be done
from Server-side to check the clients, like advanced ftp/ping/ssh script
etc. It doesnt work for scripts, wich have to run on the clients, like mysql
checks.


2) ONHOST:
the entry ONHOST in the hobbitlaunch.cfg.

Problem: this is not working for me... i tought with this entry Hobbit
would be able to issue an order to the client and then execute the command
in the client, but when looking into the logfiles, i see that Hobbit have to
find the external script on the Hobbit-Server (i think its the same result
as in Problem 1). I tought it would work as a "bb-bbextab"... but the MAN
Pages says it has to be configured on the server....


So guys, do i have another way to manage this external scripts (which have
to be run on the clients) in the Hobbit-Server?

TIA,
Cayo
list Nikesh Maharaj · Thu, 19 Nov 2009 14:58:35 +0200 ·
Good afternoon all, 

 
I am currently running BackupExec v12.5 . is there any way I can
amalgamate the "successful emails" into Xymon?

 
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
list Dominique Frise · Thu, 19 Nov 2009 15:02:08 +0100 ·
quoted from Cayo de Moraes
Cayo de Moraes wrote:
nobody knows anything about it?

any help would be appreciated.


2009/11/18 Cayo de Moraes <user-92aec3b3c467@xymon.invalid 

    Hi guys,

    just like we use the file hobbit-clients.cfg to manage DISK, CPU,
    PROCS etc. for each client, we would like to have a centralized
    configuration for the external scripts.

    So far I tested two things:

    1)  Server-side check:
    bb-hosts entry (for the external scripts), additional code entry in
    the external scripts (for bbhostgrep), etc.

    Problem: this seems to work only with "Network checks" which will be
    done from Server-side to check the clients, like advanced
    ftp/ping/ssh script etc. It doesnt work for scripts, wich have to
    run on the clients, like mysql checks.


    2) ONHOST:
    the entry ONHOST in the hobbitlaunch.cfg.

    Problem: this is not working for me... i tought with this entry
    Hobbit would be able to issue an order to the client and then
    execute the command in the client, but when looking into the
    logfiles, i see that Hobbit have to find the external script on the
    Hobbit-Server (i think its the same result as in Problem 1). I
    tought it would work as a "bb-bbextab"... but the MAN Pages says it
    has to be configured on the server....

I also feel confused...
We use ONHOST but in clientlaunch.cfg (which is centrally managed).
Don't know why the ONHOST keyword is described in hobbitlaunch.cfg.


Example:

[localtest]
         ONHOST hostname1|hostname2|hostname3
         ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
         CMD $HOBBITCLIENTHOME/ext/localtest.sh
         LOGFILE $HOBBITCLIENTHOME/logs/localtest.log
         INTERVAL 5m

Dominique
list Asif Iqbal · Thu, 19 Nov 2009 09:03:19 -0500 ·
quoted from Nikesh Maharaj
On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <user-000aaf9a8455@xymon.invalid> wrote:
 Good afternoon all,


I am currently running BackupExec v12.5 . is there any way I can amalgamate
the “successful emails” into Xymon?

http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter

--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>;, and is
believed to be clean.
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Olivier Audry · Thu, 19 Nov 2009 14:12:50 +0000 (UTC) ·
hello

perhaps check this

http://hobbitmon.sourceforge.net/docs/man1/clientupdate.1.html

Please report your experience. I'll planned this for my 8k hosts one day I have time.

Regards

oau

----- Mail Original -----
quoted from Cayo de Moraes
De: "Cayo de Moraes" <user-92aec3b3c467@xymon.invalid>
À: user-ae9b8668bcde@xymon.invalid
Envoyé: Mercredi 18 Novembre 2009 08h10:00 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: [hobbit] centralized configuration - external scripts

Hi guys, 
just like we use the file hobbit-clients.cfg to manage DISK, CPU, PROCS etc. for each client, we would like to have a centralized configuration for the external scripts. 
So far I tested two things: 
1) Server-side check: bb-hosts entry (for the external scripts), additional code entry in the external scripts (for bbhostgrep), etc. 
Problem: this seems to work only with "Network checks" which will be done from Server-side to check the clients, like advanced ftp/ping/ssh script etc. It doesnt work for scripts, wich have to run on the clients, like mysql checks. 

2) ONHOST: the entry ONHOST in the hobbitlaunch.cfg. 
Problem: this is not working for me... i tought with this entry Hobbit would be able to issue an order to the client and then execute the command in the client, but when looking into the logfiles, i see that Hobbit have to find the external script on the Hobbit-Server (i think its the same result as in Problem 1). I tought it would work as a "bb-bbextab"... but the MAN Pages says it has to be configured on the server.... 


So guys, do i have another way to manage this external scripts (which have to be run on the clients) in the Hobbit-Server? 
TIA, Cayo
list Josh Luthman · Thu, 19 Nov 2009 09:20:17 -0500 ·
I didn't get a list, just empty search results.
quoted from Asif Iqbal

On 11/19/09, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <user-000aaf9a8455@xymon.invalid> wrote:
 Good afternoon all,


I am currently running BackupExec v12.5 . is there any way I can
amalgamate
the “successful emails” into Xymon?

http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter

--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>;, and is
believed to be clean.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-- 

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

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein
list Alan Sparks · Thu, 19 Nov 2009 19:11:43 -0700 ·
quoted from Cayo de Moraes
Cayo de Moraes wrote:
nobody knows anything about it?

any help would be appreciated.


2009/11/18 Cayo de Moraes <user-92aec3b3c467@xymon.invalid

    Hi guys,

    just like we use the file hobbit-clients.cfg to manage DISK, CPU,
    PROCS etc. for each client, we would like to have a centralized
    configuration for the external scripts.

    So far I tested two things:

    1)  Server-side check:
    bb-hosts entry (for the external scripts), additional code entry
    in the external scripts (for bbhostgrep), etc.

    Problem: this seems to work only with "Network checks" which will
    be done from Server-side to check the clients, like advanced
    ftp/ping/ssh script etc. It doesnt work for scripts, wich have to
    run on the clients, like mysql checks.


    2) ONHOST:
    the entry ONHOST in the hobbitlaunch.cfg.

    Problem: this is not working for me... i tought with this entry
    Hobbit would be able to issue an order to the client and then
    execute the command in the client, but when looking into the
    logfiles, i see that Hobbit have to find the external script on
    the Hobbit-Server (i think its the same result as in Problem 1). I
    tought it would work as a "bb-bbextab"... but the MAN Pages says
    it has to be configured on the server....


    So guys, do i have another way to manage this external scripts
    (which have to be run on the clients) in the Hobbit-Server?

    TIA,
    Cayo

If you want to configure script running on the clients (remotely) from
the Hobbit server, I think you have two options.  Both will require a
little bit of coding in your client side.

1) You can arrange (maybe write a small script to do it periodically) to
run something like:
$BB $BBDISP "config myconfigfile"
(see the man page for the "bb" command).  The idea is to add custom
configurations to this "myconfigfile" in your server/etc directory, and
use this command on the clients to update a local copy onto the client. 
You script can then parse this as desired.

2) You can use the client-local.cfg on the server to send out custom
configurations, as well.  For a particular hostname or class entry in
there, you can add a line with some parameters... say something like:

[myhost]
log:/var/log/messages:10240
myconfig:something=1280 somethingelse=foo

Note that the client will pull the first matching block from
client-local.cfg back when it contacts the server to send test results. 
The client-local block will get saved on your client in a file under
$BBTMP, in a file named like "logfetch.hostname.cfg."
You could use this mechanism to get configurations to your client, by
looking for your lines in this file (starting with "myconfig:"), and
parsing it for your configurations.

Hope this gives you some starting ideas.
-Alan
list Henrik Størner · Mon, 23 Nov 2009 10:10:28 +0000 (UTC) ·
quoted from Cayo de Moraes
In <user-b6e0ccb12252@xymon.invalid> Cayo de Moraes <user-92aec3b3c467@xymon.invalid> writes:
etc. for each client, we would like to have a centralized configuration for
the external scripts.
nobody knows anything about it?
Couple of ways to do this.

1) You can use the 
      $BB $BBDISP "config myconfigfile" >myconfigfile
   to download the configuration file from the Xymon server.

2) You can add the configuration to the "client-local.cfg" file
   on the Xymon server, and then extract your particular entries
   from the ~xymon/client/tmp/logfetch.$MACHINEDOTS.cfg file
   This probably works best if your configuration is one or two lines.


Regards,
Henrik
list Henrik Størner · Mon, 23 Nov 2009 10:12:10 +0000 (UTC) ·
quoted from Dominique Frise
In <user-b84c7021cdcd@xymon.invalid> Dominique Frise <user-78ab6673b600@xymon.invalid> writes:
    Problem: this is not working for me... i tought with this entry
    Hobbit would be able to issue an order to the client and then
    execute the command in the client, but when looking into the
    logfiles, i see that Hobbit have to find the external script on the
    Hobbit-Server (i think its the same result as in Problem 1). I
    tought it would work as a "bb-bbextab"... but the MAN Pages says it
    has to be configured on the server....

I also feel confused...
We use ONHOST but in clientlaunch.cfg (which is centrally managed).
Don't know why the ONHOST keyword is described in hobbitlaunch.cfg.

ONHOST is intended for people who use the same configuration file on
all clients, but don't want to run the same add-ons on all of the
clients. It doesn't do anything to distribute these files to the
clients.


Regards,
Henrik
list Matthew Moldvan · Wed, 16 Dec 2009 16:24:24 -0500 ·
If you're using Sendmail, you can setup an alias to receive those messages and pipe them to a shell script.  Based on your parsing of the mail message in that shell script, you can send a subsequent status color to your Xymon server.  Sounds relatively easy ...

Matt Moldvan.

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
XXXXX Mound Rd.
Sterling Heights, MI.  48310
Desk: (XXX) XXX-XXXX
Oracle IM: moldvanm

This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.


Re: [hobbit] Backup exec

Josh Luthman to:
hobbit
11/19/2009 09:25 AM

Please respond to hobbit
quoted from Josh Luthman


I didn't get a list, just empty search results.

On 11/19/09, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <user-000aaf9a8455@xymon.invalid> 
wrote:
 Good afternoon all,


I am currently running BackupExec v12.5 . is there any way I can
amalgamate
the ?successful emails? into Xymon?

http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>;, and 
is
believed to be clean.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-- 
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein
list Ralph Mitchell · Wed, 16 Dec 2009 22:08:33 -0500 ·
I've actually done that, though I no longer have access to the system where
it sits...  You're right, it is easy.  Set up an alias in /etc/aliases:

   mail2xymon: "|/usr/local/bin/mail2xymon"

then run "newaliases" to 'compile' the db file for sendmail.  The script can
be any language you're comfortable with, including Cobol or Fortran if
that's what floats your boat.  All you need to know is that when it starts
up, the email appears on <stdin>.  You get headers first, in no particular
order, probably including "From:", "To:", "Subject:" and "Date:".  For
example:

     Date: Thu, 19 Nov 2009 14:58:35 +0200
     From: "Nikesh Maharaj" <user-000aaf9a8455@xymon.invalid>
     To: <user-ae9b8668bcde@xymon.invalid>
     Subject: [hobbit] Backup exec


A blank line separates the headers from the body of the email, which can
contain just about any form of text.

Ralph Mitchell
quoted from Matthew Moldvan


On Wed, Dec 16, 2009 at 4:24 PM, Matthew Moldvan <user-ffaad6c7b6c3@xymon.invalid> wrote:
If you're using Sendmail, you can setup an alias to receive those messages
and pipe them to a shell script.  Based on your parsing of the mail message
in that shell script, you can send a subsequent status color to your Xymon
server.  Sounds relatively easy ...

Matt Moldvan.

Unix System Administrator
Computer Science Corporation
General Dynamics Land Systems
XXXXX Mound Rd.
Sterling Heights, MI.  48310
Desk: (XXX) XXX-XXXX
Oracle IM: moldvanm

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such
purpose.


   *Re: [hobbit] Backup exec*
 *Josh Luthman * to: hobbit
11/19/2009 09:25 AM

 *Please respond to hobbit*


I didn't get a list, just empty search results.

On 11/19/09, Asif Iqbal <user-6f4b51ac2a40@xymon.invalid> wrote:
On Thu, Nov 19, 2009 at 7:58 AM, Nikesh Maharaj <user-000aaf9a8455@xymon.invalid>
wrote:
 Good afternoon all,


I am currently running BackupExec v12.5 . is there any way I can
amalgamate
the “successful emails” into Xymon?

http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter
--
This message has been scanned for viruses and

dangerous content by *MailScanner* <<http://www.deadcat.net/search.php?menuosfamily=0&menulicense=0&menusection=17&filtermdate=&filterdescription=backup+exec&menuNoPerPage=20&action=search&Filter=Filter>http://www.mailscanner.info/>;,
quoted from Matthew Moldvan
and is
believed to be clean.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"The secret to creativity is knowing how to hide your sources."
--- Albert Einstein


 <http://www.mailscanner.info/>;