Ad Widget

Collapse

Display the host description in the problem list (4.4.1-4.4.4)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #1

    Display the host description in the problem list (4.4.1-4.4.4)

    Click image for larger version  Name:	hint_host.png Views:	58 Size:	36.1 KB ID:	392506 Adds an icon with a pop up window containing information from the host description
    Changes one file - include/triggers.inc.php.
    Below the line in diff format:
    Code:
    2284c2284
    <                       'output' => ['hostid', 'name', 'maintenanceid', 'maintenance_status', 'maintenance_type'],
    ---
    >             'output' => ['hostid', 'name', 'maintenanceid', 'maintenance_status', 'maintenance_type','description'],
    2371,2372c2371,2372
    <               }
    <
    ---
    >                       $trigger_hosts[] = ($host['description'] !== '') ? makeDescriptionIcon($host['description']) : null;
    >               }
    Last edited by Hamardaban; 15-01-2020, 15:19.
  • exesition
    Senior Member
    • Nov 2019
    • 121

    #2
    Спасибо, полезная штука!

    Comment


    • Hamardaban
      Hamardaban commented
      Editing a comment
      Рад, что пригодилось!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #3
    Всего 2 строки кода ( +1,5 часа вникания в исходники ) - а удобно!
    В рамках концепции развития Zabbix - "управление знаниями" :-)

    Comment

    • exesition
      Senior Member
      • Nov 2019
      • 121

      #4
      Originally posted by Hamardaban
      Всего 2 строки кода ( +1,5 часа вникания в исходники ) - а удобно!
      В рамках концепции развития Zabbix - "управление знаниями" :-)
      А на версии 3,4 не проверяли случаем?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #5
        Не проверял - не храню старое... Мне помниться в версии 3 еще не было таких «подсказок»... Так что сделать конечно можно - но геморно. Лучше обновиться до 4 !

        Comment

        • Hamardaban
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • May 2019
          • 2713

          #6
          Changes made for version 5.0.1
          Attached Files

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #7
            I think that the same should be done for items, triggers, templates.
            Sometimes clicking on some link only to obtain full description is kind of waste of time.
            Other think.
            Please try to submit that patch over support.zabbix.com and as PR on https://github.com/zabbix/zabbix pointing to that PR in ticket opened on support.zabbix.com.
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment


            • Hamardaban
              Hamardaban commented
              Editing a comment
              I don't have a registration on support.zabbix.com
          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #8
            Tested on version 5.2. x - everything works.

            Comment

            Working...