# check_rspamd

Wrapper script for checking state of rspamd and last timestamp since last
write to its log file.

## Requirements

There are no special requirements needed to run this Plugin

## Usage

It is possible to customize the number of hours since last write.

Example usage:
./check_rspamd -t 5

Note: This parameter is optional. The default value is 3.

## Returns

- OK: rspamd runs properly and last write to its log file is less than 3 hours
- CRIT: There are multiple causes if state is critical
     - The check of ``check_http`` already returned an error
     - The log file of rspamd does not exist
     - The last write to the log file is older than 3 (or specified number) hours
