X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-si%2Fmodules%2FGosaPackages.pm;h=835eaa520108a5015b9238290436f1cf3b3df8e4;hb=d5be4dfe05053bc9514e1a48a4260cb481098bc5;hp=f8cfeb72a93284efe80a3e4e44f2498e2c0bc4d5;hpb=42b9313c91f81dd815abf81ce7a665507e658b88;p=gosa.git diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index f8cfeb72a..835eaa520 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -203,11 +203,16 @@ sub process_gosa_msg { &main::daemon_log("$session_id ERROR: GosaPackages: no event handler or core function defined for '$header'", 1); @out_msg_l = (); } elsif ($out_msg_l[0] eq 'knownclienterror') { - &main::daemon_log("$session_id ERROR: no event handler found for '$header', check client registration events!", 1); - &main::daemon_log("$session_id ERROR: no or more than 1 hits are found at known_clients_db with sql query: '$sql_events'", 1); - &main::daemon_log("$session_id ERROR: processing is aborted and message will not be forwarded", 1); + if ($header eq "ping") { + &main::daemon_log("$session_id WARNING: Cannot send '$header' to '$target'. GOsa-si do not know client. Maybe client is offline or gosa-si-client process is not running.", 3); + } else { + &main::daemon_log("$session_id ERROR: no general event handler found for '$header', check client registration events!", 1); + &main::daemon_log("$session_id ERROR: no or more than 1 hits are found at known_clients_db with sql query: '$sql_events'", 1); + &main::daemon_log("$session_id ERROR: processing is aborted and message will not be forwarded", 1); + } @out_msg_l = (); } elsif ($out_msg_l[0] eq 'noeventerror') { + &main::daemon_log("$session_id ERROR: no general event handler found for '$header', check client registration events!", 1); &main::daemon_log("$session_id ERROR: client '$target' is not registered for event '$header', processing is aborted", 1); @out_msg_l = (); } @@ -283,7 +288,7 @@ sub process_job_msg { if (exists $msg_hash->{periodic}) { $periodic = $msg_hash->{periodic}[0]; - if (not $periodic =~ /[0-9]+_(hours|minutes|days|weeks|months)/) # Periodic tag is not valid + if ($periodic ne 'none' and not $periodic =~ /[0-9]+_(hours|minutes|days|weeks|months)/) # Periodic tag is not valid { &main::daemon_log("$session_id ERROR: Message contains invalid periodic-tag '$periodic'.". " Please use the following pattern for the tag: 'INTEGER_[minutes|hours|days|weeks|months]'".