The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Quota notification email

igor

Is it possible for a filer to send out an e-mail directly to the user, when they reach soft/hard quota limit? A script, perhaps?

Examples and guides would be most welcome!

Thanks,

Igor

62 REPLIES 62

oweinmann

 

Hi,

 

picking up this old thread again. Anyone successfully implemented notifications for qtree quotas for CDOT 8.3.x and OnCommand Unified Manager 6.2? I see that only user and group quotas can be configured. For qtrees I would have to configure an alarm for each qtree, which is not really user / admin friendly. I wonder why they didn't implement qtree quotas??! As far as I can see there is also no longer a command shell in OnCommand Unified Manager 6.2. Is there any way to remotely control OCUM 6.2 via api? I have over 400 qtrees and all with a different email adress for quota notification...

SRE

We are facing a similar issue where a 7-Mode qtree quota dfm alert implementation with an external powershell script (which change the contents/language of the email based on the qtree) to cdot and ocum 7.1rc1 if failing for the following main reasons so far:

 

- The alert does not define the environment variables which where available in dfm 5.x, so we can't adjust the alert email contents.

- The powershell scripts will not work on the OCUM 7l.1RC1 Appliance and have to be rewritten in perl.

 

We are looking into alternate ways of implementing this functionality, have you had any chance to achieve your goals on cdot for qtree based quotas?

 

As alternative we are thinking to recommend the customer to switch to NTP Software QFS or Northern Solutions but we don't know the products and are wondering if the licensing costs for 10tb and less is even a valid case for them...

 

If you have any experiences please share,

 

Cheers Stefan

connoisseur

Question about vFiler considerations in this issue!

We use vFilers to seperate NAS servers between different customers, and therefore each and every customer have different domain.

Now  I have activated quota for a customer i get reply on that the email can´t be verified.. "email domain/user can´t be verified"

This customer has like 5000 users so it will be a massive work to modify each and every user like the steps above in this tread. (Still if scriptet we need someone to mach the username to the correct email)

Also, is it not possible to have the email notification only show the share name?

Must it show complete volume/qtree path?

Thanks

igor

Are there at least any LOG files that I can check to see whether Ops Manager attempts to send out e-mails or not?

adaikkap

Hi

     Can you check the following options.

See if userEnableAlerts is yes by default its enabled.

[root@lnx ~]# dfm options list userEnableAlerts
Option           Value
---------------- ------------------------------
userEnableAlerts yes

The dfm sends the username for which the quota exceeded, its the mailserver that should resolve the domain name.If the mailserver domain name is different set the below option so that dfm sends the username with domain.

By default its blank

[root@lnx ~]# dfm options list userEmailDefaultDomain
Option                 Value
---------------------- ------------------------------
userEmailDefaultDomain

Similarly see if the value set to SMTP server resolves. ping and see if your smtp server is aliases to mail by doing the following.

ping mail in the command line else change it to appropriate value.

[root@lnx~]# dfm options list SMTPServerName
Option          Value
--------------- ------------------------------
SMTPServerName  mail
[root@lnx ~]#

If the events are generated then there is not other reason than listed above why the alert is not sent to the user.

Regards

adai

igor

Hello Adai,

Well, I've tried both approaches.

First, to specify Email Default Domain which would be appended to e-mail address. On my test domain LAB, I've a user named Joe with a home folder at /vol1 volume. I've entered my own e-mail address name (igor) and specified our regular email domain (osap.rs). Alerts are enabled, but I've also enabled user quota alerts on the volume level as well. SMTP server has been defined and pinged, and a there's an account with no password which I use for mail tests ready and waiting. I've tested alarms with it and emails are getting through alright...

Here's the checklist:

C:\>dfm options list userEnableAlerts
Option           Value
---------------- ------------------------------
userEnableAlerts yes

C:\>dfm quota user get LAB\joe
QuotaUser:                            LAB\joe
Email Address for Quota Alerts:       igor
User Quota Full Threshold (%):        90
User Quota Nearly Full Threshold (%): 80

C:\>dfm options list userEmailDefaultDomain
Option                 Value
---------------------- ------------------------------
userEmailDefaultDomain osap.rs

C:\>dfm options list SMTPServerName
Option          Value
--------------- ------------------------------
SMTPServerName  mail.ourspace.si

C:\>ping mail.ourspace.si
Pinging mail.ourspace.si [84.52.141.183] with 32 bytes of data:
Reply from 84.52.141.183: bytes=32 time=30ms TTL=118
Reply from 84.52.141.183: bytes=32 time=42ms TTL=118
Reply from 84.52.141.183: bytes=32 time=32ms TTL=118
Reply from 84.52.141.183: bytes=32 time=29ms TTL=118
Ping statistics for 84.52.141.183:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 29ms, Maximum = 42ms, Average = 33ms

C:\>dfm volume get storage:/vol1
Volume: storage:/vol1
Volume Full Threshold (%): 90
Volume Nearly Full Threshold (%): 80
Volume Full Threshold Interval: 00:00:00
Enable User Quota Alerts, not available for vserver volumes: Yes
etc...

As usual, I went on and exceeded the quota and the event was registered in OM under User Quota Events. If I understand correctly, DFM should've used igor and osap.rs parameters, to send out a quota alert to igor@osap.rs via set SMTP server. Still, nothing happened.  (I have screenshots but I cannot insert them here for some reason)

Then I tried tried the default approach, leaving the Email Default Domain blank and specifying a full e-mail address for the user:

C:\>dfm options set userEmailDefaultDomain=none
Cleared default email domain for quota alerts.

C:\>dfm options list userEmailDefaultDomain
Option                 Value
---------------------- ------------------------------
userEmailDefaultDomain

C:\>dfm quota user set -s lab\joe userEmail=igor@osap.rs
Changed email address for quota alerts for user LAB\joe (125) to igor@osap.rs.

C:\>dfm quota user get LAB\joe
QuotaUser:                           LAB\joe
Email Address for Quota Alerts:       igor@osap.rs
User Quota Full Threshold (%):        90
User Quota Nearly Full Threshold (%): 80

I've exceeded the quota once again but with the same results. User alerts are not getting through...

Can you send me the checklist from your lab? Perhaps an example of what a generated user alert e-mail looks like?

adaikkap

Hi

     Can you retry this entire stuff of creating a user quota full event.And capture the following.

dfm event detail <event id> for the user quota full event.

and send us the following log files. from the <installdir>/NTAPdfm/log

dfmeventd*.log and

alert*.log

Also dfm host diag for the filer

Regards

adai

igor

I generated an event with timestamp Oct 05 12:57:27. Requested files are attached.

It's funny...

Alert.log says the an e-mail has been sent out for "alarm 3" which is most the alarm I had set up for User Disk Space Quota Full events. Those e-mails are coming though.

However, 4 seconds later, DFMEvent.log registeres SMTP failure to send the e-mail (SMTP server replied '554 5.1.0 Sender Denied'). I think this might be the the problem with user notification e-mails!

But, how come there were no SMTP issues with the alarm? Both alarms & user alerts use the same mail account and mail server defined under Events and Alerts, don't they?

Regards,

Igor

adaikkap

Hi

     Can check the same time as when this error occurred what's the windows application viewer says ?

Regards

adai

igor

Is Operation Manager using the same SMTP mechanism in both cases?

P.S. I've been reading up on Ops Manager and I read somewhere that people should be careful when defining mailformat so that it conforms to SMTP protocol. Perhaps the difference between alarms & user alerts is in the way Ops Manager writes email headers or something?

adaikkap

Hi,

     No they both use the same SMTP servername,this is something you will have to take it up with the Exchange server Admin.

Regards

adai

igor

Hello, Adai.

I've already requested them to take a look and, at first glance, they didn't find anything wrong... I don't know, it doesn't make sense that almost identical e-mails should produce different results. I tried using a new e-mail account for OM's messaging and it came out the same. Alarms go through, user alerts do not.

When I was demonstrating OM at our client's, the one for whome I need to make this work, I tested the OM messaging with their e-mail server but the same SMTP issue was observed. And their e-mail server has absolutely no restrictions - you merely have to be a part of a internal subnet, and you can send out e-mails without even having to perform account setup on Exchange. It's wide open.

Still, I appreciate your help.

If you think this is no longer an OM issue, I'll ask them to keep looking for a problem.

Regards,

Igor

adaikkap

I will try the best from my side.

Regards

adai

oweinmann

Hi,

has this issue ever been fixed? I'm facinf the exact same problem. We have a win2k8 server running dfm 4.2 and smtp is a exchange 2010 server.

oweinmann

Hi,

I got it working. I set the default smtp domain and removed the domain name from the user email setting.

It's a bit disappoiting that ops manager is not capable of retrieving the users email address from AD.

igor

Unfortunatelly, it can not do that. But you can export email addresses from AD and then import then into DFM by using dfm mailmap import commmand.

oweinmann

Should be easy to write a script, but still I can't understand why they havent implemented this yet. Also it would be nice if quota notifications would be send to users based on snmp traps.

oweinmann

Ok we now have a powershell script to import the user email addresses, but what about the notification on qtrees? I was expecting to have an additional field in the mailmap export where the qtree is specified. But there is only USER. We have over 200 qtrees with quotas and we have to configure them all in the webgui?

igor

Sending out notification based on SNMP traps would be both easier & faster, yes. Unfortunatelly, I lack knowledge in that department. Most of our clients have slowly growing data which means their users will be notified long before they reach their hard quota, so it's been an adequate solution thus far.

oweinmann

Looks like I have to use my modified trapnotify script from the toolchest again. At least this is working with Traps, User and Qtree Quota.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public