Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The script can be executed in command line or from the crontab (see: Manage recurring jobs: license expiration check, log events (cron)) using the following command:

# /opt/charon/utils/charon_expchk

Some parameters are available:

  • 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:

# /opt/charon/utils/charon_expchk 15 -nomail -expdat=13-Dec-2018

Custom alert script

A customer script can be created to send alerts for example when a monitoring software is installed.

...