Must-share information (formatted with Markdown):
- SonarQube EE version 8.xx
- Receive Email notification for License Expiring and LOC threshold reached
- Configure SMTP relay server and able to fire test email from it
Must-share information (formatted with Markdown):
Hi @gdeep,
The instructions for configuring SMTP for SonarQube are not unique so you can find many articles on internet to find one. Here’s one that helped me: Configure SMTP for outbound emails
Here’s a gmail example I used:
Joe
I am able to setup smtp relay server but the global notifications (License Expiry and LOC threshold notifications )are not getting triggered although I am able to fire test notification from SQ as well.
Hi @gdeep:
As shown in the License administration documentation:
Global Administrator notifications
The License Manager has two built-in notification mechanisms (notifications are sent to Global Administrators). Global administrators will get notifications when:
- the license is about to expire – a reminder is sent two months and again one month before your license expires.
- the configurable LOC threshold is exceeded – you can change this threshold using the indicator on the LOC gauge.
- A background job runs at server startup and then every 24 hours to check the LOC threshold and decide if a notification should be sent.
- The background job does not check the validity of SMTP server settings and whether the global administrator email addresses are set up. For global administrators to receive notifications, these >settings need to be correctly configured before the LOC threshold is reached or exceeded.
Try following my instructions to test the LOC threshold email notification:
delete from internal_properties where kee = 'license.notif.loc';
Then verify it’s missing:
select * from internal_properties order by kee asc;
sonar.notification.delay
parameter in SonarQube to make the delay shorter: Notifications in SonarQube.Somehow it worked after restarting thanks for the help
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.