Import hostgroups.cfg

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Import hostgroups.cfg

Post by asmgiadmin »

I've manually updated membership of my hostgroups.cfg file and would like to import.

My previous attempts in placing hostgroups.cfg in /usr/local/nagios/etc/import have failed.

Please advise, how can I import my own hostgroups.cfg?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Import hostgroups.cfg

Post by abrist »

The import utility is intended for core configs that have been converted by the import prep tool. If you are just editing your hostgroups, best practice is to do it in the interface. If you wish to do it through the import tool, you should use the following documents for the proper procedures:
http://assets.nagios.com/downloads/nagi ... p_Tool.pdf
http://assets.nagios.com/downloads/nagi ... nto_XI.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Import hostgroups.cfg

Post by slansing »

Use Abrist's suggestions if you are indeed importing this file from a previous Nagios core installation, otherwise it is generally recommended that these configuration files be changed from withing the Nagios XI Core Config Manager as it is the fastest, safest way of changing most configurations within Nagios.
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: Import hostgroups.cfg

Post by asmgiadmin »

FYI - I changed my process becuase I was doing it wrong.

Instead of attempting to populate host-group-windows with all windows servers, I simply added host-group-windows to windows-host-template and viola!

thanks for the docs, they were also helpful.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Import hostgroups.cfg

Post by slansing »

Excellent, thanks for letting us know.
Locked