DB.nagios alias is not DB.nagiosql's alias

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
yangzhiyao2653
Posts: 27
Joined: Fri May 18, 2018 1:15 am

DB.nagios alias is not DB.nagiosql's alias

Post by yangzhiyao2653 »

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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DB.nagios alias is not DB.nagiosql's alias

Post by cdienger »

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";


?
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

Post by yangzhiyao2653 »

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?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: DB.nagios alias is not DB.nagiosql's alias

Post by npolovenko »

@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
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

Post by yangzhiyao2653 »

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: DB.nagios alias is not DB.nagiosql's alias

Post by ssax »

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.
yangzhiyao2653
Posts: 27
Joined: Fri May 18, 2018 1:15 am

Re: DB.nagios alias is not DB.nagiosql's alias

Post by yangzhiyao2653 »

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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DB.nagios alias is not DB.nagiosql's alias

Post by cdienger »

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
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

Post by yangzhiyao2653 »

It still can't display properly,I will take a ticket with it .if you have any idea ,please tell me, thank you.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: DB.nagios alias is not DB.nagiosql's alias

Post by cdienger »

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.
Locked