...
Alert levels are defined as follows:
Days before expiration (date limited license) | Hours before expiration (time limited license) | Alert Level |
---|
More than 7 | More than 72 hours | INFORMATIONAL |
Between 4 and 7 | Between 49 and 72 hours | MINOR |
Between 2 and 3 | Between 25 and 48 hours | MAJOR |
Less than 2 | Between 0 and 24 hours | CRITICAL |
< 0 | 0 hours and 0 minutes |
Highlight |
---|
|
Example
Command line parameters
...
- Number of days before the license expires that will generate an alert → specify a number of days (default = 7)
- Prevent from sending default email →
-nomail
. This option is useful when a custom script is created to send alerts (see further) - Force the expiration date for debugging →
-expdat=<DD-MMM-YYYY>
where DD = day of the month, MMM = month (3 characters, 1st letter uppercase), YYYY = year
Example (command executed on 21-Jul-2020):
# /opt/charon/utils/charon_expchk 15 -nomail -expdat=1324-Jul-2019 |
...
The command above, with forced expiration date, will provide the following results:
Image Added
Custom alert script
A customer script can be created to send alerts for example when a monitoring software is installed.
...
- $1 = level that can be (case sensitive): Informational, Minor, MAJOR, CRITITALCRITICAL, EXPIRED or NEUTRAL
- Note: NEUTRAL is sent when no alert is detected, used to send counter alert.
- $2 = message starting with ":" followed by the license expiration date, the license number and the product.
- Example:
: 1324-Jul-20192020. License: 10034151001687. Product: CHARON-AXP
Script example using Zabbix software:
...
...
...
...
#-------------------------------------------------------------------------------
|
|
...
...
...
#-------------------------------------------------------------------------------
|
|
...
ZABSEND=/usr/bin/zabbix_sender
|
|
...
ZABCONF=/etc/zabbix/zabbix_agentd.conf
|
|
...
...
...
...
...
...
...
...
in
Informational) LVL="INFORMATION";;
|
|
...
...
...
...
EXPIRED) LVL="DISASTER";;
|
|
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Include Page |
---|
| KBCOMMON:DOC-GoToToc |
---|
| KBCOMMON:DOC-GoToToc |
---|
|