Mass editing hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Mass editing hosts

Post 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.
Last edited by cwscribner on Mon Aug 01, 2011 9:33 am, edited 1 time in total.
pzusa
Posts: 34
Joined: Fri Jun 24, 2011 9:54 am

Re: Mass editing hosts

Post by pzusa »

The simplest way would be to make an appropriate update in the nagiosql database (probably in tbl_lnkHostdependencyToHost_H table) :)

Michalux
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Mass editing hosts

Post 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 ; )
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Mass editing hosts

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Mass editing hosts

Post by agriffin »

There is currently no way to do this, but you can suggest it as a feature request on our bug tracker.
Locked