Page 4 of 5
Re: Problem with enabling notifications with postfix
Posted: Mon Jul 20, 2015 12:43 pm
by Jessuzz94
I tried both, but i configured some thing so, yes it can be te problem x.x
Re: Problem with enabling notifications with postfix
Posted: Mon Jul 20, 2015 12:52 pm
by jdalrymple
I'm stating that it MUST be "/usr/bin/mail", the code that you showed us *WILL NOT* work.
If using that in your notify-host-by-email and notify-service-by-email commands (restart nagios after adjusting) what happens in /var/log/messages when a notification is attempted?
Re: Problem with enabling notifications with postfix
Posted: Mon Jul 20, 2015 2:16 pm
by Jessuzz94
i will do to check what throw me
Re: Problem with enabling notifications with postfix
Posted: Mon Jul 20, 2015 4:43 pm
by jdalrymple
I'm sorry, I don't understand your previous post. That said - please change your commands.cfg using the path "/usr/bin/mail" as I indicated, then restart Nagios and see if the error changes in /var/log/messages when Nagios tries to send a notification out.
Re: Problem with enabling notifications with postfix
Posted: Tue Jul 21, 2015 12:27 pm
by Jessuzz94
Like you say, i think that it works! sorry for that syntax error of the "/" i knew that it dont recognized the path but i took that isnt was important, :c, so very thanks men!
one issue, the tutorial that i used was for ubuntu, it can work for centos?,
again, Thanks!

Re: Problem with enabling notifications with postfix
Posted: Tue Jul 21, 2015 1:40 pm
by jdalrymple
If you do a Core install on CentOS notifications work with Postfix straight out of the box, no configuration necessary.
Can we lock this topic?
Re: Problem with enabling notifications with postfix
Posted: Tue Jul 21, 2015 1:54 pm
by Jessuzz94
You mean that it supossed to work like work in the ubuntu of this thread?
Re: Problem with enabling notifications with postfix
Posted: Tue Jul 21, 2015 3:31 pm
by jdalrymple
If you install Core on a CentOS box using our instructions notifications will be sent out without ANY configuration except specifying your contacts E-mail address.
NOTHING to configure. It JUST WORKS.
https://assets.nagios.com/downloads/nag ... Source.pdf
Re: Problem with enabling notifications with postfix
Posted: Wed Jul 22, 2015 1:46 pm
by Jessuzz94
And why my centos doesnt send notifications D:, i will do the correct instructions here in my centos server
Re: Problem with enabling notifications with postfix
Posted: Wed Jul 22, 2015 2:40 pm
by tgriep
Notifications would work out of the box if your ISP allows your system to send emails directly. Most ISP's don't allow that. That it why you have to edit postfix to forward email to your ISP and the -r to the notify-by-email commands to change the from email address.