From: rettenbe Date: Tue, 4 Nov 2008 08:49:29 +0000 (+0000) Subject: debug lines to figure out jobqueue status problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f86907b1ef0544667975612fc6130a00c208754b;p=gosa.git debug lines to figure out jobqueue status problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12890 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index bd0f72f21..11c142f85 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -1010,6 +1010,9 @@ sub update_jobdb_status_for_send_msgs { # sending msg faild if( $error ) { + +daemon_log("D \n$error\n$answer"); + if ((not $answer =~ /
trigger_action_reinstall<\/header>/) || (not $answer =~ /
trigger_action_update<\/header>/)) { my $sql_statement = "UPDATE $job_queue_tn ". "SET status='error', result='can not deliver msg, please consult log file' ". @@ -1457,6 +1460,8 @@ sub process_task { # Target of msg is a mac address elsif( $answer_target =~ /^([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2})$/i ) { daemon_log("$session_id INFO: target is mac address '$answer_target', looking for host in known_clients and foreign_clients", 5); + + # Looking for macaddress in known_clients my $sql_statement = "SELECT * FROM known_clients WHERE macaddress LIKE '$answer_target'"; my $query_res = $known_clients_db->select_dbentry( $sql_statement ); my $found_ip_flag = 0; @@ -1469,6 +1474,8 @@ sub process_task { &update_jobdb_status_for_send_msgs($answer, $error); $found_ip_flag++ ; } + + # Looking for macaddress in foreign_clients if ($found_ip_flag == 0) { my $sql = "SELECT * FROM $foreign_clients_tn WHERE macaddress LIKE '$answer_target'"; my $res = $foreign_clients_db->select_dbentry($sql); @@ -1498,6 +1505,8 @@ sub process_task { } } } + + # No mac to ip matching found if( $found_ip_flag == 0) { daemon_log("$session_id WARNING: no host found in known_clients or foreign_clients with mac address '$answer_target'", 3);