XI 5.7.x does not like the degrees symbol

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

XI 5.7.x does not like the degrees symbol

Post 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 :)
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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

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

Post 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:
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked