Problem with enabling notifications with postfix
Re: Problem with enabling notifications with postfix
tgriep the notifications are enabled.
my notifications commands? ok, the path that i put in commands.cfg in notify-host-by-email and notify-service-by-email is /usr/bin/mail
my notifications commands? ok, the path that i put in commands.cfg in notify-host-by-email and notify-service-by-email is /usr/bin/mail
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Problem with enabling notifications with postfix
jdalrymple wrote:We need to see your notification commands, notify-host-by-email and notify-service-by-email.
Please share with us the entire command from commands.cfg. Please help us help you.Jessuzz94 wrote:ok, the path that i put in commands.cfg in notify-host-by-email and notify-service-by-email is /usr/bin/mail
Are you sure that the path is /usr/bin/mail?
Code: Select all
/usr/bin/mail -V
Re: Problem with enabling notifications with postfix
Is the path where i have mail, for default, were /bin/mail and in this path i have nothing, i wil post the information
Re: Problem with enabling notifications with postfix
You can run this on your system to see where the mail program is on your system.
Can you upload the commands.cfg file to this post so we can see how the commands are defined?
Code: Select all
which mail
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Problem with enabling notifications with postfix
Yeah is correct, /usr/bin/mail
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Problem with enabling notifications with postfix
Here is the deal Jessuzz94 - we've asked you for your notify-host-by-email and notify-service-by-email commands at least 4 times and you have yet to provide them. They are absolutely 100% the next thing we need to see in order to help you. If you cannot provide them we cannot help you. Kindly provide them please or else we'll have to lock the topic.
Re: Problem with enabling notifications with postfix
Sorry, i cant connected to the server from ssh to copy all the code, it can copy all the text with some editor using only the console witthout mouse?
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Problem with enabling notifications with postfix
screen capture is fine. We just need to review it.
Re: Problem with enabling notifications with postfix
Code: Select all
# 'notify-host-by-email' command definition
define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAd
dress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE
$ **" $CONTACTEMAIL$ -r jessuzz94@gmail.com
}
# 'notify-service-by-email' command definition
define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALI
AS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | usr/bin/mail -s "** $NOTIF
ICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ -r jessuzz94@gmail.com
}
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm