Page 2 of 2

Re: Nagios Notifications dont work

Posted: Thu Feb 21, 2019 3:38 pm
by Rook
The command ->

Code: Select all

which mail
Gave me

Code: Select all

/usr/bin/mail.
I changed the path in the commands.cfg from /bin/mail to /usr/bin/mail.

Nagios log is showing:

[1550781328] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;HOST;Free Space VolGroup-lv_root;0;Nagios Admin;q

No more errors, but the mailbox is not receiving any mails.

Is there anything else i can check?.

Re: Nagios Notifications dont work

Posted: Thu Feb 21, 2019 3:55 pm
by scottwilkerson
Make sure postfix is running

Code: Select all

systemctl status postfix
and you can look in the mail log

Code: Select all

tail -f /var/log/mail.log

Re: Nagios Notifications dont work

Posted: Thu Feb 21, 2019 4:07 pm
by Rook
it seems i also had sendmail running on port 25.

Purged everything from sendmail and now postfix is running smoothly.

I just received mail the mailbox.

I want to thank you for the quick support.

You can close this case.

Re: Nagios Notifications dont work

Posted: Thu Feb 21, 2019 5:38 pm
by scottwilkerson
Rook wrote:it seems i also had sendmail running on port 25.

Purged everything from sendmail and now postfix is running smoothly.

I just received mail the mailbox.

I want to thank you for the quick support.

You can close this case.
Great!

Locking thread