Issue with renaming tool

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Issue with renaming tool

Post by WillemDH »

Seems to be a correct statement somehow Andy. Although I'm not really sure how I came to name my services different then my hostname..

Grtz
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Issue with renaming tool

Post by abrist »

WillemDH wrote:Seems to be a correct statement somehow Andy. Although I'm not really sure how I came to name my services different then my hostname..
Thanks for the confirmation.

EDIT: Clarification - this is WAI.
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.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Issue with renaming tool

Post by jomann »

This has been fixed and will be in the next release of Nagios XI. I've attached the version 1.4.1 renaming tool component if you'd like to update yours ahead of time. You should be able to upload the component via the Component Management GUI in the Admin panel.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dervari
Posts: 20
Joined: Thu Jun 20, 2013 7:54 am

Re: Issue with renaming tool

Post by dervari »

Sorry for resurrecting this old topic, but I am still having the issue with renaming a host under 2014R2.0 of XI. Just upgraded yesterday. Tried the Write Config workaround but still having issues.

Code: Select all

Reading configuration data...
   Read main config file okay...
Error: Could not find any host matching 'XXXXX' (config file '/usr/local/nagios/etc/services/Cron Service.cfg', starting on line 16)
Error: Failed to expand host list 'YYYYY' for service 'CRON Service' (/usr/local/nagios/etc/services/Cron Service.cfg:16)
   Error processing object config files!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Issue with renaming tool

Post by sreinhardt »

Can you verify which version of the component you currently have from Admin->Manage Components?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with renaming tool

Post by lmiltchev »

You are correct. I was able to recreate the issue.

It seems like renaming hosts was fixed in the "Renaming Tool" component but NOT in the CCM. I was told by developers that this will be fixed in the next revision.

For the time being you could either use the "Renaming Tool" (if you had "Nagios XI Enterprise Edition") or you could use the CCM + Write Config Tool (delete the configs prior to applying configuration).

Delete->Write->Verify->Apply Configuration
Be sure to check out our Knowledgebase for helpful articles and solutions!
dervari
Posts: 20
Joined: Thu Jun 20, 2013 7:54 am

Re: Issue with renaming tool

Post by dervari »

sreinhardt wrote:Can you verify which version of the component you currently have from Admin->Manage Components?
v1.4.1
dervari
Posts: 20
Joined: Thu Jun 20, 2013 7:54 am

Re: Issue with renaming tool

Post by dervari »

lmiltchev wrote:You are correct. I was able to recreate the issue.

It seems like renaming hosts was fixed in the "Renaming Tool" component but NOT in the CCM. I was told by developers that this will be fixed in the next revision.

For the time being you could either use the "Renaming Tool" (if you had "Nagios XI Enterprise Edition") or you could use the CCM + Write Config Tool (delete the configs prior to applying configuration).

Delete->Write->Verify->Apply Configuration
So I rename the hosts, then do the delete/write/verify/apply?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with renaming tool

Post by lmiltchev »

Yes. This should work. It's just a workaround for the time being.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked