nixpkgs/modules/services/monitoring
Bjørn Forsman dc61694d01 apcupsd-service: add services.apcupsd.hooks option
Each attribute in this option should name an apcupsd event and the
string value it contains will be executed in a shell in response to that
event. See "man apccontrol" for the list of events and what they
represent.

Now it is easy to hook into the apcupsd event system:

  services.apcupsd.hooks = {
    onbattery  = ''# shell commands to run when the onbattery event is emitted'';
    doshutdown = ''# shell commands to notify that the computer is shutting down'';
  };
2013-07-22 14:19:21 +02:00
..
nagios Merge remote-tracking branch 'origin/master' into systemd 2012-09-28 11:35:27 -04:00
apcupsd.nix apcupsd-service: add services.apcupsd.hooks option 2013-07-22 14:19:21 +02:00
dd-agent.nix dd-agent: cleanup, add dogstatsd systemd service 2013-06-29 19:33:44 +02:00
monit.nix
smartd.nix Don't set $TZ 2013-04-22 18:56:19 +02:00
systemhealth.nix Global replace /var/run/current-system -> /run/current-system 2012-07-16 11:34:21 -04:00
ups.nix fixed a upstart issue where upsd was never started 2012-03-31 11:39:30 +00:00
uptime.nix Documentation improvement 2013-07-19 11:22:46 -04:00
zabbix-agent.nix Rename ‘boot.systemd’ to ‘systemd’ 2013-01-16 12:33:18 +01:00
zabbix-server.nix zabbix-server: Swap order of database population. 2013-06-13 03:34:29 +02:00