Check Systemd unit

Introduction

This check shows the count of written entries in the journallog per minute. This check requires access to journalctl.

Requirements

  • journalctl binary
  • sudo permissions to journalctl
icingaclient ALL=(ALL) NOPASSWD: /bin/journalctl

Syntax

______________________________________________________________________

CHECK_JOURNALLOG
v1.0

(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3

https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_journallog.html
______________________________________________________________________

Show number of lines in journallog per min.
A strong change of the written lines per min COULD indicate a problem.
It requires sudo permission on /bin/journalctl

The status is ...
- unknown - if journalctl is not available
          - if the script is started the 1st time and stores the last 
            line of the journallog
- ok - when showing written tnries per min
- warning/ critical - when giving -c and -w parameter values

This plugin sends performancedata.

SYNTAX:
  check_journallog [-h] [-w WARN_LIMIT] [-c CRITICAL_LIMIT]

OPTIONS:
  -h                this help
  -w VALUE          warning level  (default: 0)
  -c VALUE          critical level (default: 0)

PARAMETERS:
  None.

EXAMPLES:

  check_journallog  show count of newly written log entries
  check_journallog -w 100 -c 200
                    Set warning level to 100 written lines per min and
                    critical to 200.
  check_journallog -w 100
                    Set warning level to 100 written lines per min but
                    no critical limit. This check then never will send a
                    critical status.

Examples

./check_journallog returns

./check_journallog
OK: Journallog stored 14 lines per min
Limits: No warning level; No critical level 
 |lines-per-min=14;;