The Events report (including the data for the Event Logs page) require
The Event Logs page will not work until you follow these instructions for installing the script.
To install the script required to run the Events report
# cd /usr/moab-dist/contrib/events
# chmod u+x events2db.pl
# ./events2db.pl -m
Read the entire document. There is information in the manual not included here.
# ./events2db.pl --dbname=Moab --dbuser=bob --dbpassword=p@ssw0rd --create-schema /opt/moab/stats
Running the script could take a good deal of time depending on how many events you have, but the script must complete successfully before you set up the crontab schedule.
The syntax can be customized based on how often you want the script to run. For real-time reports, 1-5 minutes is the ideal setting. For less overhead on the server, every few hours or even once daily is a better option. The following runs hourly:
0 * * * * /usr/moab-dist/contrib/events/events2db.pl --dbname=Moab --dbuser=bob --dbpassword=p@ssw0rd /opt/moab/stats
This runs without the --create-schema option.
# man crontab
Related topics