nagios smtp gmail account

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
igsmigs
Posts: 3
Joined: Thu Apr 02, 2015 6:06 am

nagios smtp gmail account

Post by igsmigs »

hi guys,

can somebody help me with notification mail so that nagios send notifications on gmail account ..i running centos7 nagios 4.1.1 core with postfix..i try some guids that i find but no luck for me...notification mail is working on my server(local), but i would like to have those notifications on gmail account to...please let me know if u need any additional info

regards
igsmigs
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios smtp gmail account

Post by hsmith »

Can I get some clarification here? Gmail should be able to receive email from sendmail just fine, but generally sends it to the spam folder in my experience.
Former Nagios Employee.
me.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: nagios smtp gmail account

Post by rhassing »

Could you please check your logfiles if it possible to mail to gmail?
Normally the infor should be in /var/log/maillog
Rob Hassing
Image
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nagios smtp gmail account

Post by hsmith »

Thanks Rob :)
Former Nagios Employee.
me.
igsmigs
Posts: 3
Joined: Thu Apr 02, 2015 6:06 am

Re: nagios smtp gmail account

Post by igsmigs »

hi,

i finaly setup nagios to send notification to gmail account ... i configure postfix main.cf
relayhost = smtp.gmail.com:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous

and create sasl passwd in etc/postfix .. and put there - smtp.gmail.com:587 username:pass

after that just hit postmap /etc/postfix/sasl_passwd
and finish...in gmail account turn on allow apps options

bye
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nagios smtp gmail account

Post by rkennedy »

Thanks for letting us know how you accomplished it! Am I good to close this thread now or do you need more assistance?
Former Nagios Employee
igsmigs
Posts: 3
Joined: Thu Apr 02, 2015 6:06 am

Re: nagios smtp gmail account

Post by igsmigs »

hi,

u can close this ticket

thnx
Locked