Skip to content
Snippets Groups Projects
Select Git revision
  • 373436cb59bff776cdc6147f051b3f1b9d9f47de
  • master default protected
  • simple-task/7248-eol-check-add-node-22
  • 6877_check_iml_deployment
4 results

check_journallog.md

Blame
  • 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
    v0.1
    
    (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.
    
    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;;