Gmail notification issue #1196
Replies: 15 comments 3 replies
-
Hi @sapiderman |
Beta Was this translation helpful? Give feedback.
-
Hi @arshadmech, Thanks for the report, !'ll look into it. |
Beta Was this translation helpful? Give feedback.
-
hi @arshadmech Gmail worked for me with no issues. Do you have quotation mark (') around your email and password (just in case)? For your reference, about app password. |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman , Thanks for the update... |
Beta Was this translation helpful? Give feedback.
-
Hi @arshadmech, Have you had any progress using the gmail smtp? Did you get it to work? |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman , I am still getting same error, so i stopped working on it. Can you please send me a sample yaml file for the gmail notification. |
Beta Was this translation helpful? Give feedback.
-
Sure, I'm using plain vanilla config something like this: - id: smtp-maitrap
type: smtp
data:
recipients: ['[email protected]']
hostname: smtp.mailtrap.io
port: 2525
username: 'username123'
password: 'password123'
- id: smtp-google
type: smtp
data:
recipients: ['[email protected]']
hostname: smtp.gmail.com
port: 587
username: '[email protected]'
password: '123 123 123 123' As a check, maybe try mailtrap.io, or some other similar service just to see if you can get through. The above settings works for me. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Sure, I'm using plain vanilla config something like this: - id: smtp-maitrap
type: smtp
data:
recipients: ['[email protected]']
hostname: smtp.mailtrap.io
port: 2525
username: 'username123'
password: 'password123'
- id: smtp-google
type: smtp
data:
recipients: ['[email protected]']
hostname: smtp.gmail.com
port: 587
username: '[email protected]'
password: '123 123 123 123' As a check, maybe try mailtrap.io, or some other similar email just to see if you can get through. The above settings works for me. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman , still i am getting same error. please find my yaml file screenshot below and let me know if i need to add anything. |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman Monika.yaml |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman and TEAM, |
Beta Was this translation helpful? Give feedback.
-
hi @arshadmech, i tried using your credentials getting username and password wrong error: can you check name and password? - id: test
type: smtp
data:
recipients: ['[email protected]']
hostname: smtp.gmail.com
port: 587
username: [email protected]
password: ypvghnncbfvhxsir |
Beta Was this translation helpful? Give feedback.
-
Hi @sapiderman , Yes above credentials which you are using are wrong one, i send screenshot to you by putting wrong credentials, but i tested with correct credentials only (username and app password). still i am getting error. Can you send me a sample configuration screenshot which is working for you. Note: Is there anything i need to do in my gmail settings.? |
Beta Was this translation helpful? Give feedback.
-
Also try this smtp setting:
|
Beta Was this translation helpful? Give feedback.
-
First I evaluated Monika by installing it on Windows. Per the documentation, I used Chocolatey in Windows Powershell to install Monika and run. I used the config generator on the website and kept it simple; a GET request of URL with assertion: response.status != 200. I initially had notifications set to type: desktop.
Once I got familiar with Monika, I installed it on a CentOS 9 Stream server. I downloaded the latest version of Monika from the release page and performed a manual installation. I used the same configuration: GET request of URL with assertion: response.status != 200, but this time configured notifications for type: smtp with host: smtp.google.com, port, and credentials.
This is where I received the error message: “Failed to send message using smtp, please check your smtp notification config. Message: You have specified an invalid theme.”
I attempted the smtp configuration on the Windows installation but received the same error message. Other smtp services resulted in the same error message. I also tried an internal smtp server.
The only reference to this error I could find was in this Github discussion.
I thought it interesting that you couldn’t reproduce the error and assumed that you were probably using Node.JS or Docker; not Windows or a manual installation on Linux.
I installed Monika with Node.JS before on a virtual desktop but didn’t test smtp notifications.
I installed it again on CentOS 9 Stream server and configured notifications to my internal smtp server and it sent successfully.
I desired Monika to run in the background and decided to try the Docker installation. That’s what I have running now and smtp notifications are sending successfully using my internal smtp server.
Therefore, configuration didn’t change just the installation method.
***@***.***
From: Budhi ***@***.***>
Sent: Tuesday, December 19, 2023 6:59 AM
To: hyperjumptech/monika ***@***.***>
Cc: Brice Baumgartner ***@***.***>; Mention ***@***.***>
Subject: Re: [hyperjumptech/monika] Gmail notification issue (Discussion #1196)
Hi @bb4varida<https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2JiNHZhcmlkYQ==&i=NjRmMjMzNDQwYTQyYjIxNjY5M2ZiZjU1&t=Z2FoN3VjY1BrQ3Z0WlRRcTJZM3MySmJ2MUd5REtpV25uc2xsblhuSWVnND0=&h=4cf3cc8b1c014d60a4d3e76fb4788e2f&s=AVNPUEhUT0NFTkNSWVBUSVZ-CzEl059Ym1RlqwKl3ZhNfC-dR2N5IDL9CUAdMA_6tA> ,
Thanks for the feedback. Can you elaborate on what the difference between your failed and successful attempts were? What changes to your configuration, if any, between the two. Where was your success, on linux or window? or both using npm and docker?
—
Reply to this email directly, view it on GitHub<https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2h5cGVyanVtcHRlY2gvbW9uaWthL2Rpc2N1c3Npb25zLzExOTYjZGlzY3Vzc2lvbmNvbW1lbnQtNzg5NzE4NQ==&i=NjRmMjMzNDQwYTQyYjIxNjY5M2ZiZjU1&t=TzVERXVXZ2pTeXBITHVFaVllTTJwYzFRajUvYm1iOGM3eUVUN01HVzNKOD0=&h=4cf3cc8b1c014d60a4d3e76fb4788e2f&s=AVNPUEhUT0NFTkNSWVBUSVZ-CzEl059Ym1RlqwKl3ZhNfC-dR2N5IDL9CUAdMA_6tA>, or unsubscribe<https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL25vdGlmaWNhdGlvbnMvdW5zdWJzY3JpYmUtYXV0aC9BMzJFMktQVVVLRkY3VFhFR1NNQzVJM1lLR0ZRTkFWQ05GU002QUFBQUFCQVcyS09MU1ZISTJEU01WUVdJWDNMTVY0M1NSREpPTlJYSzQzVE5GWFc0UTNQTlZXV0szVFVITTNUUU9KWEdFNERL&i=NjRmMjMzNDQwYTQyYjIxNjY5M2ZiZjU1&t=RmZ0R1N2TUY2cVZyQms4MFJSVU56ODYvZDRLdlh2d25DQ1A3eHg2RWQ1Yz0=&h=4cf3cc8b1c014d60a4d3e76fb4788e2f&s=AVNPUEhUT0NFTkNSWVBUSVZ-CzEl059Ym1RlqwKl3ZhNfC-dR2N5IDL9CUAdMA_6tA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
This is Arshad.
When i am doing configuration for url, i added gmail notification alert. When i am running the monika, i am getting this error. please find the yaml file below and error.
notifications:
id: test
type: smtp
data:
recipients: ["[email protected]","[email protected]"]
hostname: smtp.gmail.com
port: 587
username: [email protected]
password: password@123
probes:
id: '1'
name: Monika Landing Page
description: Landing page of awesome Monika
interval: 10 # in seconds
requests:
timeout: 7000 # in milliseconds
alerts: []
Do i need to add anything more????
Beta Was this translation helpful? Give feedback.
All reactions