Notify me

A small yet nice new feature in NetWorker 8.1 is a limited form of parameter expansion in NetWorker notification action entries.

I spotted this in the Scheduled Clone Notification:

name: Scheduled Clone Completion;
action: "/bin/mail -s \"orilla scheduled cloning '${NSR clone}' completion\" root";

This isn’t something that’s heavily documented, but it was fairly easy to intuit that was likely to be a variable instantiation of the invoking resource name, and a quick test verified that theory to be correct.

So, I decided to play around with everyone’s favourite notification: Savegroup Completion:

name: Savegroup completion;
action: "/bin/mail -s \"orilla savegroup '${NSR group}' completion\" root";

Sure enough, savegroup completion email subjects were populated with the group name:

From: root <root@orilla.turbamentis.int>
To: root <root@orilla.turbamentis.int>
Subject: orilla savegroup 'Staging Servers' completion

It’s not an earth shattering change in NetWorker, but it’s certainly a nice-to-have.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.