Man page - thruk(3)

Packages contas this manual

Manual

thruk(3) User Contributed Perl Documentation thruk(3)

thruk - Command Line Utility for Thruk Monitoring Gui

  Usage: thruk [globaloptions] <command> [commandoptions]
  Globaloptions:
    -h, --help                    Show this help message and exit
    -v, --verbose                 Print verbose output
    -q, --quiet                   Print less output
    -V, --version                 Print version
    -b, --backend=<backend>       Comma seperated list of backends/sites
                                  which should be used for querys.
    -A, --auth=<auth>             Set username for querys
    -c, --credential=<pw>         Credential when connecting to remote
                                  Thruk installations specified by the
                                  remote-url.
        --remote-url=<url>        URL to remote installation.
    -k, --insecure                skip ssl certificate verification.
    -y, --yes                     answer yes to all given questions.
    -f, --force                   some actions need to be forced
  Compatibility options:
        --list-commands           List available commands.
    -l, --list-backends           List available backends/sites. Alias for 'backend list'.
    -a, --action=<command>        Perform given action. see below for a list.

This script gives access to various parts of the Thruk gui and allows to generate excel reports, csv exports or any other url by using command line and bypassing the webserver.

Available commands will be listed when running thruk without any argument or by

  %> thruk --list-commands

script has the following arguments

    print help and exit
    
    print verbose output too
    
    print version and exit
    
    specify backend(s), otherwise the default backends will be
    used. Specify the key of the backend. Use <-l> to get a list
    of backends.
    All default backends (backends without the 'hidden' flag) will be used unless
    backend(s) are specified with this option.
    Use 'ALL' to use all backends, regardless of the hidden flag.
    
    get list of available backends
    
    get list of available commands.
    
    This is deprecated, use the new form 'thruk <cmd> ...' instead.
    perform selected action:
    Scheduling Commands
      - fix_scheduling(=filter)     balance scheduling or all hosts and services
                                    or just a group by adding a filter like
                                    fix_scheduling=hg:<hostgroup>
                                    fix_scheduling=sg:<servicegroup>
    Internal Commands
      - compile                     compile templates for faster access
      - clean_dashboards            remove empty dashboards which are older than 1 day
      - stop/restart                stop thruk process (restart assumes they will be restarted automatically from apache)
    
    use this username for authentication
    
    Skip ssl certificate verification when accessing remote url.
    
    answer yes to a given questions during commands.
    

thruk returns 0 on success and >= 1 otherwise

List available backends:

  %> thruk -l

List available commands:

  %> thruk

Sven Nierlein, 2009-present, <sven@nierlein.org>

2026-02-06 perl v5.40.1