Page 2 of 3
Re: Unable to remove hostgroup from host
Posted: Mon Aug 21, 2017 4:36 pm
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.
Re: Unable to remove hostgroup from host
Posted: Tue Aug 22, 2017 1:37 pm
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,
}
Re: Unable to remove hostgroup from host
Posted: Tue Aug 22, 2017 5:12 pm
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)
Re: Unable to remove hostgroup from host
Posted: Wed Aug 23, 2017 9:04 am
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.
Re: Unable to remove hostgroup from host
Posted: Wed Aug 23, 2017 9:10 am
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,
}
Re: Unable to remove hostgroup from host
Posted: Wed Aug 23, 2017 11:29 am
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.
Re: Unable to remove hostgroup from host
Posted: Wed Aug 23, 2017 12:19 pm
by dwhitfield
Are you applying the configuration after you delete? Please attach a screenshot of where you are trying to delete the service escalation.
Re: Unable to remove hostgroup from host
Posted: Thu Aug 24, 2017 11:27 am
by chelch
Pressing delete button actually does nothing so I cant apply anything. Here is where I am trying to delete.
esc.JPG
Re: Unable to remove hostgroup from host
Posted: Thu Aug 24, 2017 1:12 pm
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?
Re: Unable to remove hostgroup from host
Posted: Thu Aug 24, 2017 3:56 pm
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!