Skip to main content

falkp.no/blog

Tag: Checkmk

Check Commander - Curses interface for Checkmk

A curses interface for checkmk. I named it Checkmk Commander, but Check Commander is easier to say.

logo

I use Checkmk daily. A few common tasks are acknowledging, downtiming and reinventorizing hosts and services. In the web UI this takes lots of clicks and time. So I wrote this client to optimize my workflow.

check commander screenshot

Example workflow in web UI:

  • A new service has been detected on host1, thus I have to reinventorize it.
  • Click on host name.
  • Click WATO
  • Click services
  • Click “fix all missing/vanished”, wait.
  • Click “1 change”
  • Click “Activate affected”, wait.

The same in Check Commander:

Checkmk Plugins, part 1

Some of my checkmk plugins, Webchecks, Blacklist and SQL Dump. Easy deployments.

# Blacklist

If you have a server which is sending mail, drop this check in place. It will check the host it’s running from against a bunch of blacklists. No configuration needed.

checkmk-blacklist:

One positive

# Webchecks

Easy and expansive check of web services. It will:

  • Follow redirects
  • Check (configurable) status code
  • If ssl, check cert and chain. Check remaining time.
  • Configurable string check.
  • If URL contains dev, stage or such, complain if the site isn’t robots-blocked. Else, complain if the site is robots-blocked.
  • Find URLs to check from apache or nginx config.

checkmk-webchecks: