Page 1 of 1

XI 5.7.x does not like the degrees symbol

Posted: Fri Jun 19, 2020 2:00 pm
by GldRush98
This worked fine on 5.6.X and below:
Capture.PNG
The ? should be a °. I.E:
Capture2.PNG
I'm not sure if it's being stored wrong in the database or displayed wrong in the front end, but it comes in correctly in the CCM test, so it's getting lost in translation some place down the line in XI:
Capture3.PNG
Not a big deal really, but thought I'd report it as temperature is probably a common thing people monitor :)

Re: XI 5.7.x does not like the degrees symbol

Posted: Fri Jun 19, 2020 3:05 pm
by tgriep
Edit this file.

Code: Select all

/usr/local/nagiosxi/html/config.inc.php
Find this section in the file

Code: Select all

    "ndoutils" => array(
        "dbtype" => 'mysql',
        "dbserver" => 'localhost',
        "user" => 'ndoutils',
        "pwd" => 'n@gweb',
        "db" => 'nagios',
        "charset" => "latin1",

Change the charset to utf8

Code: Select all

    "ndoutils" => array(
        "dbtype" => 'mysql',
        "dbserver" => 'localhost',
        "user" => 'ndoutils',
        "pwd" => 'n@gweb',
        "db" => 'nagios',
        "charset" => "utf8",

Save the file and restart apache.
service httpd restart

That should fix the issue.

Re: XI 5.7.x does not like the degrees symbol

Posted: Fri Jun 19, 2020 4:24 pm
by GldRush98
Yup, sure does! Thanks!
I did not have a charset line at all for that bit. I added in the utf8 and good to go :ugeek:

Re: XI 5.7.x does not like the degrees symbol

Posted: Mon Jun 22, 2020 10:14 am
by tgriep
I am glad it worked. I'll lock the post for you but if you have any further questions or issues in the future, feel free to open a new post.