Skip to main content

Curses interface to Checkmk Raw.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Check Commander

Check Commander is an efficient curses interface for the monitoring software Checkmk.

Logo

Most day-to-day activities like time limited acknowledgement, downtime, reinventorize, look up server in a wiki, copy alert text for a ticket system and SSH in to servers can be done with a few keypresses. See screenshots to understand what it's about.

Screenshots

SSH to selected host: SSH to selected host v1.2

Acknowledge an alert and display help: Acknowledge and help v.8

Show details for an alert: Details v.6

Getting Started

Prerequisites

  • An up to date Checkmk instance.
  • Linux (not tested on other platforms yet)
  • Python 3.6 or later

Installation

From PIP:

pip3 install checkmk-commander

Run command: chkcom

Configuration

You need a "machine" account for your Checkmk instance. A normal user won't work. See Checkmk user config.

You will be asked for configuration details on first run, and a config will be created at ~/.config/check-commander.ini

Example check commander config:

host = http://omd.lxd/test/
username = automation
secret = long-random-string

How an ssh connection is opened can be changed. Suggested alternatives (put one in config file):

terminal_command = x-terminal-emulator -e ssh HOSTNAME
terminal_command = tmux split-window -v -c "$PWD" ssh HOSTNAME
terminal_command = tmux new-window -c "#{pane_current_path}" ssh HOSTNAME

These should open default terminal, split your current tmux tab and open new tmux tab respectively.

How a wiki is opened can be changed. Suggested alternative:

url_with_hostname = https://wiki.example.com/?search=HOSTNAME

Refresh delay in seconds can be set thus:

delay = 5

Hot-keys

Press ? in app to get an overview.

Support

Open a gitlab issue if you hit a bug or need help.

Implementation details

Uses CheckMK's web API.

Additional functionality like copy to clipboard or open browser requires python modules cliboard and webbrowser. You will be notified to install them.

Development

Tests can be run with tox. Static tests have been done with prospector.

Inspirations and thanks

What users say

  • "Herregud så mye bedre dette er enn å kuke i webinterface"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkmk-commander-1.2.1.tar.gz (69.4 kB view details)

Uploaded Source

File details

Details for the file checkmk-commander-1.2.1.tar.gz.

File metadata

  • Download URL: checkmk-commander-1.2.1.tar.gz
  • Upload date:
  • Size: 69.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for checkmk-commander-1.2.1.tar.gz
Algorithm Hash digest
SHA256 d511600395b1d9c10423e4511c34785aab3a37063b87b79dccfa85bab2389241
MD5 b6f37f26351af7eeeeacbf9f15e327b0
BLAKE2b-256 72859076f133192af369afb79fc1e5dd4b5fde5926bac7e3e99598653214d41f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page