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
Emails and Test emails failing
Re: Emails and Test emails failing
Alright. Lets check a few things:
1. Check for apache errors:
2. Check your browser console for errors (with ctrl-shift-j). Post any relevant ones here.
3. Check the permissions on the tesemail script:
1. Check for apache errors:
Code: Select all
tail -25 /var/log/httpd/error_log3. Check the permissions on the tesemail script:
Code: Select all
ls -la /usr/local/nagiosxi/html/admin/testemail.phpFormer 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.
"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
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
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
Re: Emails and Test emails failing
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:
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.
"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.