...
- 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
...
# /opt/charon/utils/charon_expchk 15 -nomail -expdat=13-DecJul-20182019 |
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, CRITITAL, 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:
: 13-DecJul-20182019. License: 1003415. Product: CHARON-AXP
- Example:
...