Page 1 of 1

Hostgroups disappear when changing ip-address

Posted: Wed Mar 18, 2015 6:09 am
by b2m
Hi everyone

another problem with Nagios XI 2014R2.4 from us:

When a user changes the ip-address of a host via Configure -> "Re-configure this host" the host loses its relationships to all of its contactgroups.

Can you reproduce this?

Best wishes

b2m

Re: Hostgroups disappear when changing ip-address

Posted: Wed Mar 18, 2015 10:50 am
by abrist
Are you changing the hostname or just the address?
EDIT: If you are changing the hostname, please use the renaming tool to do so.

Re: Hostgroups disappear when changing ip-address

Posted: Wed Mar 18, 2015 1:42 pm
by b2m
Hi,

just the ip-address.

Re: Hostgroups disappear when changing ip-address

Posted: Wed Mar 18, 2015 1:44 pm
by tmcdonald
Does it still exhibit this behavior when you make the edit straight from the CCM?

Re: Hostgroups disappear when changing ip-address

Posted: Thu Mar 19, 2015 4:17 am
by b2m
tmcdonald wrote:Does it still exhibit this behavior when you make the edit straight from the CCM?
No, via CCM it works fine. The relationships to the notificationgroups are still there after applying configuration.

Re: Hostgroups disappear when changing ip-address

Posted: Thu Mar 19, 2015 10:16 am
by lmiltchev
Can you show us the config before and after you change the IP address via "Configure->Re-configure this host"? It is a very strange issue. I don't remember anyone else reporting this before. Is upgrading your Nagios XI to the latest (2.6) an option for you?

Re: Hostgroups disappear when changing ip-address

Posted: Thu Mar 19, 2015 10:38 am
by b2m
I found out this only applies when a non admin user changes the address.

We'll upgrade to newest version as soon as possible.

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.1
# Date:	      2015-03-19 16:34:09
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			niagara_01_z028
	use				xiwizard_genericnetdevice_host
	address				10.182.82.221
	hostgroups			messsysteme,StO_N
	max_check_attempts		5
	check_interval			15
	retry_interval			1
	check_period			xi_timeperiod_24x7
	contact_groups			Team BNG,Team Messmittel
	notification_interval		0
	notification_period		xi_timeperiod_24x7
	first_notification_delay	0
	notifications_enabled		1
	icon_image			measurement.png
	statusmap_image			measurement.png
	_xiwizard			genericnetdevice
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
After:

Code: Select all

###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.3.1
# Date:	      2015-03-19 16:36:39
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

define host {
	host_name			niagara_01_z028
	use				xiwizard_genericnetdevice_host
	address				10.182.82.222
	hostgroups			messsysteme,StO_N
	max_check_attempts		5
	check_interval			15
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		0
	notification_period		xi_timeperiod_24x7
	first_notification_delay	0
	notifications_enabled		1
	icon_image			measurement.png
	statusmap_image			measurement.png
	_xiwizard			genericnetdevice
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Re: Hostgroups disappear when changing ip-address

Posted: Thu Mar 19, 2015 10:48 am
by lmiltchev
I found out this only applies when a non admin user changes the address.
I tested this scenario on the latest release of XI and I was not able to recreate the issue.
We'll upgrade to newest version as soon as possible.
Let us know if the issue persists after the upgrade.

Re: Hostgroups disappear when changing ip-address

Posted: Fri Mar 20, 2015 7:51 am
by b2m
Hi,

I've upgraded to 2014R2.6. The issue is still there.

Best wishes

mb2m

Re: Hostgroups disappear when changing ip-address

Posted: Fri Mar 20, 2015 1:37 pm
by lmiltchev
We will have to probably move this to our email ticketing system. Can you send us your latest profile to [email protected]? Type "Hostgroups disappear when changing ip-address" in the email's subject field.

Admin->System Profile->Download Profile