Gehirn-Mag-Net Monitoring Plugins

Icinga, Nagios, ... monitoring plugins

This is a small collection of some monitoring plugins i wrote. Currently inside: Nextcloud update check.

You could read more details in my personal blog on https://Gehirn-Mag.Net/ (German only). These plugins are tested with icinga2 but should also run on nagios, shinken and other monitoring systems which use nagios style plugins.

nextcloud

A simple update checker for nextcloud. Creates CRITICAL alerts if a new update is available. This checker uses the same update mechanism as nextcloud itself. There is also a sample config for icinga2.

check_nextcloud.py

usage: check_nextcloud.py [-h] -f FILE [-p PHP] [--updateServer UPDATESERVER]
                          [-v]

A simple Nextcloud-Update Check

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  full path to version.php
  -p PHP, --php PHP     full path to your php binary (default /usr/bin/php)
  --updateServer UPDATESERVER
                        Base URL for Update Server (default
                        https://updates.nextcloud.org/updater_server/)
  -v, --verbose         be more verbose

alt text