ZABBIX Forums  
  #11  
Old 19-03-2015, 13:51
Lurnux Lurnux is offline
Junior Member
 
Join Date: May 2014
Posts: 21
Default

Thanks BDiE8VNy, works great, at least for me.

AlexYoung, try with this already patched file attached to this post.
Attached Files
File Type: php houstgroup01.php (7.0 KB, 355 views)
Reply With Quote
  #12  
Old 26-03-2015, 17:08
incama incama is offline
Junior Member
 
Join Date: Jan 2015
Location: Maastricht
Posts: 13
Default

Hi BDiE8VNy,

Can you share the complete file with me? I'm very interested in speeding up the load times.

Quote:
Originally Posted by BDiE8VNy View Post
Very nice work!

One can significantly improve performance when querying all trigger information at once by a single API call.
The diff below shall just show the idea and not how it should be made - It's even not apply able since special characters like tabulators got lost.

In fact a colleague of mine started to hack this dashboard to suit his needs but was suffering by a page reload time of >45 seconds.
I just made some improvements to point him in the right direction. After the modification the page reloads in <2 seconds. Since I just modified the file he provided me, I've no idea whether this file was current or unmodified.

Additionally hosts are ordered by name and a session logout was added.

Note that I replaced 'div' by 'ddiv'
This was necessary due to this stupid 'live link' restrictions of the forum :\
Reply With Quote
  #13  
Old 16-04-2015, 14:58
Diwahar Diwahar is offline
Junior Member
 
Join Date: Sep 2014
Posts: 15
Default Zabbix Trigger Dashboard

Hi,

is it possible to create a dropdown menu. so that if a particular group is selected only that group details will be shown below.

can someone share ur thoughts how to do that?





Quote:
Originally Posted by incama View Post
Hi BDiE8VNy,

Can you share the complete file with me? I'm very interested in speeding up the load times.
Reply With Quote
  #14  
Old 16-04-2015, 18:16
waardd waardd is offline
Member
 
Join Date: Aug 2014
Posts: 72
Default

The idea is great but i only get the clock and "Your hostgroup" on a grey backdrop.
No further blocks or info....

What am i missing?
Reply With Quote
  #15  
Old 20-04-2015, 14:09
Diwahar Diwahar is offline
Junior Member
 
Join Date: Sep 2014
Posts: 15
Default Zabbix Trigger Dashboard

@waardd: if you select a hostgroup, host related that group that should display with the trigger value of that host.

Got my question?

Quote:
Originally Posted by waardd View Post
The idea is great but i only get the clock and "Your hostgroup" on a grey backdrop.
No further blocks or info....

What am i missing?
Reply With Quote
  #16  
Old 21-05-2015, 16:05
sersad sersad is offline
Senior Member
 
Join Date: May 2009
Location: Russia
Posts: 500
Default

work in 2.4
Attached Files
File Type: gz work-2.4.tar.gz (55.0 KB, 271 views)
Reply With Quote
  #17  
Old 21-05-2015, 17:04
sersad sersad is offline
Senior Member
 
Join Date: May 2009
Location: Russia
Posts: 500
Default

and retrieve triggers in problem state
add 'filter' => array('value' => 1)
https://www.zabbix.com/documentation...ce/trigger/get

hostgroup02.php
PHP Code:
       $triggers $api->triggerGet(array(
               
'output' => array(
                       
'priority',
                       
'description'),
               
'selectHosts' => array('hostid'),
               
'groupids' => $groupIds,
               
'expandDescription' => 1,
               
'only_true' => 1,
               
'monitored' => 1,
//               'withLastEventUnacknowledged' => 1,
               
'sortfield' => 'priority',
               
'active' => 1,
               
'sortorder' => 'DESC',
        
'filter' => array('value' => 1)
       )); 
Reply With Quote
  #18  
Old 22-05-2015, 15:22
sersad sersad is offline
Senior Member
 
Join Date: May 2009
Location: Russia
Posts: 500
Default

add link to event and host screen
add Skip triggers in a problem state that are dependent on other triggers. Note that the other triggers are ignored if disabled, have disabled items or disabled item hosts.
Attached Files
File Type: php hostgroup01.php (7.6 KB, 209 views)
Reply With Quote
  #19  
Old 25-05-2015, 15:08
waardd waardd is offline
Member
 
Join Date: Aug 2014
Posts: 72
Default

Quote:
Originally Posted by Diwahar View Post
@waardd: if you select a hostgroup, host related that group that should display with the trigger value of that host.

Got my question?
Thta's just it. There is no way to select a host.

The clock and "Your hostgroup" is all it says on the page.
No selctors or what so ever
Reply With Quote
  #20  
Old 26-05-2015, 15:53
Diwahar Diwahar is offline
Junior Member
 
Join Date: Sep 2014
Posts: 15
Default Zabbix Trigger Dashboard

Hi,

@sersad: is it possible to make it like, if we click the trigger name it should go to history.php based on its itemid??

need your thoughts...


Quote:
Originally Posted by sersad View Post
add link to event and host screen
add Skip triggers in a problem state that are dependent on other triggers. Note that the other triggers are ignored if disabled, have disabled items or disabled item hosts.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:40.