[Xymon] how to merge allevent files ?
Dugan, Darin D [EIT]
dddugan at iastate.edu
Fri Oct 5 14:46:14 CEST 2012
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....
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
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,
> 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
> 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
> 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.
> Mobile: +371 26517848
> Fax: +371 66066346
> On 04.10.2012 13:00, xymon-request at xymon.com wrote:
>> Date: Thu, 04 Oct 2012 09:47:43 +0200
>> From: Marco Avvisano<marco.avvisano at regione.toscana.it>
>> To:xymon at xymon.com
>> Subject: [Xymon] how to merge allevent files ?
>> Message-ID:<506D3F1F.2090005 at regione.toscana.it>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> 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?
> Xymon mailing list
> Xymon at xymon.com
Xymon mailing list
Xymon at xymon.com
More information about the Xymon