Greetings:
I'm sure this is not a new topic. But my searches aren't coming up with much.
I need to modify the hostname from an IP address to a friendly name. I move through the steps described in an earlier forum posting
1) CCM
2) Hosts under Monitoring in left pane
3) Edit
4) Change hostname to friendly name
5) Save.
And everything is peachy, EXCEPT when I try to apply the configuration change. The following occurs:
Configuration Fails
Show Config Changes is
Write host configurations ...
WARNING! Ghost host config detected! Removing the file <IP ADDRESS>.cfg
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Show Errors is:
Error: Could not find any host matching '<IP ADDRESS>' (config file '/usr/local/nagios/etc/services/<IP ADDRESS>.cfg', starting on line 191)
Error: Failed to expand host list '<IP ADDRESS>' for service 'Users' (/usr/local/nagios/etc/services/<IP ADDRESS>.cfg:191)
It seems it partially works but when it wants to complete the config file has changed its name. I'm sure this can be manually edited, but I'd like to be cautious.
Many thanks!
Unable to edit hostname using CCM
Re: Unable to edit hostname using CCM
Click on one of the services of this host under the CCM, then click on "Save" without changing anything. Try to Apply Configuration again. Let me know if this solved your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
tedgardener
- Posts: 11
- Joined: Fri Aug 29, 2014 10:27 am
Re: Unable to edit hostname using CCM
You're process worked fine. Frankly, it seems easier to mass delete the services and host rather than individually edit each service with the correct hostname. But I can see the value of both processes, especially if you have something that has more than the base-line services being monitored.
Thanks much lmitchev.
Thanks much lmitchev.
Re: Unable to edit hostname using CCM
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee