[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Re: centralized configuration - external scripts



Cayo de Moraes wrote:
nobody knows anything about it?

any help would be appreciated.



2009/11/18 Cayo de Moraes <camorae (at) googlemail.com <mailto:camorae (at) googlemail.com>>

    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