};
otherObjects = map
(n: (pkgs.callPackage (./. + "/objects_" + n + ".nix") { inherit emailCheck; }))
- [ "caldance-1" "ulminfo-fr" "immae-eu" "phare" "tiboqorl-fr" ];
+ [ "caldance-1" "ulminfo-fr" "phare" "tiboqorl-fr" ];
masterObjects = pkgs.callPackage ./objects_master.nix { inherit config; };
commonObjects = pkgs.callPackage ./objects_common.nix ({
master = cfg.master;
}
{
passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-backup"; };
- service_description = "Last backup in /backup2/immae_eu is not too old";
+ service_description = "Last backup in /backup2/dilion is not too old";
use = "local-service";
- check_command = ["check_last_file_date" "/backup2/immae_eu" "14" "backup"];
+ check_command = ["check_last_file_date" "/backup2/dilion" "14" "backup"];
}
{
passiveInfo = defaultPassiveInfo // { servicegroups = "webstatus-backup"; };
+++ /dev/null
-{ ... }:
-let
- defaultPassiveInfo = {
- use = "external-passive-service";
- freshness_threshold = "450";
- retry_interval = "1";
- host_name = "immae.eu";
- };
-in
-{
- host = {
- "immae.eu" = {
- alias = "immae.eu";
- address = "immae.eu";
- use = "linux-server";
- hostgroups = "webstatus-hosts";
- _webstatus_name = "immaeEu";
- };
- };
- service = map (s: defaultPassiveInfo // s) [
- {
- service_description = "size on root partition";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "total number of process";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "average load";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "swap usage";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "no mdadm array is degraded";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "ntp is activated and working";
- servicegroups = "webstatus-resources";
- }
-
- {
- service_description = "ssh connexion responds";
- }
-
- {
- service_description = "pacman packages are not too old";
- servicegroups = "webstatus-resources";
- freshness_threshold = "10800";
- notification_interval = "0";
- }
-
- {
- service_description = "tinc@Immae service is active";
- }
-
- {
- service_description = "sshd service is active";
- }
- ];
-}