Xymon Mailing List Archive search

Event History

7 messages in this thread

list Ken Connell · Wed, 21 Dec 2011 21:54:10 +0000 ·
I built a new Xymon server this week with v4.3.7 and all looks good. 

Can I copy event history from my current Xymon/Hobbit v4.2.2 server to the new ?

I did try copying files/directories over from /xymon/data/<hist>&<histlogs>, but that didn't seem to work...


Ken Connell
Intermediate Network Engineer
Computer & Communication Services
Ryerson University
XXX Victoria St
RM AB50
Toronto, Ont
M5B 2K3
XXX-XXX-XXXX x6709
list Henrik Størner · Thu, 22 Dec 2011 09:39:38 +0100 ·
quoted from Ken Connell
On 21-12-2011 22:54, user-7cb0f5662626@xymon.invalid wrote:
I built a new Xymon server this week with v4.3.7 and all looks good.

Can I copy event history from my current Xymon/Hobbit v4.2.2 server to the new ?

I did try copying files/directories over from /xymon/data/<hist>&<histlogs>, but that didn't seem to work...
It should - that is where the history-logs are being stored, and the format hasn't changed. The "hist" directory is the most important one; the "histlogs" are only used when you drill down into an old status.

Check file permissions ... and remember to copy the huge "allevents" logfile.

The old graph data is stored in the "rrd" directory, you probably want to copy that over as well. If the old and the new system has different CPU architecture (notably, if you are moving from a 32-bit CPU to 64-bit CPU), you will have to convert them with rrdtool, though.


Regards,
Henrik
list Marco Avvisano · Thu, 04 Oct 2012 09:47:43 +0200 ·
Hi,
we are migrating from two xymon server to only one .
Every server monitors different servers, routers etc.
The problem i think is: how to merge the allevent files ?
Someone have encountered the same problem?

Marco
list Andrey Chervonets · Thu, 04 Oct 2012 14:26:59 +0300 ·
Should not be a big problem.

The procedure is similar to version upgrade, when you install it into new home (take a look my post  18.04.2012)
For merge
1. make a list of all files you need to copy to new server
     a) jusr files that belong to exact server and metrics like rra, logs,....
     b) entries in configuration files

2. Review all steps to add new host and metric at new server

3. Prepare new cfg:
     3.1 prepare copy of existing cfg files at new mon.server (cp ./etc  ./etc_merged)
     3.2 add 1.b entries into config files
     3.3. if plan migrate one by one - mark with comments records in hosts.cfg file

4. Copy history files
4.1. Automate (shell script + test it!!)  1.a files copying to new server
4.2. Test with one
4.3. and copy them all or one by one (I mean files for every monitored server or/and  metric)

5. Update cfg. files at moniting server with prepared copy (and uncomment entries in hosts.cfg file

6. Update monitoring server address at each client server with xymon client to send data to new server (or set to send to both for some time)

7. Disable servers monitoring at old server

8. Check all OK for some time

9. Update monitoring server address at each client server with xymon client to send data to new monitoring server only (if used to send to both for some time)

10. archive (tar + gz)  history and cfg files at old monitoring server and mark in calendar when to remove them at all.


Best regards,

Andrey Chervonets
CoMinder Ltd.
http://www.cominder.eu/
Mobile: +XXX XXXXXXXX
Fax: +XXX XXXXXXXX

On 04.10.2012 13:00, xymon-request at xymon.com wrote:
Date: Thu, 04 Oct 2012 09:47:43 +0200
From: Marco Avvisano<user-e09c0f3f8c70@xymon.invalid>
To:xymon at xymon.com
Subject: [Xymon] how to merge allevent files ?
Message-ID:<user-3c1aed66f2e1@xymon.invalid>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
quoted from Marco Avvisano

Hi,
we are migrating from two xymon server to only one .
Every server monitors different servers, routers etc.
The problem i think is: how to merge the allevent files ?
Someone have encountered the same problem?

Marco
list Marco Avvisano · Fri, 05 Oct 2012 11:35:16 +0200 ·
Thanks Andrey for your answer,
but my situation is this:
i have 2 servers, each one monitors different things, and i have to migrate to a new
server that will monitor all .
So my question is, how to merge the two files ./hist/allevents? .

Probabily i only need to join and sort them using the column starttime
but i I'm not sure that this is enough

Marco
quoted from Andrey Chervonets


Il 04/10/2012 13.26, Andrey Chervonets ha scritto:
Should not be a big problem.

The procedure is similar to version upgrade, when you install it into new home (take a look my post  18.04.2012)
For merge
1. make a list of all files you need to copy to new server
    a) jusr files that belong to exact server and metrics like rra, logs,....
    b) entries in configuration files

2. Review all steps to add new host and metric at new server

3. Prepare new cfg:
    3.1 prepare copy of existing cfg files at new mon.server (cp ./etc  ./etc_merged)
    3.2 add 1.b entries into config files
    3.3. if plan migrate one by one - mark with comments records in hosts.cfg file

4. Copy history files
4.1. Automate (shell script + test it!!)  1.a files copying to new server
4.2. Test with one
4.3. and copy them all or one by one (I mean files for every monitored server or/and  metric)

5. Update cfg. files at moniting server with prepared copy (and uncomment entries in hosts.cfg file

6. Update monitoring server address at each client server with xymon client to send data to new server (or set to send to both for some time)

7. Disable servers monitoring at old server

8. Check all OK for some time

9. Update monitoring server address at each client server with xymon client to send data to new monitoring server only (if used to send to both for some time)

10. archive (tar + gz)  history and cfg files at old monitoring server and mark in calendar when to remove them at all.


Best regards,

Andrey Chervonets
CoMinder Ltd.
http://www.cominder.eu/
Mobile: +XXX XXXXXXXX
Fax: +XXX XXXXXXXX

On 04.10.2012 13:00, xymon-request at xymon.com wrote:
Date: Thu, 04 Oct 2012 09:47:43 +0200
From: Marco Avvisano<user-e09c0f3f8c70@xymon.invalid>
To:xymon at xymon.com
Subject: [Xymon] how to merge allevent files ?
Message-ID:<user-3c1aed66f2e1@xymon.invalid>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,
we are migrating from two xymon server to only one .
Every server monitors different servers, routers etc.
The problem i think is: how to merge the allevent files ?
Someone have encountered the same problem?

Marco
list Andrey Chervonets · Fri, 05 Oct 2012 13:32:21 +0300 ·
I really do not know exactly what this file is used for, may be Henrik Stoerner  can explain more.

But I suppose this file is generated by Xymon and track last events, status and/ or time stamps.
So it will be updated by xymon server.

Try with one host per my scenario - check all Ok and then make decision was it OK or no.
quoted from Marco Avvisano


On 05.10.2012 12:35, Marco Avvisano wrote:
Thanks Andrey for your answer,
but my situation is this:
i have 2 servers, each one monitors different things, and i have to migrate to a new
server that will monitor all .
So my question is, how to merge the two files ./hist/allevents? .

Probabily i only need to join and sort them using the column starttime
but i I'm not sure that this is enough

Marco


Il 04/10/2012 13.26, Andrey Chervonets ha scritto:
Should not be a big problem.

The procedure is similar to version upgrade, when you install it into new home (take a look my post  18.04.2012)
For merge ...
list Darin D [eit] Dugan · Fri, 5 Oct 2012 12:46:14 +0000 ·
I think merging and sorting is sufficient. Something along the lines of:

sort -n -k 3,4 allevents.server1 allevents.server2 > allevents.merged

You will likely end up with some lines slightly out of their original order -- if their two time strings are identical -- but I don't really see this is a problem. Testing this would be best of course....

Cheers.
quoted from Marco Avvisano

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Marco Avvisano
Sent: Friday, October 5, 2012 4:35 AM
To: Andrey Chervonets
Cc: xymon at xymon.com
Subject: Re: [Xymon] how to merge allevent files ?

Thanks Andrey for your answer,
but my situation is this:
i have 2 servers, each one monitors different things, and i have to migrate to a new server that will monitor all .
So my question is, how to merge the two files ./hist/allevents? .

Probabily i only need to join and sort them using the column starttime but i I'm not sure that this is enough

Marco


Il 04/10/2012 13.26, Andrey Chervonets ha scritto:
Should not be a big problem.

The procedure is similar to version upgrade, when you install it into new home (take a look my post  18.04.2012) For merge 1. make a list of all files you need to copy to new server
    a) jusr files that belong to exact server and metrics like rra, logs,....
    b) entries in configuration files

2. Review all steps to add new host and metric at new server

3. Prepare new cfg:
    3.1 prepare copy of existing cfg files at new mon.server (cp ./etc  ./etc_merged)
    3.2 add 1.b entries into config files
    3.3. if plan migrate one by one - mark with comments records in hosts.cfg file

4. Copy history files
4.1. Automate (shell script + test it!!)  1.a files copying to new server 4.2. Test with one 4.3. and copy them all or one by one (I mean files for every monitored server or/and  metric)

5. Update cfg. files at moniting server with prepared copy (and uncomment entries in hosts.cfg file

6. Update monitoring server address at each client server with xymon client to send data to new server (or set to send to both for some time)

7. Disable servers monitoring at old server

8. Check all OK for some time

9. Update monitoring server address at each client server with xymon client to send data to new monitoring server only (if used to send to both for some time)

10. archive (tar + gz)  history and cfg files at old monitoring server and mark in calendar when to remove them at all.


Best regards,

Andrey Chervonets
CoMinder Ltd.
http://www.cominder.eu/
Mobile: +XXX XXXXXXXX
Fax: +XXX XXXXXXXX

On 04.10.2012 13:00, xymon-request at xymon.com wrote:
Date: Thu, 04 Oct 2012 09:47:43 +0200
From: Marco Avvisano<user-e09c0f3f8c70@xymon.invalid>
To:xymon at xymon.com
Subject: [Xymon] how to merge allevent files ?
Message-ID:<user-3c1aed66f2e1@xymon.invalid>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,
we are migrating from two xymon server to only one .
Every server monitors different servers, routers etc.
The problem i think is: how to merge the allevent files ?
Someone have encountered the same problem?

Marco