Help on host group relationship

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Help on host group relationship

Post by Francesco »

Hi team,
we've imported an old nagios core 3.x configuration in Nagios XI using these steps:

1) read hostxxx.cfg from nagios core and replicate the information in the new machine.cfg
example: cat xxxxxxxxx.cfg

define service {
use tm-s1-service
service_description DISK USAGE
display_name check_aix_disk_all
check_command check_aix_disk_all
host_name xxxxxxxxx
hostgroups os-aix,!tm-test
register 1
}

2) in Nagios XI under /usr/local/nagios/etc/hosts/xxxxxxxxx.cfg I found

define host {
host_name xxxxxxxxx
use aix
address xxx.xxx.xxx.xxx
hostgroups os-aix,tm-prod
register 1
}
As you can see the hostgroups is wrong
Opening the interface I found: (view xxxxxxxxx.jpg)

The question is:

Why the configuration created by the import procedure is wrong and how we can understand (view image)
"=>" Denotes object relationship elsewhere - where is "elsewere??"

Second question:
is there a correct procedure to import again only the hostgroups reassigning them to the hosts in NaiosXI overwriting the wrong informations in the database?

Thanks very much for your help
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Help on host group relationship

Post by lmiltchev »

Please, review the three documents under the "Migrating From Nagios Core" section in the Admin Guide:

https://assets.nagios.com/downloads/nag ... ngfromcore

This would be the correct import procedure. If you are absolutely sure that your config is correct, you could place it in the "/usr/local/nagios/etc/import/" directory and run "reconfigure_nagios.sh":

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
I would like to point out that hostgroups exclusions, i.e. "hostgroups os-aix,!tm-test" would not be imported properly (and would not work in XI), unless you manage these configs manually by placing them in the "static" directory.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Francesco
Posts: 124
Joined: Wed Oct 28, 2015 5:02 am
Location: /usr
Contact:

Re: Help on host group relationship

Post by Francesco »

Hi,
We have solved removing and re-inserting the incorrect host group.
Thank you
Francesco
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Help on host group relationship

Post by bwallace »

Thanks for that update and glad to hear this is resolved. We'll lock this thread now and feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked