Package: checkmk-commander
Check CommanderCheck Commander is an efficientcursesinterface for the monitoring softwareCheckmk.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.ScreenshotsSSH to selected host (which opens a new terminal, in this case a new split in tilix):Acknowledge an alert and display help:Show details for an alert:Getting StartedPrerequisitesAn up to date Checkmk instance.Linux, MacOS. (not tested on other platforms yet)Python 3.6 or laterPIP (for easy installation)InstallationFrom PIP:$pip3install--upgrade--usercheckmk-commanderRun command:chkcom. It usually ends up inLinux:~/.local/bin (installed with --user)MacOS:~/Library/Python/<version>/binConfigurationYou need a "machine" account for your Checkmk instance. A normal user won't work. SeeCheckmk user config.You will be asked for configuration details on first run, and a config will be created atLinux:~/.config/check-commander.iniMacOS:~/Library/Application Support/check-commander.iniExample basic config:host = http://omd.lxd/test/
username = automation
secret = long-random-stringHow an ssh connection is opened can be changed. Suggested alternatives (put one in config file):Linux: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 HOSTNAMEThese should open default terminal, split your current tmux tab and open new tmux tab respectively.MacOS:terminal_command = open ssh://HOSTNAMEHow a wiki is opened can be changed. Suggested alternatives (put one in config file):Linux:wiki_command = x-www-browser "https://wiki.example.com/?search=HOSTNAME"
wiki_command = /usr/bin/firefox -new-tab "https://wiki.example.com/?search=HOSTNAME"MacOS:wiki_command = open "https://wiki.example.com/?search=HOSTNAME"How the checkmk website is opened can be changed. Suggested alternatives (put one in config file):Linux:browser_command = x-www-browser "https://wiki.example.com/?search=HOSTNAME"
browser_command = /usr/bin/firefox -new-tab "https://wiki.example.com/?search=HOSTNAME"MacOS:browser_command = open "https://wiki.example.com/?search=HOSTNAME"Refresh delay in seconds can be set thus:delay = 5Hot-keysPress ? in app to get an overview.SupportOpen a gitlab issue if you hit a bug or need help.Implementation detailsUses CheckMK's web API.Functionality copy to clipboard requires python module cliboard. You will be notified to install it.Does not read your ssh config or keys, just asks OS to open an ssh connection in a new terminal if you ask for it.No tracking or nastyness.Known bugsCalling a reschedule may give the error "ERROR - you did an active check on this service - please disable active checks". Not sure why this happens.If a non-OMD site is connected to your "distributed monitoring", calling WATO commands on it will return 200 and an error. The WATO command will not be run.DevelopmentTests can be run withtox. Static tests have been done with prospector.Inspirations and thanksIcon made byRallyPointComicThanks toFrankfor lots of suggestions and feedback.Thanks toScott Hansenfor testing and feedback.Thanks toTrulsfor testing and feedback.https://github.com/aranair/rtscli/https://forum.checkmk.com/t/writing-to-nagios-cmd-in-distributed-monitoring/17616https://checkmk.com/cms_legacy_multisite_automation.htmlWhat users say"Herregud så mye bedre dette er enn å kuke i webinterface"