Hostgroups disappear when changing ip-address

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Hostgroups disappear when changing ip-address

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Hostgroups disappear when changing ip-address

Post 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.
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.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Hostgroups disappear when changing ip-address

Post by b2m »

Hi,

just the ip-address.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hostgroups disappear when changing ip-address

Post by tmcdonald »

Does it still exhibit this behavior when you make the edit straight from the CCM?
Former Nagios employee
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Hostgroups disappear when changing ip-address

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroups disappear when changing ip-address

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Hostgroups disappear when changing ip-address

Post 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
#
###############################################################################
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroups disappear when changing ip-address

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Hostgroups disappear when changing ip-address

Post by b2m »

Hi,

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

Best wishes

mb2m
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Hostgroups disappear when changing ip-address

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked