Show
Ignore:
Timestamp:
07/24/08 16:58:52 (4 months ago)
Author:
jmathis
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/eventLogs/GetODSXmlLog.php

    r5885 r5912  
    3838        require_once 'DB.php'; 
    3939         
    40         include_once("@CENTREON_ETC@/centreon.conf.php"); 
     40        include_once("/etc/centreon/centreon.conf.php"); 
    4141        include_once($centreon_path . "www/include/eventLogs/common-Func.php"); 
    4242        include_once($centreon_path . "www/DBconnect.php"); 
     
    8181        (isset($_GET["alert"]) && !check_injection($_GET["alert"])) ? set_user_param($contact_id, $pearDB, "log_filter_alert", htmlentities($_GET["alert"])) : $alert = "true"; 
    8282        (isset($_GET["error"]) && !check_injection($_GET["error"])) ? set_user_param($contact_id, $pearDB, "log_filter_error", htmlentities($_GET["error"])) : $error = "false"; 
     83        (isset($_GET["oh"]) && !check_injection($_GET["oh"])) ? set_user_param($contact_id, $pearDB, "log_filter_oh", htmlentities($_GET["oh"])) : $oh = "false"; 
    8384 
    8485        if ($contact_id){ 
     
    120121                $warning = $user_params["log_filter_svc_warning"]; 
    121122                $critical = $user_params["log_filter_svc_critical"]; 
     123                $oh = $user_params["log_filter_oh"]; 
    122124        } 
    123125 
     
    172174        echo "<critical>".$critical."</critical>"; 
    173175        echo "<unknown>".$unknown."</unknown>"; 
     176        echo "<oh>".$oh."</oh>"; 
    174177        echo "</infos>"; 
    175178         
     
    201204                array_push ($msg_status_set, "'UNREACHABLE'"); 
    202205         
    203         if ($ok == 'true' ) 
     206        if ($ok == 'true') 
    204207                array_push ($msg_status_set, "'ok'"); 
    205         if ($warning == 'true' ) 
     208        if ($warning == 'true') 
    206209                array_push ($msg_status_set, "'warning'"); 
    207         if ($critical == 'true' ) 
     210        if ($critical == 'true') 
    208211                array_push ($msg_status_set, "'critical'"); 
    209         if ($unknown == 'true' ) 
     212        if ($unknown == 'true') 
    210213                array_push ($msg_status_set, "'unknown'"); 
    211214         
     
    215218                        $msg_req .= 'OR status is null'; 
    216219                $msg_req .=')'; 
     220        } 
     221 
     222        if ($oh == 'true'){ 
     223                $msg_req .= " AND `type` = 'HARD' "; 
    217224        } 
    218225 
     
    482489 
    483490        echo "<lang>"; 
     491         
    484492        echo "<typeAlert>"._("Type")."</typeAlert>"; 
    485493        echo "<notification>"._("notification")."</notification>"; 
     
    495503        echo "<critical>"._("critical")."</critical>"; 
    496504        echo "<unknown>"._("unknown")."</unknown>"; 
     505        echo "<oh>"._("Only Hard")."</oh>"; 
     506        /* 
     507         * Translation for tables. 
     508         */ 
     509        echo "<d>"._("Day")."</d>"; 
     510        echo "<t>"._("Time")."</t>"; 
     511        echo "<h>"._("Host")."</h>"; 
     512        echo "<s>"._("Status")."</s>"; 
     513        echo "<T>"._("Type")."</T>"; 
     514        echo "<R>"._("Retry")."</R>"; 
     515        echo "<o>"._("Output")."</o>"; 
     516        echo "<c>"._("Contact")."</c>"; 
     517        echo "<C>"._("Cmd")."</C>"; 
     518         
    497519        echo "</lang>"; 
    498520        echo "</root>";