Or „monit“ if you wantits somewhat smaller.

Config example:
## Check monitoring plugin
check program prg-mp-nrpe-IOTW_NFS
  with path "/var/lib/monit/mpocli-inlined.pl --exec 
/usr/lib/nagios/plugins/check_nrpe -H localhost -4 -c IOTW_NFS"
  as uid "nagios" and gid "nagios"
  if status == 4 then alert
  if status == 2 then alert
  depends on kks-net
  group monitoring-plugin
  group performance

Kind regards,
Ulrich Windl

From: systemd-devel <[email protected]> On Behalf Of 
[email protected]
Sent: Monday, August 3, 2026 9:14 AM
To: [email protected]
Subject: [EXT] [systemd-devel] Safe way to get email on failed service

Hi Felix,

yes, you are reinventing the wheel.

For server monitoring and alerting you want something robust and battle tested, 
like Prometheus or Icinga2.

Those tools are actually written to provide the use-case you want.

BR
Silvio

Reply via email to