XI sending email issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

XI sending email issue

Post by BanditBBS »

Code: Select all

[Thu Oct 31 16:16:55 2013] [error] [client 10.94.6.67] PHP Fatal error:  Call to undefined function mb_convert_encoding() in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 79, referer: http://svcldnagios01/nagiosxi/admin/testemail.php
Getting the above error when I try and send a test email. This is the server I did an offline install on, so I imagine something is missing. Any ideas?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: XI sending email issue

Post by tmcdonald »

StackOverflow to the rescue?

http://stackoverflow.com/questions/8266 ... is-enabled

tl-dr; Newer PHP versions might not have the Mulibyte module installed by default. Try "yum install php-mbstring"
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: XI sending email issue

Post by BanditBBS »

What part of offline install did you not understand? lol :D
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: XI sending email issue

Post by abrist »

What version of the offline installer did you use?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: XI sending email issue

Post by tmcdonald »

I assumed you did an offline install for a system that would eventually go online. I'll shut up now and let Andy handle it.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: XI sending email issue

Post by BanditBBS »

tmcdonald wrote:I assumed you did an offline install for a system that would eventually go online. I'll shut up now and let Andy handle it.
Thanks god! LOL
abrist wrote:What version of the offline installer did you use?
Umm, the one I was given :) Let me see if I can find it......here: RHEL-6.4-x86_64-6.10.13.tar.gz
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: XI sending email issue

Post by yancy »

BanditBBS,

can you run the following and let us know if Multibyte is enabled

Code: Select all

echo "<?php phpinfo(); ?>" > /tmp/php_info.php && chmod +x /tmp/php_info.php && php php_info.php | grep "Multibyte Support"
-Yancy
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: XI sending email issue

Post by BanditBBS »

Code: Select all

Zend Multibyte Support => disabled
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: XI sending email issue

Post by yancy »

BanditBBS,

have a loot at:

http://www.php.net/manual/en/ini.core.p ... .multibyte

you should be able to enable by adding the following line to /etc/php.ini

Code: Select all

zend.multibyte  = On
(then restart apache)

-Yancy
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: XI sending email issue

Post by BanditBBS »

That didn't resolve it :(

I'm putting in one final firewall change request before our holiday freeze and including opening this up to the internet. Hopefully will get done Tuesday or Thursday.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked