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

README.md

icinga2-check_systemd_service

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.

Installation

# installing dependencies
sudo apt update
sudo apt install git

# clone repository
git https://github.com/patrikskrivanek/icinga2-check_systemd_service.git

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

Arguments

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

Examples

# 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.