- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with Logcheck
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
The Logcheck module installs and configures the Logcheck service.
Logcheck is a simple utility which is designed to allow a system administrator to view the logfiles which are produced upon hosts under their control. It does this by mailing summaries of the logfiles to them, after first filtering out "normal" entries. Normal entries are entries which match one of the many included regular expression files contain in the database.
This module installs and configures Logcheck.
- No services should be affected by Logcheck
- Puppet-3.0.0 or later
include 'logcheck'
Use Hiera or directly define class variables
Include the Class
include logcheck
```
Hiera Data
````puppet
logcheck::config:
REPORTLEVEL: server
SENDMAILTO: [email protected]
ADDTAG: yes
```
### Define variables explicitly
Include the Class
````puppet
class { 'logcheck':
config => {
'REPORTLEVEL' => 'server',
'SENDMAILTO' => '[email protected]',
'ADDTAG' => 'yes'
}
}
```
## Reference
### Classes
### Public Classes
* [logcheck](#logcheck): The Logcheck class
### `logcheck`
#### Parameters
### `logcheck::config`
The changes to make to the logcheck configuration file. Augeas is used to implement
the changes using the Shellvars lens.
### `logcheck::package`
The name of the logcheck package. Defaults to 'logcheck'
### `logcheck::user`
The name of the logcheck user. Defaults to 'logcheck'
### `logcheck::configfile`
The path to logcheck.conf. Default is /etc/logcheck/logcheck.conf
### `logcheck::crons`
A hash of crons to run logcheck. Default is:
```
'logcheck' => {
'command' => 'if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi',
'user' => 'logcheck',
'minute' => 2
}, 'logcheck-reboot' => {
'command' => 'if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi',
'user' => 'logcheck',
'special' => 'reboot'
}
```