LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Nagios mail Alerts (https://www.linuxquestions.org/questions/linux-server-73/nagios-mail-alerts-755661/)

hoshie66 09-16-2009 11:45 AM

Nagios mail Alerts
 
i have installed the opsview virtual apliance. it is converted to a virtual machine.

i am not getting alerts. I have checked the logs and they are being sent, our company server is rejecting them.

the emails are from nagios@localdomain.l1id.local

how do i remove the localdomain portion of the address.

the /etc/postfix/main.cf file is below:

# WARNING: File managed by puppet
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = yes

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = opsview
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname

mydomain = l1id.local
mydestination =
relayhost = server94.appriver.com
fallback_relay =

mynetworks = 10.165.165.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only

thanks

hasienda 09-16-2009 03:29 PM

Quote:

Originally Posted by hoshie66 (Post 3685382)
i have installed the opsview virtual apliance. it is converted to a virtual machine.

i am not getting alerts. I have checked the logs and they are being sent, our company server is rejecting them.

the emails are from nagios@localdomain.l1id.local

how do i remove the localdomain portion of the address.
[...]

I searched with "nagios email alert config" at forestle.org for you. You may want to go i.e. for hit #5

http://www.tuxradar.com/content/nagios-made-easy

Quote:

The default From: line in the email alerts is the Nagios user - this may not be good if you have a mail server that wants a registered address before it will send. If you're using Exim 4, you need to set the 'untrusted user' option, and then add
Code:

-f address@example.com
to the end of the host-notify-by-email and notify-by-email commands in the commands.cfg file.
Good luck.

hoshie66 09-17-2009 08:25 AM

thank you this worked


All times are GMT -5. The time now is 05:59 PM.