Page 1 of 1

Receiving Japanese Language in Status Message

Posted: Mon Dec 13, 2021 7:39 pm
by mrochelle
If Nagios XI is setup using the Japanese language, and a service check response returns data in Japanese, will Nagios XI display the returned data in Japanese as received?

Re: Receiving Japanese Language in Status Message

Posted: Tue Dec 14, 2021 3:12 pm
by benjaminsmith
Hi,

That should work. I made a quick python plugin to test this with a headline from today's Asahi News.
japanese-output.png
The plugin does need to handle utf-8 and multilingual ouput.

Also, make sure you have the database encoding in /usr/local/nagiosxi/html/config.inc.php set to UTF8.

Code: Select all

        "dbtype" => 'mysql',
        "dbserver" => 'localhost',
        "user" => 'ndoutils',
        "pwd" => 'n@gweb',
        "db" => 'nagios',
        "charset" => "utf8",
        "dbmaint" => array( // variables affecting maintenance of ndoutils db
Let us know if you get it working.

--Benjamin

Re: Receiving Japanese Language in Status Message

Posted: Tue Dec 14, 2021 7:54 pm
by mrochelle
Confirmed on my Nagios XI server. Thank You! Go ahead and close this out.

Re: Receiving Japanese Language in Status Message

Posted: Wed Dec 15, 2021 9:59 am
by benjaminsmith
Confirmed on my Nagios XI server. Thank You! Go ahead and close this out.
Excellent! We'll close this out.