VHS Ingest Monitor

VHS Ingest Monitor is a simple cronjob that monitors VHS workflows and send mails with the result.

The watchdog will send a mail about files that have completed, have failed or have timed out. It is intended to be run from cron at regular intervals.

Installing

Just unzip the package, and edit the configuration files.

Configuration

Configured in the file vhswatchdog.properties in the config folder.

workflow.state.monitor.base.url=http://localhost:9511/workflowstatemonitor
workflow.vhs.timeout=1800
mail.smtp.host=post.statsbiblioteket.dk
mail.smtp.port=25
vhsingestmonitor.recipients.addresses=test1@example.com,test2@example.com
vhsingestmonitor.sender.address=test@example.com

The options are as follows:

workflow.state.monitor.base.url - should point to the URL a workflow state monitor dedicated to the VHS workflows
workflow.vhs.timeout - time in seconds before a workflow is considered to have timed out
mail.smtp.host - host of mail server used for sending email
mail.smtp.port - port of mail server used for sending email
vhsingestmonitor.recipients.addresses - recipients of emails about workflow, may be a comma separated list
vhsingestmonitor.sender.address - sender of emails about workflow

Furthermore, the file logback.xml file contains logging properties

Running

In the distributed package, run bin/watchdog.sh

To run from cron every five minutes, do

*/5 * * * * /home/doms/vhs-ingest-monitor-cronjob/bin/watchdog.sh