Ad Widget

Collapse

Dashboard PopUp modify

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • globe
    Member
    • Apr 2006
    • 40

    #1

    Dashboard PopUp modify

    Hi Zabbixer,

    I'd like to get an idea how i can integrate a 3rdParty URL in the Dashboard in the popup menu.
    Background: we're integrating a config archive system with ViewVC and new ticket system and like to have a direct integration from the Dashboard.

    I've been able to add it in /js/menupopup.js but all URLs get extended with the "sid" so it's unsable for 3rd Party URLs.

    Does someone have an idea?

    thx globe
  • globe
    Member
    • Apr 2006
    • 40

    #2
    HI @all,

    found a solution which helped me, so here's how i did it.

    Use Scripts:
    I used w3m, the command line browser on the console to grab the link per device and display it in a pop-up window, that’s exactly how I wanted it to work.

    it's very good that the Global Macros can be used in the command to make it dynamic.

    e.g.: Administration -> Scripts -> Create Script:
    Script run from Zabbix Server
    command: w3m http://<URL to Display>/{HOST.NAME}.html

    hope this helps others, as well.

    cheers Globe

    P.S.: above was done in Zabbix 3.0 but should work with others, as well.

    Comment

    • zhura
      Junior Member
      • Jan 2021
      • 4

      #3

      need help adjusting height of dashboard popup to display all values. i'm weak in php programming stuff...
      or maybe i need just find constant "20" and change it to "26" but where to dig?
      Click image for larger version  Name:	Clip2net_2021-08-11_09_52_44.jpg Views:	0 Size:	63.4 KB ID:	429708
      found "svg-graph-hintbox" in "/usr/share/zabbix/js/class.csvggraph.js" here was constant "hint_max_rows" which i've changed from 20 to 30 but nothing changed... restarted nginx and php-fpm on zabbix server and cleared cache on my firefox - still only 20 rows
      there is no /var/cache/nginx directory on my zabbix server...

      so. substitution of options.hintMaxRows doesn't work for unknown reason but when i changes data.hintMaxRows all looks wonderfull
      Click image for larger version  Name:	Clip2net_2021-08-12_11_27_33.jpg Views:	0 Size:	50.7 KB ID:	429706
      problem was not in the browser or zabbix cache as i thought at first
      Click image for larger version

Name:	Clip2net_2021-08-12_11_34_01.jpg
Views:	552
Size:	73.2 KB
ID:	429709
      Last edited by zhura; 12-08-2021, 10:34.

      Comment

      Working...