Hello,
When I rename a host that has attached services, I get errors when applying configuration afterwards:
renamed weather_gent_poortakker to weather_gent , then applied =>
Error: Could not find any host matching 'weather_gent_poortakker' (config file '/usr/local/nagios/etc/services/gent_poortakker_precip.cfg', starting on line 16)
Error: Failed to expand host list 'weather_gent_poortakker' for service 'gent_poortakker_precip' (/usr/local/nagios/etc/services/gent_poortakker_precip.cfg:16)
Got it very time.
This does not seem normal.
Grtz
Willem
Issue with renaming tool
Issue with renaming tool
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Issue with renaming tool
Seems somewhat ghost-hosty. What XI version is this?
Former Nagios employee
Re: Issue with renaming tool
I was able to recreate it and filed an internal bug report (NEW TASK ID 3864).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue with renaming tool
Thanks Ludmill for confirming I'm not crazy. 
Version is R1.4
Grtz
Version is R1.4
Grtz
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Issue with renaming tool
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue with renaming tool
Hello,
I'm experiencing similar issues when trying to rename a host without the renaming tool:
Is there any solution for this issue, I have multiple hosts waiting to be renamed...
Grtz
Willem
I'm experiencing similar issues when trying to rename a host without the renaming tool:
Code: Select all
Error: Could not find any host matching 'server1' (config file '/usr/local/nagios/etc/services/server1.cfg', starting on line 55)
Error: Failed to expand host list 'server1' for service 'SVC_Solr_Updates' (/usr/local/nagios/etc/services/server1.cfg:55)
Error processing object config files!Grtz
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Issue with renaming tool
It is a bug. I added a note to the bug report I filed for the "Renaming Tool". I will talk to our developers to see if they can give this a "higher" priority.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue with renaming tool
Actually, this behavior is caused by not writing ALL of the configs when applying configuration (in XI 2014).
This change made applying configuration a log faster, especially for large environments, but it seemed to create an issue in this case...
As a workaround you can try running the Write Config Tool. Hit the "Delete" button first, then "Write", "Verify", and apply configuration.
Edit: Apply Config will also fail after renaming a host via the Renaming Tool IF the host and its services have DIFFERENT config names.
This change made applying configuration a log faster, especially for large environments, but it seemed to create an issue in this case...
As a workaround you can try running the Write Config Tool. Hit the "Delete" button first, then "Write", "Verify", and apply configuration.
Edit: Apply Config will also fail after renaming a host via the Renaming Tool IF the host and its services have DIFFERENT config names.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue with renaming tool
Had the same problem and I can confirm the workaround.lmiltchev wrote:Actually, this behavior is caused by not writing ALL of the configs when applying configuration (in XI 2014).
This change made applying configuration a log faster, especially for large environments, but it seemed to create an issue in this case...
As a workaround you can try running the Write Config Tool. Hit the "Delete" button first, then "Write", "Verify", and apply configuration.
Edit: Apply Config will also fail after renaming a host via the Renaming Tool IF the host and its services have DIFFERENT config names.
Re: Issue with renaming tool
The only way this issue should happen at the moment is if your services' config names are different than the hostname. Can others confirm?
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.
"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.