Ad Widget

Collapse

Zabbix 1.5.3 - Screens - Plain Text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.5.3 - Screens - Plain Text

    Zabbix 1.5.3 - Screens - Plain Text

    Problem with refresh of items on the following screen type:

    Screen cell configuration
    Type: Plain Text
    Item Type: Zabbix Agent (Active) Log[Path, "Pattern"]

    Does not refresh but graphs will on the same screen.

    I am going to dig around in the code to see if I can find anything.
  • DoubleP
    Junior Member
    • Dec 2007
    • 10

    #2
    Same thing here

    I am having that same problem...

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      I'm still looking into this to see if I can find anything.

      Comment

      • Palmertree
        Senior Member
        • Sep 2005
        • 746

        #4
        Found the problem. The item key was changed from text type to log type and log type was not supported in the function get_screen_plaintext. Added what is in red and everything works like a champ.

        screens.inc.php
        Code:
                # Show screen cell containing plain text values
        
                function        get_screen_plaintext($itemid,$elements){
        
         
        
                        if($itemid == 0){
        
                                $table = new CTableInfo(S_ITEM_NOT_EXISTS);
        
                                $table->SetHeader(array(S_TIMESTAMP,S_ITEM));
        
                                return $table;
        
                        }
        
         
        
                        global $DB;
        
         
        
                        $item=get_item_by_itemid($itemid);
        
                        switch($item["value_type"])
        
                        {
        
                                case ITEM_VALUE_TYPE_FLOAT:     $history_table = "history";             break;
        
                                case ITEM_VALUE_TYPE_UINT64:    $history_table = "history_uint";        break;
        
                                case ITEM_VALUE_TYPE_TEXT:      $history_table = "history_text";        break;
        
        [COLOR="Red"]                        case ITEM_VALUE_TYPE_LOG:       $history_table = "history_log";         break;[/COLOR]
        
                                default:                        $history_table = "history_str";         break;

        Comment

        • Aly
          ZABBIX developer
          • May 2007
          • 1126

          #5
          Thank You. Fixed.
          Zabbix | ex GUI developer

          Comment

          Working...