cancel
Showing results for 
Search instead for 
Did you mean: 

Generate email when Prognosis license usage is above 90%

Angel_Castaneda
05 Base Camper

Generate email when Prognosis license usage is above 90%

I currently receive alerts from the LicenseAnalyst once the license number has been exceeded, and the countdown before the WebUI shuts down.

 

I'm looking for a way to have an alert generated when I've reached 90% of my Prognosis license allocation. Is there a configurable value anywhere?

1 ACCEPTED SOLUTION

Accepted Solutions
Scott_Clement
Expert

Re: Generate email when Prognosis license usage is above 90%

Hi @Angel_Castaneda,

 

The LicenseAnalyst rule checks the WVLOG record (Prognosis Error Log) to identify entries that indicate the license count has been exceeded, so it's alerting you after the count has been exceeded, which might not be ideal.

There are a couple of rules defined in the WindowsAnalyst that check license usage:

The CheckLicensesUsed rule aggregates the PHONELIC values from valid entries in the IPTGEN record to get a usage value.
The CheckLicensesPurchased rule aggregates the NUMPHONS value from valid entries in the PLICENSE record.
Finally, the CheckLicensesMain rule is where it compares the previous two values and it'll trigger when the number of licenses used either matches or exceeds the number licensed.
I was able to extract these rules and add them to a separate analyst. All I had to do was change this check:

 

    IF UsedLicenses - PurchasedLicenses > 0

 

To:

    IF (UsedLicenses / PurchasedLicenses) > 0.90

 

Though, I've actually used a variable that you can adjust at the top of the analyst.

I'll attach the example I created and hopefully this will help provide you with an early (earlier?) warning when you're getting close to exceeding your license entitlement.

 

A couple of things to note:

  1. The rules are designed to run only once per day, just after 1am. Some platforms (like CUCM and Avaya) perform daily maintenance tasks around 4am, which can include a refresh of the phone table. You may want to perform the checks after this in some cases and you may also need to account for timezone differences, depending on where your managing/monitoring node is located.
  2. The rule dispatches using the out-of-box SAMPLE Dispatch Manager profile. You can change the destination by replacing SAMPLE with your custom DISPMAN profile for MSG 2604 in the MSG_TEXT section.

Regards,

Scott Clement

View solution in original post

3 REPLIES 3
Scott_Clement
Expert

Re: Generate email when Prognosis license usage is above 90%

Hi @Angel_Castaneda,

 

The LicenseAnalyst rule checks the WVLOG record (Prognosis Error Log) to identify entries that indicate the license count has been exceeded, so it's alerting you after the count has been exceeded, which might not be ideal.

There are a couple of rules defined in the WindowsAnalyst that check license usage:

The CheckLicensesUsed rule aggregates the PHONELIC values from valid entries in the IPTGEN record to get a usage value.
The CheckLicensesPurchased rule aggregates the NUMPHONS value from valid entries in the PLICENSE record.
Finally, the CheckLicensesMain rule is where it compares the previous two values and it'll trigger when the number of licenses used either matches or exceeds the number licensed.
I was able to extract these rules and add them to a separate analyst. All I had to do was change this check:

 

    IF UsedLicenses - PurchasedLicenses > 0

 

To:

    IF (UsedLicenses / PurchasedLicenses) > 0.90

 

Though, I've actually used a variable that you can adjust at the top of the analyst.

I'll attach the example I created and hopefully this will help provide you with an early (earlier?) warning when you're getting close to exceeding your license entitlement.

 

A couple of things to note:

  1. The rules are designed to run only once per day, just after 1am. Some platforms (like CUCM and Avaya) perform daily maintenance tasks around 4am, which can include a refresh of the phone table. You may want to perform the checks after this in some cases and you may also need to account for timezone differences, depending on where your managing/monitoring node is located.
  2. The rule dispatches using the out-of-box SAMPLE Dispatch Manager profile. You can change the destination by replacing SAMPLE with your custom DISPMAN profile for MSG 2604 in the MSG_TEXT section.

Regards,

Scott Clement

Angel_Castaneda
05 Base Camper

Re: Generate email when Prognosis license usage is above 90%

This is great. Thank you for your assistance.

Scott_Clement
Expert

Re: Generate email when Prognosis license usage is above 90%

No problem at all @Angel_Castaneda, glad that helped!

 

If it's also not too much trouble, could you please mark this as answered if you can? It will hopefully make it easier for others to find this solution a bit quicker when searching.

 

Thanks and regards,

Scott Clement