Page 1 of 1

Gamil APP Passowrd not working

Posted: Mon Mar 22, 2021 12:21 pm
by sona9768
Trying to setup Gmail for Alert notification using the App password feature of gmail, but while testing the Email settings it is getting failed.
Raised a ticket but nagios customer care says that the gmail app password is not supported on nagios xi.
Cant buy this because it was working fine earlier, and some times i do get email alerts from the Nagios XI using the Gmail account.
Ticket No. 595295

Re: Gamil APP Passowrd not working

Posted: Mon Mar 22, 2021 4:42 pm
by dchurch
Should be in the email logs in Nagios XI if it's failing to authenticate.

Keep in mind that SMTP authentication needs to include the full email address in the user name field. For example:

- From: [email protected]
- Username: myaccount
- App Password: abcdefghasdf1234
- SMTP host: smtp.gmail.com
- SMTP port: 587

Keep in mind that Gmail will reject sending mail with a "From" address field that it doesn't recognize as belonging to you (check inside Gmail settings to add addresses).

If you PM me a system profile I can diagnose further. Get one by going to Admin (top menu) => System Profile (in the left menu), then clicking the blue button.

If you're unable to generate the the profile through the web interface, please try generating it from the command line by running these commands as root:

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile*
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip file.
If the profile script fails, please include the ENTIRE output.