I'm not sure the best option for your but I suspect there are several ways to 
do this.
If you are talking about 20 or less service checks then your almost better off 
just using the Opsview interface IMHO, if you are talking about a lot more than 
there may be several ways to approach this..

The more dangerous way:
In my case I am pretty comfortable with databases so I would compare the old 
server and new server Opsview databases looking at OpsviewDB.plugins and 
OpsviewDB.servicechecks.  If the Opsview versions were the same I would either 
update or replace these tables.  But do backup the database first if you go 
this route :<)..


The WAY less dangerous way that might work?
You may be able to copy over the nagios config files and run an import utility. 
Opsview has docs for upgrading from nagios so you might want to check that out.

The complex way that may also work:
Opsview has a API's I've used to build automated host checks, I think you can 
create services through the API but that seems like a lot of work for a one 
time thing.

Obviously if you have added plugins to the libexec directory or anywhere else 
those have to exist on the new server as well.
I know in our case I have AS400 checks and ESX checks that have additional 
dependencies outside the standard nagios plugins.

Maybe someone else will chime in with less risky and easier to do ideas...

James Whittington

From: [email protected] 
[mailto:[email protected]] On Behalf Of Peter Plate
Sent: Monday, September 20, 2010 9:38 AM
To: Opsview Users
Subject: [opsview-users] Service check migration to new installed server.

Hello All,

We are in the process to migrate from one master server which monitors all to a 
distributed monitoring setup.
For this purpose we decided to install a newer server with Ubuntu 10 also 
Opsview is installed new. (old server is old hardware).

Now we need to micgrate the service checks on the new server. We can do this 
manually but that would be a tedious job.

Now my questions :

Is it possible to export only the service checks , and import then to the new 
system ?

If no export , can we copy the config file (which file is it ?) to the new 
system to have it picked up on Opsview restart ?



Eventually the new server will check about half of the hosts which are already 
on the old server , the other checks are done on slave servers.


Peter

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to