Case change on host has lead to problems
Case change on host has lead to problems
Former hostname: voc-hyperv1
Current hostname: VOC-hyperv1
Yes, it's a minor change, but it was done to conform with the naming scheme were caps denote production and lower cases denote DR servers.
So this was changed a while ago but there is a mix up now and this has broken things, most importantly performance data is missing from services still associated with the old hostname.
I can not figure out WHERE the old name is coming from.
Config name on services has been updated.
Host does not have an alias or display name set to it.
I have deleted the host and recreated it.
I have deleted the services showing the errant name and recreated them.
And STILL it comes back! I even went as far as grepping the cfg files on the server for the lower case name and it is NOWHERE that I can find.
Current hostname: VOC-hyperv1
Yes, it's a minor change, but it was done to conform with the naming scheme were caps denote production and lower cases denote DR servers.
So this was changed a while ago but there is a mix up now and this has broken things, most importantly performance data is missing from services still associated with the old hostname.
I can not figure out WHERE the old name is coming from.
Config name on services has been updated.
Host does not have an alias or display name set to it.
I have deleted the host and recreated it.
I have deleted the services showing the errant name and recreated them.
And STILL it comes back! I even went as far as grepping the cfg files on the server for the lower case name and it is NOWHERE that I can find.
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Case change on host has lead to problems
Actually, changing the case on services is proving to be problemactic as well.
For example service named:
url content
Change the name to:
Url content
The service is now broken. It shows the old name (url content) the XI gui and it will never perform a check. It sticks at pending state!
This really feels like a bug. Unless changing case of something is not actually supported?
For example service named:
url content
Change the name to:
Url content
The service is now broken. It shows the old name (url content) the XI gui and it will never perform a check. It sticks at pending state!
This really feels like a bug. Unless changing case of something is not actually supported?
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Case change on host has lead to problems
You may want to try rewriting your configuration files to correct the error.
- Navigate to Config using the bar on top of XI > click Core Config Manager under Advanced Configuration on the left pane > then click Config File Management under Tools on the left.
- Click Delete Files. ( Don't worry, we can easily rewrite them. )
- Click Write Configs.
- Click Verify Files. If you see any errors, correct them and perform the two previous steps again.
- Click Restart Nagios Core to apply the configuration.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Case change on host has lead to problems
Yeah, I did that. Made no difference. The configs being written to the actual files all appear with the correct case.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Case change on host has lead to problems
I believe this may actually be a bug in a recent release. People are reporting that objects are replicating instead of being renamed.
We are working to correct the software so that we can deploy a fix soon, but you could also alter the database as a workaround for the time being.
Delete the objects you see from the database using a command like below, but with the names of the objects you want to delete.
...or you could truncate the entire table...
...then Apply Config to write the changes from the database to the configuration.
We are working to correct the software so that we can deploy a fix soon, but you could also alter the database as a workaround for the time being.
Delete the objects you see from the database using a command like below, but with the names of the objects you want to delete.
Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi nagios -e "delete from nagios_obects where name1 like '%hostname%';"Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi nagios -e "truncate table nagios_objects;"As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Case change on host has lead to problems
Yes, this looks like a bug to me. Running (you had a minor typo in the table name):jbrunkow wrote:I believe this may actually be a bug in a recent release. People are reporting that objects are replicating instead of being renamed.
We are working to correct the software so that we can deploy a fix soon, but you could also alter the database as a workaround for the time being.
Delete the objects you see from the database using a command like below, but with the names of the objects you want to delete....or you could truncate the entire table...Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi nagios -e "delete from nagios_obects where name1 like '%hostname%';"...then Apply Config to write the changes from the database to the configuration.Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi nagios -e "truncate table nagios_objects;"
Code: Select all
mysql -h 127.0.0.1 -uroot -pnagiosxi nagios -e "delete from nagios_objects where name1 like '%voc-srv1%';"edit: And confirming this same method also let me change the case of just a service name correctly as well! The service works correctly after the case change. File that bug report
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Re: Case change on host has lead to problems
Great! I'm glad you got it working.
Our developers have been made aware of this problem.
Is it okay if I mark this topic as resolved and lock it for editing?
Our developers have been made aware of this problem.
Is it okay if I mark this topic as resolved and lock it for editing?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Case change on host has lead to problems
Yup, this will suffice until an update fixes it. Thanks for making the devs aware.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Case change on host has lead to problems
GreatGldRush98 wrote:Yup, this will suffice until an update fixes it. Thanks for making the devs aware.
Locking thread