How to Configure Nexus 3 to Send Email Notifications for Low Disk Space?

Hi all,

I’m running Nexus 3.51.0-01, and I’m looking for a way to set up email notifications when the disk space is running low. I know there are options to check the blob store usage, but I can’t find any settings to trigger an email alert for low disk space.

Additionally, in the “Notification Email” field under Tasks, I’m wondering if it’s possible to configure more than one email address to receive these notifications. If so, how can this be done?

Any advice or guidance would be much appreciated!

Thanks!

Hi @pogacnik! Fom my understanding, there is not currently built-in functionality to send email notifications when disk space is running low.

However, there are a few related features and workarounds you can consider:

  • Log Monitoring: The soft quota violations are logged as WARN level messages. You could potentially use an external log monitoring tool to watch for these warnings and trigger email alerts.

  • API Monitoring: Soft quota status is available via a REST API endpoint. You could create a script to periodically check this endpoint and send emails if thresholds are exceeded.

And yes, you can configure multiple email addresses to receive notifications. Separate each email address with a comma in the “Notification Email” field under the task configuration. Here’s an example:

email1@example.com, email2@example.com, email3@example.com

Please note that the email server needs to be properly configured in Nexus Repository Manager for the email notifications to work. You can check and configure the email server settings under “System” → “Email Server” in the Nexus Repository Manager admin console.

1 Like