If your hostnames have a pattern, this may help:
UPDATE opsview.hosts SET monitored_by = 6 WHERE name LIKE 'PHX%'
(don't forget to replace 6 with the id for your slave)

This is not supported/recommended, so make sure that you either know what
you're doing or backup your opsview DB before doing this.

Rafael


On Mon, Feb 1, 2010 at 2:35 PM, Ryan Goldberg <[email protected]>wrote:

> Just wondering if there's anything more I need to do aside from updating
> the "monitored_by" in the "hosts" table to the correct value in order to
> move them around.  I have to update about 1000 hosts, and doing it by hand,
> hmm, painful...
>
> Ryan
> _______________________________________________
> Opsview-users mailing list
> [email protected]
> http://lists.opsview.org/lists/listinfo/opsview-users
>
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to