2023-01-25 01:16:01 +00:00
|
|
|
.\" Automatically generated by Pandoc 2.19.2
|
|
|
|
.\"
|
|
|
|
.\" Define V font for inline verbatim, using C font in formats
|
|
|
|
.\" that render this, and otherwise B font.
|
|
|
|
.ie "\f[CB]x\f[]"x" \{\
|
|
|
|
. ftr V B
|
|
|
|
. ftr VI BI
|
|
|
|
. ftr VB B
|
|
|
|
. ftr VBI BI
|
|
|
|
.\}
|
|
|
|
.el \{\
|
|
|
|
. ftr V CR
|
|
|
|
. ftr VI CI
|
|
|
|
. ftr VB CB
|
|
|
|
. ftr VBI CBI
|
|
|
|
.\}
|
|
|
|
.TH "systemd_check" "1" "January 2023" "systemd_check" ""
|
|
|
|
.hy
|
|
|
|
.SH NAME
|
|
|
|
.PP
|
|
|
|
systemd_check - Checks a set of systemd services, targets, mounts of
|
|
|
|
timers, and notifies if their state is not up and running.
|
|
|
|
Configuration is done in environment files.
|
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
|
|
|
It\[cq]s part of \f[B]system-helpers\f[R].
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.PP
|
2023-01-25 22:27:38 +00:00
|
|
|
\f[B]systemd_check\f[R]
|
2023-01-25 01:16:01 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
\f[B]systemd_check\f[R] checks a set of systemd services, targets,
|
|
|
|
mounts of timers, and notifies if their state is not up and running.
|
|
|
|
It comes with systemd services.
|
|
|
|
.PP
|
2023-01-25 22:27:38 +00:00
|
|
|
By default, \f[B]systemd_check\f[R] tries to read from
|
|
|
|
\f[I]$HOME/.systemd_check.conf\f[R] and
|
2023-01-25 01:16:01 +00:00
|
|
|
\f[I]/etc/systemd_check.conf\f[R] for configuration.
|
2023-01-25 22:27:38 +00:00
|
|
|
It will exit with a non-zero exit code if it cannot find a proper
|
2023-01-25 01:16:01 +00:00
|
|
|
configuration file.
|
|
|
|
.PP
|
|
|
|
The following are at least required for the script to work:
|
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
|
|
|
- \f[B]SYSTEMD_CHECK_LIST_FILE=\[lq]$HOME/.systemd_check.list\[rq]\f[R]
|
|
|
|
which lists to be checked systemd services, timers or targets separated
|
|
|
|
by lines.
|
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
|
|
|
- \f[B]SYSTEMD_CHECK_MAIL_ENABLED=false\f[R] enables or disables sending
|
|
|
|
mail notifications.
|
|
|
|
- \f[B]SYSTEMD_CHECK_MAIL_ADDRESS=\[lq]\[lq]\f[R] which requires
|
|
|
|
\f[I]mail.rc\f[R] to be configured and `\f[I]mailx\f[R]' command has be
|
|
|
|
available.
|
|
|
|
.PD 0
|
|
|
|
.P
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
You can copy this script to \f[I]/usr/local/bin\f[R] and use create a
|
|
|
|
custom \f[B]CONFIG_FILE\f[R] as user.
|
|
|
|
.SH EXAMPLE
|
|
|
|
.PP
|
|
|
|
Create a \f[I]$HOME/.systemd_check.conf\f[R] and add
|
|
|
|
\f[I]SYSTEMD_CHECK_MAIL_ADDRESS=\[lq]alias\[at]domain.tld\[rq]\f[R].
|
|
|
|
Notifications will be delivered to alias\[at]domain.tld.
|
|
|
|
Examples can be found in \f[I]/usr/share/doc/systemd_check\f[R].
|
|
|
|
.SH EXIT VALUES
|
|
|
|
.TP
|
|
|
|
\f[B]0\f[R]
|
|
|
|
Success
|
|
|
|
.TP
|
|
|
|
\f[B]1\f[R]
|
|
|
|
Error
|
|
|
|
.SH AUTHORS
|
|
|
|
Alexander Sch\[:a]ferdiek.
|