Page 1 of 1

Mass editing hosts

Posted: Thu Jul 28, 2011 9:41 pm
by cwscribner
Hi all.

Is there a way to mass edit hosts? Specifically, is there a way to change a setting (like parent host) to several hundred devices at once?

Background: I use the auto-discovery feature to add several hundred devices and accidentally gave them the wrong parent host. I managed to rectify this by change the parent hosts data but that seems really dangerous...and I'm sure there would be other things I would use an "en masse" feature on.

Re: Mass editing hosts

Posted: Fri Jul 29, 2011 12:34 am
by pzusa
The simplest way would be to make an appropriate update in the nagiosql database (probably in tbl_lnkHostdependencyToHost_H table) :)

Michalux

Re: Mass editing hosts

Posted: Fri Jul 29, 2011 9:36 am
by mguthrie
Actually I think the table needed here is tbl_lnkHostToHost. However, doing it this way is a "do so at your own risk" type of procedure ; )

Re: Mass editing hosts

Posted: Fri Jul 29, 2011 9:27 pm
by cwscribner
I agree with mguthrie. I've been working with MySQL/PGSQL for several years but I'm not really up for directly modifying the guts of Nagios. Is this a feature that can be requested?

Re: Mass editing hosts

Posted: Mon Aug 01, 2011 9:28 am
by agriffin
There is currently no way to do this, but you can suggest it as a feature request on our bug tracker.