newsboat irssi
# nix
- yarn2nix-moretea.yarn2nix nix
+ yarn2nix-moretea.yarn2nix nixUnstable
nixops nix-prefetch-scripts nix-generate-from-cpan
bundix nodePackages.bower2nix nix-diff
nodePackages.node2nix niv
config = lib.mkIf cfg.enable {
services.nginx = lib.mkIf config.myServices.status.enable {
- virtualHosts."status.immae.eu".locations = objectsFiles;
+ virtualHosts."status.immae.eu".locations = objectsFiles // {
+ "=/common/immae.cfg" = {
+ alias = pkgs.writeText "immae.cfg" ''
+ # put me for instance in /etc/naemon/module-conf.d/immae.cfg
+ # Make sure that you have include_dir=module-conf.d in
+ # naemon.cfg
+ log_initial_states=1
+ date_format=iso8601
+ admin_email=${config.myEnv.monitoring.email}
+ obsess_over_services=1
+ ocsp_command=notify-master
+ '';
+ };
+ "=/common/resource.cfg" = {
+ alias = pkgs.writeText "resource.cfg" ''
+ # Resource.cfg file
+ # Replace this with path to monitoring plugins
+ $USER1$=@@COMMON_PLUGINS@@
+ # Replace this with a path to scripts from
+ # https://git.immae.eu/cgit/perso/Immae/Config/Nix.git/tree/modules/private/monitoring/plugins
+ $USER2$=@@IMMAE_PLUGINS@@
+ $USER200$=https://status.immae.eu/
+ $USER201$=@@TOKEN@@
+ '';
+ };
+ };
};
services.duplyBackup.profiles.monitoring = {
];
command = {
check_local_disk = "$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$";
- check_local_procs = "/usr/bin/sudo $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$";
+ check_local_procs = "$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$";
check_local_load = "$USER1$/check_load -w $ARG1$ -c $ARG2$";
check_local_swap = "$USER1$/check_swap -n ok -w $ARG1$ -c $ARG2$";
- check_local_bandwidth = "/usr/bin/sudo $USER2$/check_bandwidth -i=$ARG1$ -w $ARG2$ -c $ARG3$";
+ check_local_bandwidth = "$USER2$/check_bandwidth -i=$ARG1$ -w $ARG2$ -c $ARG3$";
check_memory = "$USER2$/check_mem.sh -w $ARG1$ -c $ARG2$";
check_ntp = "$USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org";