Unable to edit hostname using CCM
Posted: Wed Oct 08, 2014 1:05 pm
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!
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!