Versions Compared

Key

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

...

And example of cron job for opEvents, for purging and report tasks:

Code Block
# this cron schedule controls opEvents db purging and reporting
#
# m h dom month dow user command
#
# purge the database once weekly
12 3 * * 5              root /usr/local/opmojo/bin/opevents-cli.pl act=purge
# create daily summary reports
0 9 * * *               root /usr/local/opmojo/bin/opevents-cli.pl act=create-report daily=true
0 15 * * *              root /usr/local/opmojo/bin/opevents-cli.pl act=create-report daily=true
# create weekly summary reports
32 3 * * 1              root /usr/local/opmojo/bin/opevents-cli.pl act=create-report weekly=true
# create monthly summary reports
43 4 1 * *              root /usr/local/opmojo/bin/opevents-cli.pl act=create-report monthly=true

...