From 7c39513ebd16a7c8c13858dcf66857373a9b12f5 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Tue, 26 Aug 2008 08:51:17 +0000 Subject: [PATCH] update: si-server send syslog information to registering client git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12272 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/client/events/corefunctions.pm | 2 +- gosa-si/modules/ClientPackages.pm | 7 ++++++- gosa-si/tests/client.php | 5 +++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gosa-si/client/events/corefunctions.pm b/gosa-si/client/events/corefunctions.pm index acf03be3c..35faf0bc3 100644 --- a/gosa-si/client/events/corefunctions.pm +++ b/gosa-si/client/events/corefunctions.pm @@ -206,7 +206,7 @@ sub new_syslog_config { # Restart syslog deamon my $res = qx(/etc/init.d/sysklogd restart); - &main::daemon_log("INFO: restart syslog daemon: \n$res", 5); + &main::daemon_log("INFO: restart syslog daemon: $res", 5); return; } diff --git a/gosa-si/modules/ClientPackages.pm b/gosa-si/modules/ClientPackages.pm index b2a5288d6..4b6967566 100644 --- a/gosa-si/modules/ClientPackages.pm +++ b/gosa-si/modules/ClientPackages.pm @@ -516,12 +516,17 @@ sub here_i_am { } # Send client ntp server - my $ntp_config_out = &new_ntp_config($mac_address, $session_id); if ($ntp_config_out) { push(@out_msg_l, $ntp_config_out); } + # Send client syslog server + my $syslog_config_out = &new_syslog_config($mac_address, $session_id); + if ($syslog_config_out) { + push(@out_msg_l, $syslog_config_out); + } + # notify registered client to all other server my %mydata = ( 'client' => $source, 'macaddress' => $mac_address); my $mymsg = &build_msg('new_foreign_client', $main::server_address, "KNOWN_SERVER", \%mydata); diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 8e3179e60..d54a28fa3 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -142,7 +142,8 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_opsi_set_product_properties
GOSA 00:01:6c:9d:b9:fa linux-cl-2.intranet.gonicus.de firefox askbeforeinst false
"; # Get hardware inventory - #$data = "
gosa_opsi_get_client_hardware
GOSA GOSA linux-cl-2.intranet.gonicus.de
"; + $data = "
gosa_opsi_get_client_hardware
GOSA GOSA linux-cl-2.intranet.gonicus.de
"; + #$data = "
gosa_opsi_get_client_hardware
GOSA GOSA der_neue.intranet.gonicus.de
"; # Get software inventory #$data = "
gosa_opsi_get_client_software
GOSA GOSA linux-cl-2.intranet.gonicus.de
"; @@ -200,7 +201,7 @@ for($count = 1; $count <= $zahl; $count++) ############################## # SYSLOG reload - $data = "
gosa_trigger_reload_syslog_config
GOSA GOSA 00:01:6c:9d:b9:fa
"; + #$data = "
gosa_trigger_reload_syslog_config
GOSA GOSA 00:01:6c:9d:b9:fa
"; $sock->write($data); $answer = "nothing"; -- 2.30.2