Ad Widget

Collapse

Eventlog: Expand Message in Problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ruddimaster
    Member
    • Dec 2016
    • 49

    #1

    Eventlog: Expand Message in Problems

    Hello,

    To monitor Windows event logs, I followed this how to

    Trigger name:
    Eventlog Application: {ITEM.VALUE1}

    Tis works great. But is it possible to expand the problem-message within the web page (problems or dashboard)? At the moment for example I see only “Eventlog Application: Service encounter er...” It seems there is only space for 20 characters and this is for fast processing of our admins very difficult and risky to guess the rest of this message.
    The mail has the complete message...

    has anyone a hint?
  • batchen_regev
    Member
    • Aug 2018
    • 80

    #2
    yes there is a way,
    the problem is that i cannot remmber how i did it but i remmber its in a file named dashboard (inside all the www\html of zabbix) and you need to exepand the chars too 200 and save.
    im using docker zabbix and i dont have the same files as a regualr server ..

    searxh inside /usr/share/zabbix/ if im not misteaked.
    if no one can help send me message privet and we try to go throw it together

    Comment

    • sancho
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2015
      • 295

      #3
      Hello Ruddimaster,

      Look at this link http://blog.aeciopires.com/dica-avan...tem-lastvalue/

      I think that is what I did not remember batchen_regev

      I hope it helps you.

      Comment

      • Ruddimaster
        Member
        • Dec 2016
        • 49

        #4
        Yes this works...

        change /usr/share/zabbix/include/items.inc.php

        from

        case ITEM_VALUE_TYPE_LOG:
        if ($trim && mb_strlen($value) > 20) {
        $value = mb_substr($value, 0, 20).'...';

        to

        case ITEM_VALUE_TYPE_LOG:
        if ($trim && mb_strlen($value) > 2048) {
        $value = mb_substr($value, 0, 2048).'...';


        many thanks

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          These changes in fronted files work only till the next update of web interface files, when all the modifications get overwritten.

          Try using this macro function
          .
          {{ITEM.VALUE}.regsub("(.*)","\1")}

          If I remember correct, this function is not affected by the 20 character limit and is not broken after update.

          Comment

          Working...