Skip to content

mmarod/puppet-logcheck

Repository files navigation

Logcheck

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with Logcheck
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

The Logcheck module installs and configures the Logcheck service.

Module Description

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.

Setup

What Logcheck affects

  • No services should be affected by Logcheck

Setup requirements

  • Puppet-3.0.0 or later

Beginning with Logcheck

include 'logcheck'

Usage

Use Hiera or directly define class variables

Hiera

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'
}
```

About

Logcheck Puppet Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published