Page 1 of 3
Unable to remove hostgroup from host
Posted: Thu Aug 17, 2017 4:41 pm
by chelch
Hello,
Complete noob here looking for advice on an error.
I click on a host and enter host management. I then click on "manage host groups" and remove the host group. Click save then when I click apply I am getting the following error....
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 1120)
What would be the route to take to be able to remove this host group from a specific host? Thanks fellas.
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 3:52 am
by tacolover101
it sounds like you're following the right process - did you make changes to a service escalation that could need to be fixed as well?
the only thing I can think of that may affect it, is if you have services assigned to a host group, which then leaves the services without any.
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 11:41 am
by dwhitfield
Please attach your /usr/local/nagios/etc/serviceescalations.cfg
Also, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 1:18 pm
by chelch
I haven't made any changes to service escalations. There are service escalations for the host group I removed from the host that were previously created in our Nagios XI environment. Is there anyway to delete service escalations? The delete action button doesn't do anything when I click it. Not even sure if that will fix the issue I am having
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 1:48 pm
by dwhitfield
The error says
Error: Could not register service escalation (config file '/usr/local/nagios/etc/serviceescalations.cfg', starting on line 1120)
Without knowing what is in that file, it is going to be hard to help you.
That seems like a particularly large serviceescalations.cfg. Did you import it from another setup? Perhaps something got accidentally dumped into that file.
It would still be worth getting a profile to see if there is some larger issue at play.
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 2:49 pm
by chelch
What process should I follow to post the config? Not sure how to do that to be honest.
In addition could I just blow away all the service escalations and start from scratch? For some reason the delete button doesn't do anything.
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 3:19 pm
by dwhitfield
Are you asking how to get it off of Linux or how to post in the forums? As far as the forums, when you hit reply there will be an "Upload attachment" tab at the bottom. Click the on it. Then click on the Browser button. Select your file. Add the file.
Alternatively, you can just copy/paste, but that seems like it's not going to work on a file that size.
Let's try something before I worry about giving you instructions for getting it off of Linux. What are the outputs of tail /usr/local/nagios/etc/serviceescalations.cfg and head /usr/local/nagios/etc/serviceescalations.cfg?
Re: Unable to remove hostgroup from host
Posted: Fri Aug 18, 2017 3:33 pm
by chelch
Is there somewhere in the Web UI where I can grab the tail /usr/local/nagios/etc/serviceescalations.cfg and head /usr/local/nagios/etc/serviceescalations.cfg
Re: Unable to remove hostgroup from host
Posted: Mon Aug 21, 2017 9:06 am
by dwhitfield
chelch wrote:Is there somewhere in the Web UI where I can grab the tail /usr/local/nagios/etc/serviceescalations.cfg and head /usr/local/nagios/etc/serviceescalations.cfg
No...well, not without downloading the profile.
Can you post a screenshot of the screen where you are trying to download the profile? Please make sure it's the entire WebUI and not cropped.
Re: Unable to remove hostgroup from host
Posted: Mon Aug 21, 2017 4:26 pm
by chelch