Nagios core not sending notification emails

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
mrkrupp
Posts: 22
Joined: Fri Apr 01, 2016 5:23 pm

Re: Nagios core not sending notification emails

Post by mrkrupp »

This is what I got when I tried the test:

Code: Select all

Jun  1 14:34:35 bauspap218 postfix/pickup[26839]: 69D3F8185F3D: uid=0 from=<root>
Jun  1 14:34:35 bauspap218 postfix/cleanup[28223]: 69D3F8185F3D: message-id=<[email protected]>
Jun  1 14:34:35 bauspap218 postfix/qmgr[26840]: 69D3F8185F3D: from=<[email protected]>, size=456, nrcpt=1 (queue active)
I did not receive email.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios core not sending notification emails

Post by tgriep »

Can you run this command to see if there are any messages in the mail queue on the nagios server?

Code: Select all

mailq
If there are a lot of messages in the queue, it could take a while.
Also, could your ISP be blocking your emails?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mrkrupp
Posts: 22
Joined: Fri Apr 01, 2016 5:23 pm

Re: Nagios core not sending notification emails

Post by mrkrupp »

nothing from nagios is in the mailq. I do not think it is my ISP, as it was all working before. I think this stopped working when I added a GUI to the system via the "Server with GUI" package from RHEL. It may have altered some of my settings from whatever installed with the package.

Code: Select all

[root@bauspap218 etc]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
69D3F8185F3D      456 Wed Jun  1 14:34:35  [email protected]
(Host or domain name not found. Name service error for name=bam.com type=MX: Host not found, try again)
                                         [email protected]
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios core not sending notification emails

Post by Box293 »

You will need to contact RHEL for support on resolving your networking issue. Some of the basic commands we've asked you to run indicate that it's nothing to do with Nagios.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mrkrupp
Posts: 22
Joined: Fri Apr 01, 2016 5:23 pm

Re: Nagios core not sending notification emails

Post by mrkrupp »

Is there a simple way to have nagios send a test email message? I think I figured it out I disabled one of the services and my test emails go through.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios core not sending notification emails

Post by Box293 »

In the web interface, go to a host or service object.
Under commands click "Send custom (host/service) Notification"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked