Email notifications not being sent
Posted: Tue Mar 19, 2013 12:52 pm
I am having problems with my XI installation sending SMTP messages. I know that notifications in general are working because, for a given notice, I get notified by the other Service Notification Command that is set up for my user. I have only set up and am only using the nagiosadmin user.
I attempted to follow the FAQ, but, got not further than:
When I click "Notification Methods", I get
I have read this thread
http://support.nagios.com/forum/viewtop ... ed+#p30894
and this doc
http://assets.nagios.com/downloads/nagi ... ntacts.pdf
and THINK I understand what's being discussed but still get the "...handlers are not defined..." message.
This also happens if I click on "Notification Messages" and if I click on "Send Test Notifications", I get
This installation of XI was originally on another machine that was a 32bit machine running CentOS 6.3 installed following "XI_Manual_Installation_Instructions.pdf" . Using the backup and restore process (Backing_Up_And_Restoring_XI.pdf), I moved the installation to a Centos 6.2 EC2 64-bit machine.
There is nothing in /var/log/maillog indicating an attempt to send. There is nothing in /var/log/httpd/error_log of any consequence.
Here is the output from System Profile
Any guidance would be greatly appreciated
Miles
I attempted to follow the FAQ, but, got not further than:
Code: Select all
2. User's Notification Options...
...From the same page, click on "Notification Methods" and make sure a Notification Method is selected.
Code: Select all
Notification Methods
Nagios XI notification handlers are not defined for this account. XI notification handlers must be defined in the Core Config Manager for customized notification settings.
Management of notification preferences is not available for your account. Contact your Nagios XI administrator for details.
http://support.nagios.com/forum/viewtop ... ed+#p30894
and this doc
http://assets.nagios.com/downloads/nagi ... ntacts.pdf
and THINK I understand what's being discussed but still get the "...handlers are not defined..." message.
This also happens if I click on "Notification Messages" and if I click on "Send Test Notifications", I get
Code: Select all
Send Test Notifications
Testing notification messages is not available for your account. Contact your Nagios XI administrator for details.There is nothing in /var/log/maillog indicating an attempt to send. There is nothing in /var/log/httpd/error_log of any consequence.
Here is the output from System Profile
Code: Select all
Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2012R1.6
ip-10-151-111-132 2.6.32-220.7.1.el6.x86_64 x86_64
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22
Server Name: ec2-54-225-243-72.compute-1.amazonaws.com
Server Address: 10.151.111.132
Server Port: 80
Date/Time
PHP Timezone: US/Eastern
PHP Time: Tue, 19 Mar 2013 13:49:07 -0400
System Time: Tue, 19 Mar 2013 13:49:07 -0400
Nagios XI Data
nagios (pid 7401) is running...
NPCD running (pid 1113).
ndo2db (pid 1346) is running...
CPU Load 15: 1.86
Total Hosts: 23
Total Services: 213
Function 'get_base_uri' returns: http://ec2-54-225-243-72.compute-1.amazonaws.com/nagiosxi/
Function 'get_base_url' returns: http://ec2-54-225-243-72.compute-1.amazonaws.com/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://ec2-54-225-243-72.compute-1.amazonaws.com/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:
/bin/ping -c 3 localhost 2>&1
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.035 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.033 ms
--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.033/0.036/0.042/0.008 ms
Test wget To locahost
WGET From URL: http://localhost/nagiosql/index.php
Running:
/usr/bin/wget http://localhost/nagiosql/index.php
--2013-03-19 13:49:09-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'
0K ..... 100% 226M=0s
2013-03-19 13:49:09 (226 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
Miles