Skip to content
Icinga2 exchange plugin for monitoring systemd services.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


version !#/bin/bash Open Source Love

Icinga2 exchange plugin for monitoring systemd services.

This plugin checks status of systemd service and also can restart service if is not running. Returns exit codes based on nagios plugin api standard.


# installing dependencies
sudo apt update
sudo apt install git

# clone repository

# run check_systemd_service program with help and learn how to use
check_systemd_service --help


Argument Description Required
[service] Name of systemd service for check yes
--restart Restart service if is not running, root privileges needed [added in v1.1.0] optional
-V --version Show program version optional
-h --help Show program help and usage optional


# check if mysql is running
check_systemd_service mysql

# check if cron is running, if doesn't restart service
check_systemd_service cron --restart

# check if apache2 webserver is running
check_systemd_service apache2

# show program help
check_systemd_service cron --help

# show program version
check_systemd_service cron --version
You can’t perform that action at this time.