Problem with enabling notifications with postfix

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.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Problem with enabling notifications with postfix

Post by Jessuzz94 »

I tried both, but i configured some thing so, yes it can be te problem x.x
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with enabling notifications with postfix

Post 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?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Problem with enabling notifications with postfix

Post by Jessuzz94 »

i will do to check what throw me
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with enabling notifications with postfix

Post 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.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Problem with enabling notifications with postfix

Post 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! :D
Attachments
4354364.png
4354364.png (9.65 KiB) Viewed 3282 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with enabling notifications with postfix

Post 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?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Problem with enabling notifications with postfix

Post by Jessuzz94 »

You mean that it supossed to work like work in the ubuntu of this thread?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with enabling notifications with postfix

Post 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
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: Problem with enabling notifications with postfix

Post by Jessuzz94 »

And why my centos doesnt send notifications D:, i will do the correct instructions here in my centos server
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem with enabling notifications with postfix

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked