DB.nagios alias is not DB.nagiosql's alias
-
yangzhiyao2653
- Posts: 27
- Joined: Fri May 18, 2018 1:15 am
DB.nagios alias is not DB.nagiosql's alias
Shown in nagiosql alias is Chinese simplified, but is shown in the nagios gibberish, who has encountered this problem, please?
You do not have the required permissions to view the files attached to this post.
Re: DB.nagios alias is not DB.nagiosql's alias
What are the character settings on the databases when you run:
SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "nagios";
SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "nagiosql";
?
SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "nagios";
SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "nagiosql";
?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
yangzhiyao2653
- Posts: 27
- Joined: Fri May 18, 2018 1:15 am
Re: DB.nagios alias is not DB.nagiosql's alias
Both is latin1.
I try to change the default character set and character collation but for the former data I want to know how to change?
I try to change the default character set and character collation but for the former data I want to know how to change?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: DB.nagios alias is not DB.nagiosql's alias
@yangzhiyao2653, Consider changing the default character set to UTF-8. Let me know if the solution here works for you:
https://stackoverflow.com/questions/351 ... -in-my-cnf
Before you do anything please backup Nagios:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://stackoverflow.com/questions/351 ... -in-my-cnf
Before you do anything please backup Nagios:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
yangzhiyao2653
- Posts: 27
- Joined: Fri May 18, 2018 1:15 am
Re: DB.nagios alias is not DB.nagiosql's alias
I've put the nagios server, database, table, column configuration as utf8, then restart the database service and apply nagios CCM, found the database is shown as utf8.But instead of on the page with the unreadable code, in the home page and report, do you know about this situation?
You do not have the required permissions to view the files attached to this post.
Re: DB.nagios alias is not DB.nagiosql's alias
Please go to Configure > Core Config Manager > Hosts:
- Edit VLXCNDSZ01BPMP1 through 9 and change the Alias to what it should be, Save, then apply configuration and see if it's proper now.
This is likely a result of the conversion to utf-8.
Let us know the results.
- Edit VLXCNDSZ01BPMP1 through 9 and change the Alias to what it should be, Save, then apply configuration and see if it's proper now.
This is likely a result of the conversion to utf-8.
Let us know the results.
-
yangzhiyao2653
- Posts: 27
- Joined: Fri May 18, 2018 1:15 am
Re: DB.nagios alias is not DB.nagiosql's alias
Is still can't display properly, I will want to is a question of PHP, but I for PHP is not understand, may need your help
Re: DB.nagios alias is not DB.nagiosql's alias
Are the databases showing correct characters now if you run initial query again?
Edit /etc/httpd/conf/httpd.conf and make sure the following is in there:
AddDefaultCharset utf-8
Also, check /etc/php.ini and uncomment this like:
;default_charset = "UTF-8"
Restart the apache service after making any changes to these files:
service httpd restart
Edit /etc/httpd/conf/httpd.conf and make sure the following is in there:
AddDefaultCharset utf-8
Also, check /etc/php.ini and uncomment this like:
;default_charset = "UTF-8"
Restart the apache service after making any changes to these files:
service httpd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
yangzhiyao2653
- Posts: 27
- Joined: Fri May 18, 2018 1:15 am
Re: DB.nagios alias is not DB.nagiosql's alias
It still can't display properly,I will take a ticket with it .if you have any idea ,please tell me, thank you.
Re: DB.nagios alias is not DB.nagiosql's alias
I see a ticket has been opened. We'll continue troubleshooting though there.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.