Skip to content

drbild/systemd-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systemd_notifier

Send notifications (to Slack, email, etc) on systemd unit status changes. A python port of systemd_mon.

Installation

pip install systemd-notifier

Usage

systemd-notifier -c <yaml-config-file>

or

systemctl start systemd-notifier.

The systemd service unit uses /etc/systemd-notifier/conf.yml as the default configuration file.

Configuration

---
notifiers:
  slack:
    webhook_url: https://hooks.slack.com/services/token/path
    channel: mychannel
    username: myuser
    icon_emoji: ":myicon"
    icon_url: "http://example.com/myicon"
  units:
  - sshd.service
  - ntpd.service

About

Send alerts on systemd service status changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages