Emails and Test emails failing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Emails and Test emails failing

Post by intelXIadmin »

Hello,

I just upgraded Nagiosxi to 2014R2.0 and I am no longer receiving email notifications. When I go to test the email notifications I get a page with an error:

The website cannot display the page

The address is: https://xxxxx/nagiosxi/admin/testemail.php #xxxxx is the server name blotted out.

This happened after upgrading NagioxXI. I downreved to a backup and it still didn't work, so I brought it back to the new version.

Redhat: 6.6
Nagios XI 2014R2.0
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Emails and Test emails failing

Post by abrist »

Alright. Lets check a few things:
1. Check for apache errors:

Code: Select all

tail -25 /var/log/httpd/error_log
2. Check your browser console for errors (with ctrl-shift-j). Post any relevant ones here.

3. Check the permissions on the tesemail script:

Code: Select all

ls -la /usr/local/nagiosxi/html/admin/testemail.php
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.
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Re: Emails and Test emails failing

Post by intelXIadmin »

Tail results:

import rrddatastore
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/rrddatastore.py", line 6, in <module>
import rrdtool
ImportError: No module named rrdtool
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanning.py", line 7, in <module>
import rrddatastore
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/rrddatastore.py", line 6, in <module>
import rrdtool
ImportError: No module named rrdtool
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanning.py", line 7, in <module>
import rrddatastore
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/rrddatastore.py", line 6, in <module>
import rrdtool
ImportError: No module named rrdtool
Traceback (most recent call last):
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/capacityplanning.py", line 7, in <module>
import rrddatastore
File "/usr/local/nagiosxi/html/includes/components/capacityplanning/backend/rrddatastore.py", line 6, in <module>
import rrdtool
ImportError: No module named rrdtool
[Mon Dec 01 11:07:09 2014] [error] [client 10.9.67.53] PHP Fatal error: Call to undefined function mb_convert_encoding() in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 81, referer: https://ubitmon-hf.hf.intel.com/nagiosx ... temail.php
[Mon Dec 01 11:07:09 2014] [error] [client 10.9.67.53] File does not exist: /var/www/html/favicon.ico
[Mon Dec 01 11:07:28 2014] [error] [client 10.9.67.53] PHP Fatal error: Call to undefined function mb_convert_encoding() in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 81, referer: https://ubitmon-hf.hf.intel.com/nagiosx ... temail.php

Permissions:

-rwxr-x--- 1 nagios nagios 3169 Oct 9 09:11 /usr/local/nagiosxi/html/admin/testemail.php
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Emails and Test emails failing

Post by abrist »

How was php installed on this system?
The function mbstring_convert_encoding() should be part of a default php install, unless php was compiled or installed from a non-standard repo:
[snip] This requires that PHP has the mb_convert_encoding() function. Your PHP installation lacks this function (PHP needs the "--enable-mbstring" when compiled).',0),
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.
Locked