From 1e25bc514cd2f644b9de72778639a6d2aec44068 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 18 Jan 2022 12:28:47 +0100 Subject: [PATCH] clusterd: Start netlog received on 'macheteinfach' The individual netlog services send messages from system logfiles (e.g. /var/log/messages), which they consider interesting, to the clusterd of a specific node. The receiving clusterd uses syslog() to log these messages, so they end up in /var/log/message of that node. Let the clusterd of 'macheteinfach' listen to messages from the netlog services instead of that on 'lol'. We use 'macheteinfach', because the only current consumer of these messages is /project/azubi, which happens to run on 'macheteinfach'. This way, this project no longer needs to use ssh to get to the right logfile. --- clusterd/clusterd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusterd/clusterd b/clusterd/clusterd index 7b78e93..028b121 100755 --- a/clusterd/clusterd +++ b/clusterd/clusterd @@ -2148,7 +2148,7 @@ if (defined $options{'push'}) { My::Select::timeout(rand(60),\&send_stat); My::Select::timeout(0,\&sample_rproc) unless Donald::Tools::is_alpha; $my_hostname eq $STAT_TARGET and My::Cluster::Updown::init(); - $my_hostname eq 'lol' and My::NetlogReceiver::init(); + $my_hostname eq 'macheteinfach' and My::NetlogReceiver::init(); My::Select::timeout(600,\&check_overload); My::Select::run();