Page 1 of 1

Email Notifications not working

Posted: Mon Nov 07, 2016 1:51 am
by sgiworks
Hello Team,

I've setup a new server, where the email notifications are not working. However I can see them in the console 'Notification'; also I tried sending test email from Nagios and that works, so there is no problem with SMTP service. Please suggest.

Re: Email Notifications not working

Posted: Mon Nov 07, 2016 2:06 am
by sgiworks
Attached system profile for your reference.

Re: Email Notifications not working

Posted: Mon Nov 07, 2016 9:47 am
by rkennedy
Could you attempt to upgrade to 5.3.2? There were a few issues in 5.3.0/5.3.1 relating to notifications and I feel this should solve it.

Re: Email Notifications not working

Posted: Mon Nov 07, 2016 2:49 pm
by sgiworks
Hello,

I tried upgrading, but I get below errors and it continues.


[root@iwksapspssnxi01 ec2-user]# cd /tmp
[root@iwksapspssnxi01 tmp]# rm -rf nagiosxi xi*.tar.gz
[root@iwksapspssnxi01 tmp]# wget http://assets.nagios.com/downloads/nagiosxi/xi- latest.tar.gz
--2016-11-08 03:45:37-- http://assets.nagios.com/downloads/nagiosxi/xi-latest.t ar.gz
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/nag ... est.tar.gz [followi ng]
--2016-11-08 03:45:41-- https://assets.nagios.com/downloads/nagiosxi/xi-latest. tar.gz
Connecting to assets.nagios.com|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52300720 (50M) [application/x-gzip]
Saving to: “xi-latest.tar.gz”

100%[======================================>] 52,300,720 8.48M/s in 8.6s

2016-11-08 03:45:51 (5.80 MB/s) - “xi-latest.tar.gz” saved [52300720/52300720]

[root@iwksapspssnxi01 tmp]# tar xzf xi-latest.tar.gz
[root@iwksapspssnxi01 tmp]# cd /tmp/nagiosxi
[root@iwksapspssnxi01 nagiosxi]# ./upgrade
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

OLD VERSION: 530
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: rpmforge-release
Determining fastest mirrors
* base: mirror.nus.edu.sg
* epel: mirror.smartmedia.net.id
* extras: mirror.nus.edu.sg
* updates: mirror.qoxy.com
http://mirror.smartmedia.net.id/epel/6/ ... repomd.xml: [Errno -1] re pomd.xml does not match metalink for epel
Trying other mirror.
http://ftp.cuhk.edu.hk/pub/linux/fedora ... repomd.xml: [Errn o -1] repomd.xml does not match metalink for epel
Trying other mirror.
http://mirror2.totbb.net/epel/6/x86_64/ ... repomd.xml: [Errno -1] repomd.xm l does not match metalink for epel
Trying other mirror.
http://ftp.jaist.ac.jp/pub/Linux/Fedora ... repomd.xml: [Errn o -1] repomd.xml does not match metalink for epel
Trying other mirror.

Re: Email Notifications not working

Posted: Mon Nov 07, 2016 3:36 pm
by avandemore
It seems you are running a system which hasn't been updated in quite awhile.

Can you try this? http://stackoverflow.com/questions/3094 ... when-tryin

Re: Email Notifications not working

Posted: Tue Nov 08, 2016 3:06 pm
by sgiworks
Genius!

I was able to fix the problem

Kudos to you :)

Re: Email Notifications not working

Posted: Tue Nov 08, 2016 3:09 pm
by avandemore
Glad to hear it worked. Are we ok to lock this thread?

Re: Email Notifications not working

Posted: Wed Nov 09, 2016 2:12 pm
by sgiworks
Sure, thanks once again