Skip to content

ThK-Systems/checkmk-goodies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

checkmk-goodies

Goodies for checkmk

Disclaimer

  • It is only tested under Debian Linux (12) 'bookworm' with check_mk 2.2.
  • It comes with no warranty at all!!!
  • Support will be not available.
  • Contributions are welcome

Install one or more scripts (e.g. 'gluster')

  1. Download the script(s) you want to use (or clone the github-repo)
  2. Put it/them into the folder /usr/lib/check_mk_agent/local/
  3. Make the script(s) executable (0755)
  4. Rescan the host in check_mk for new services

gluster

(Partially based on the gluster checkmk plugin ( https://exchange.checkmk.com/p/gluster ) from lpwevers.)

Requirements:

  • glusterfs (of course)
  • pidof

Description

It monitors glusterfs demons (running-state) and peers (connection-state) and volumes (needed healings). Also, the needed healings of a volume are available as a metric for this volume.

At the head of the script, you can configure some time periods and other values.

Note

The changes to the checkmk plugin from lpwevers are motivated as follows: The plugin immediately sets the service level to 'Critical', as soon as at least one file needs to be healed. However, this seems to be a normal and regular process of glusterfs - at least if you use it under proxmox, as I do - which in my observation should not immediately trigger an alert in the monitoring.

The 'gluster' script therefore takes over all checks (except for the quotas) from lpwevers´ plugin and supplements the volume healing check with the option of first triggering a warning and then a critical alert after a certain (and configurable) time or a certain (and configurable) count of healings.

To use this script, you have to disable lpwevers´ plugin.

Releases

No releases published

Packages

No packages published

Languages