Problem with enabling notifications with postfix
Re: Problem with enabling notifications with postfix
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
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?
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
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
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
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!
one issue, the tutorial that i used was for ubuntu, it can work for centos?,
again, Thanks!
- Attachments
-
- 4354364.png (9.65 KiB) Viewed 3281 times
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Problem with enabling notifications with postfix
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?
Can we lock this topic?
Re: Problem with enabling notifications with postfix
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
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
NOTHING to configure. It JUST WORKS.
https://assets.nagios.com/downloads/nag ... Source.pdf
Re: Problem with enabling notifications with postfix
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
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!