handle_slot => true,
add_self_role => true,
}
+
+ @profile::monitoring::local_service { "Postgresql replication for $backup_host is up to date":
+ sudos => {
+ "naemon-postgresql-replication-$backup_host" => "naemon ALL=(postgres) NOPASSWD: /etc/naemon/monitoring-plugins/check_postgres_replication $backup_host /run/postgresql 5432"
+
+ },
+ local => {
+ check_command => "check_postgresql_replication!$backup_host!/run/postgresql/!5432",
+ }
+ }
}
}