Unable to remove hostgroup from host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to remove hostgroup from host

Post by dwhitfield »

Ok, that's cropped, but it does tell us you are using something 5.3.4 or after. Did you try to PM the profile? If so, I never got a PM from you.

If you don't want to send the entire profile, you can unzip it and just attach that serviceescalation.cfg file. You'll also need to unpack the .tar.gz that has a series of numbers before the file extension.

UPDATE: Profile received and shared with techs.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to remove hostgroup from host

Post by dwhitfield »

The escalation in question is the following. Is that hostgroup the one you are trying to remove? You'll need to remove the service escalation first, if so.

Code: Select all

define serviceescalation {
	#	config_name	TSR Service's Check_lv2
		hostgroup_name                		TouchStar Prod Servers
		service_description           		Service: All disks,Service: CPU Usage,Service: Memory Usage
		contact_groups                		SERVER ADMINS,TOUCHSTAR
		first_notification            		4
		last_notification             		9
		notification_interval         		60
		escalation_period             		24x7
		escalation_options            		w,c,r,
	}	
chelch
Posts: 29
Joined: Mon Aug 14, 2017 4:55 pm

Re: Unable to remove hostgroup from host

Post by chelch »

I was actually trying to remove the host group called "WolfePak Prod Servers" from the host called WOLFEPAK-PROD. When I do so i get....

Error: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 232)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to remove hostgroup from host

Post by scottwilkerson »

chelch wrote:I was actually trying to remove the host group called "WolfePak Prod Servers" from the host called WOLFEPAK-PROD. When I do so i get....

Error: Service escalation host name or description is NULL
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 232)
If you had an escalation around this, you may need to remove the related escalation as well.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to remove hostgroup from host

Post by dwhitfield »

In addition to @scottwilkerson's comment, the escalation in question is as follows:

Code: Select all

define serviceescalation {
	#	config_name	WOLFEPAK Service's Check_lv2
		hostgroup_name                		WolfePak Prod Servers
		service_description           		Service: All disks,Service: CPU Usage,Service: Memory Usage
		contact_groups                		SERVER ADMINS,WOLFEPAK
		first_notification            		4
		last_notification             		9
		notification_interval         		60
		escalation_period             		24x7
		escalation_options            		w,c,r,
	}	
chelch
Posts: 29
Joined: Mon Aug 14, 2017 4:55 pm

Re: Unable to remove hostgroup from host

Post by chelch »

So how would I go about deleting that escalation so I can remove that hostgroup from that specific host?

When I click the delete button on the service escalation nothing happens...almost like the delete button is broken.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to remove hostgroup from host

Post by dwhitfield »

Are you applying the configuration after you delete? Please attach a screenshot of where you are trying to delete the service escalation.
chelch
Posts: 29
Joined: Mon Aug 14, 2017 4:55 pm

Re: Unable to remove hostgroup from host

Post by chelch »

Pressing delete button actually does nothing so I cant apply anything. Here is where I am trying to delete.
esc.JPG
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to remove hostgroup from host

Post by dwhitfield »

Are you clicking the red X or checking the box and then using the delete option at the bottom? If you haven't tried both, try the other. Have you tried any other browsers?
chelch
Posts: 29
Joined: Mon Aug 14, 2017 4:55 pm

Re: Unable to remove hostgroup from host

Post by chelch »

Well....using the delete option at the bottom works great and the red X does not. That is my bad. Just wasn't looking down there at the bottom. Thanks for the help!
Locked