Page 1 of 1
Nagios configuration behind proxy
Posted: Thu Jan 16, 2020 6:04 am
by abrark
Hi,
I have installed nagios core successfully, but alerts are not working. I know my server is running on proxy. Please suggest how i get email alerts working for nagios on a server where proxy is enabled.
Regards,
Re: Nagios configuration behind proxy
Posted: Thu Jan 16, 2020 5:39 pm
by Box293
Nagios alerts are commonly a text string echo to the local mail application:
Code: Select all
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
In this example, the method that
/bin/mail uses to send the email is what needs to be configured to handle the proxy.
Re: Nagios configuration behind proxy
Posted: Thu Jan 16, 2020 11:24 pm
by abrark
Thank you for your reply. Can you please share the configurations required for proxy.
Re: Nagios configuration behind proxy
Posted: Fri Jan 17, 2020 2:05 pm
by lmiltchev
This is out of scope of Nagios support. I am not sure what kind of mail you are currently using, but here's some info on using proxy with postfix:
http://www.postfix.org/BASIC_CONFIGURAT ... interfaces
Hope this helps.