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,
Nagios configuration behind proxy
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios configuration behind proxy
Nagios alerts are commonly a text string echo to the local mail application:
In this example, the method that /bin/mail uses to send the email is what needs to be configured to handle the proxy.
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$
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios configuration behind proxy
Thank you for your reply. Can you please share the configurations required for proxy.
Re: Nagios configuration behind proxy
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.
http://www.postfix.org/BASIC_CONFIGURAT ... interfaces
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!