cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set Alert when License near expire

SOLVED
machiasiaweb
Occasional Contributor

How can I set Alert when License near expire

Hello,

As title, I am using Stingray Traffic Manager ver 9.0.  Is it any way to setup some alert to remind me the license will be expire? 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
agosse
New Contributor

Re: How can I set Alert when License near expire

Hi Machi,

All you need to do in this case is configure an action handler for license-related events:

  1. In the UI, navigate to System --> Alerting
  2. Click the Manage Actions button
  3. Click the E-Mail action to modify it
  4. Populate the to: and server: fields
  5. Click the Update and Test button (to make sure that you have entered the correct settings; adjust if required)
  6. Navigate back to System --> Alerting
  7. From the Select Event Type drop-down box, select License Key Problem
  8. From the Select Action drop-down box, select E-Mail
  9. Click the Update button

You should now receive an email when your license key is nearing its expiration date.

Cheers,

--

Alex

View solution in original post

5 REPLIES 5
agosse
New Contributor

Re: How can I set Alert when License near expire

Hi Machi,

All you need to do in this case is configure an action handler for license-related events:

  1. In the UI, navigate to System --> Alerting
  2. Click the Manage Actions button
  3. Click the E-Mail action to modify it
  4. Populate the to: and server: fields
  5. Click the Update and Test button (to make sure that you have entered the correct settings; adjust if required)
  6. Navigate back to System --> Alerting
  7. From the Select Event Type drop-down box, select License Key Problem
  8. From the Select Action drop-down box, select E-Mail
  9. Click the Update button

You should now receive an email when your license key is nearing its expiration date.

Cheers,

--

Alex

machiasiaweb
Occasional Contributor

Re: How can I set Alert when License near expire

Hi Alex

Thanks for your solution.  Unfortunately that is limited as my license cannot use advanced alerting features.  Did any other way?

Thanks!

owen
Frequent Contributor

Re: How can I set Alert when License near expire

Hi Machi,

Please check with your account manager or our support team to confirm the features of the license type that you have.  You will need to have the 'alerting' capability to use the solution that Alex described above, and you will need to use version 5.1 or later of the traffic manager software

regards

Owen

agosse
New Contributor

Re: Re: How can I set Alert when License near expire

Hi Machi,

You can also get a shell script to read the expiry date out of the raw key file, and send you an email if it is about to expire:

#!/bin/bash -e

KEYFILE='/opt/riverbed/zxtm/conf/licensekeys/112975'
RCPT='[email protected]'
DAYS=14
SECONDS=$(($DAYS*86400))
KEYDATE=$(egrep '^#= Expires\s+:\ .*$' "$KEYFILE" | sed -e 's!#= Expires\s\+:\s!!g' | date +'%s' -d -)
NOWDATE=$(date +'%s')
MARGIN=$(($NOWDATE+$SECONDS))

if [[ $MARGIN -ge $KEYDATE ]];then
     mailx -s "WARNING: Stingray license key expires in $DAYS days!" "$RCPT" <<EOF
This is some email text.

EOF
fi

If you want this to run on a regular basis automatically, you'll need to add this to root's crontab (see man crontab for details on how to do that).  NOTE: This example also requires the mailx utility to be installed.  On my Ubuntu box, the required package is called bsd-mailx.

Hope this helps!

--

Alex

machiasiaweb
Occasional Contributor

Re: How can I set Alert when License near expire

Thx!