Xymon Mailing List Archive search

Hobbit directory structure

list Josh Luthman
Wed, 19 Dec 2007 11:33:50 -0500
Message-Id: <user-52535a6c7b20@xymon.invalid>

tar -czf hobbit-bkp-121907.tar.gz /home/hobbit
yum -y remove hobbit
rm -rf /home/hobbit/*
wget http://somethinghere.com/hobbit-4.2.0.tar.gz
tar -xzf hobbit-4*
./configure && make
#As root..
make install
#make sure hobbit-bkp-121907.tar.gz is in ~hobbit
tar -xzf hobbit-bkp-121907.tar.gz
#Done =)

On 12/19/07, Frank M. Ramaekers <user-dbd5c100cfe9@xymon.invalid> wrote:
 That's fine but I still need to incorporate the old settings and data
into the new setup.


Thanks,


Frank M. Ramaekers Jr.


Systems Programmer

MCP, MCP+I, MCSE & RHCE

American Income Life Insurance Co.

Phone: (XXX)XXX-XXXX

XXXX Wooded Acres Dr.

Fax: (XXX)XXX-XXXX

Waco, Texas  76701


*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Wednesday, December 19, 2007 9:59 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Hobbit directory structure


Instead of trying to inspect everything one by one I strongly suggest just
blowing everything away (backing up your ~hobbit dir for recovery later) and
compiling it.

That's just my opinion =)

On 12/19/07, *Frank M. Ramaekers* <user-dbd5c100cfe9@xymon.invalid> wrote:

I just installed Hobbit using yum on a new system, unfortunately I
already had my /home/hobbit structure from the previous system (which
crashed).  Well, it appears that yum installed Hobbit quite differently
than I had originally installed.

--------------------- Previously ---------------------------
/home/hobbit/cgi-bin
            /cgi-secure
            /client
                   /bin
                   /etc
                   /ext
                   /logs
                   /tmp
            /data
                 /acks
                 /data
                 /disabled
                 /hist
                 /histlogs/(various monitored systems)
                 /hostdata
                 /logs
                 /rrd/(various monitored systems)
            /server
                   /bin
                   /download
                   /etc
                   /ext
                   /tmp
                   /web
                   /www
                       /gifs
                       /help
                       /html
                       /menu
                       /notes
                       /rep
                       /Servers/(various sub pages)
                       /snap
                       /wml
            /source
                   /snapshot
/var/log/hobbit
---------------------- Now -------------------------
/etc/hobbit
/usr/libexec/hobbit/cgi-bin
                   /cgi-secure
                   /server
                          /bin
                          /download
                          /ext
/var/lib/hobbit
               /acks
               /data
               /disabled
               /hist
               /histlogs
               /hostdata
               /logs
               /rrd
               /tmp
               /www
                   /gifs
                   /help
                   /html
                   /menu
                   /notes
                   /rep
                   /snap
                   /wml
/var/log/hobbit
It appears that I need to:

#----Copy data
cp -ar /home/hobbit/data/hist/*        /var/lib/hobbit/data/hist
cp -ar /home/hobbit/data/histlogs/*    /var/lib/hobbit/data/histlogs
cp -ar /home/hobbit/data/rrd/*         /var/lib/hobbit/data/rrd
#----Copy configuration
cp -a /home/hobbit/server/etc/bb-hosts /etc/hobbit
cp -a /home/hobbit/server/etc/hobbit-alerts.cfg /etc/hobbit
cp -a /home/hobbit/server/etc/hobbitlaunch.cfg  /etc/hobbit
cp -a /home/hobbit/server/etc/hobbitpasswd      /etc/hobbit
#--->Modify existing instead!
#--->cp -a /home/hobbit/server/etc/hobbitserver.cfg  /etc/hobbit

Still run under user hobbit?  If so, what directory structure is needed?
Anything else I might be missing?


Frank M. Ramaekers Jr.
Systems Programmer                   MCP, MCP+I, MCSE & RHCE
American Income Life Insurance Co.   Phone: (XXX)XXX-XXXX
XXXX Wooded Acres Dr.                Fax:   (XXX)XXX-XXXX
Waco, Texas  76701


This message contains information which is privileged and confidential and
is solely for the use of the
intended recipient. If you are not the intended recipient, be aware that
any review, disclosure,
copying, distribution, or use of the contents of this message is strictly
prohibited. If you have
received this in error, please destroy it immediately and notify us at user-2f780dbd82da@xymon.invalid
.


--
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
 _____________________________________________________ This message
contains information which is privileged and confidential and is solely for
the use of the intended recipient. If you are not the intended recipient, be
aware that any review, disclosure, copying, distribution, or use of the
contents of this message is strictly prohibited. If you have received this
in error, please destroy it immediately and notify us at
user-2f780dbd82da@xymon.invalid.
-- 
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