Help on host group relationship
Posted: Fri Nov 13, 2015 11:11 am
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
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