Ad Widget

Collapse

Zabbix Trigger Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sersad
    Senior Member
    • May 2009
    • 518

    #16
    work in 2.4
    Attached Files

    Comment

    • sersad
      Senior Member
      • May 2009
      • 518

      #17
      and retrieve triggers in problem state
      add 'filter' => array('value' => 1)


      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)
             )); 

      Comment

      • sersad
        Senior Member
        • May 2009
        • 518

        #18
        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

        Comment

        • waardd
          Member
          • Aug 2014
          • 82

          #19
          Originally posted by Diwahar
          @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

          Comment

          • Diwahar
            Junior Member
            • Sep 2014
            • 15

            #20
            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...


            Originally posted by sersad
            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.

            Comment

            • sersad
              Senior Member
              • May 2009
              • 518

              #21
              Diwahar

              In Request add "selectFunctions": "extend"
              The reply will contain an array "functions":"itemid"

              /history.php?action=showgraph&itemids[]="itemid"

              Comment

              • Diwahar
                Junior Member
                • Sep 2014
                • 15

                #22
                Zabbix Trigger Dashboard

                @sersad: is this is crct?


                $triggers = $api->triggerGet(array(
                'output' => array(
                'priority',
                'description',
                'lastChangeSince'),
                'selectHosts' => array('hostid'),
                'selectFunctions' => array('itemid'),
                'groupids' => $groupIds,
                'expandDescription' => 1,
                'only_true' => 1,
                'monitored' => 1,
                'withLastEventUnacknowledged' => 1,
                'sortfield' => 'priority',
                'sortorder' => 'DESC'
                ));

                foreach($triggers as $trigger) {
                foreach($trigger->hosts as $host) {
                $hostTriggers[$host->hostid][] = $trigger;
                foreach($trigger->items as $item) {
                $itemTriggers[$item->itemid][] = $trigger;
                }
                }
                }

                plz, can u help me in this?

                Comment

                • Diwahar
                  Junior Member
                  • Sep 2014
                  • 15

                  #23
                  @sersad: i got it... works fine now.

                  Thanks



                  Originally posted by Diwahar
                  @sersad: is this is crct?


                  $triggers = $api->triggerGet(array(
                  'output' => array(
                  'priority',
                  'description',
                  'lastChangeSince'),
                  'selectHosts' => array('hostid'),
                  'selectFunctions' => array('itemid'),
                  'groupids' => $groupIds,
                  'expandDescription' => 1,
                  'only_true' => 1,
                  'monitored' => 1,
                  'withLastEventUnacknowledged' => 1,
                  'sortfield' => 'priority',
                  'sortorder' => 'DESC'
                  ));

                  foreach($triggers as $trigger) {
                  foreach($trigger->hosts as $host) {
                  $hostTriggers[$host->hostid][] = $trigger;
                  foreach($trigger->items as $item) {
                  $itemTriggers[$item->itemid][] = $trigger;
                  }
                  }
                  }

                  plz, can u help me in this?

                  Comment

                  • Diwahar
                    Junior Member
                    • Sep 2014
                    • 15

                    #24
                    Zabbix Trigger Dashboard

                    @sersad:

                    Any idea how to get the triggers using templates??


                    Originally posted by sersad
                    Diwahar

                    In Request add "selectFunctions": "extend"
                    The reply will contain an array "functions":"itemid"

                    /history.php?action=showgraph&itemids[]="itemid"

                    Comment

                    • sersad
                      Senior Member
                      • May 2009
                      • 518

                      #25
                      find a trigger from a template?

                      Comment

                      • Diwahar
                        Junior Member
                        • Sep 2014
                        • 15

                        #26
                        Zabbix Trigger Dashboard

                        @sersad : Yes


                        Originally posted by sersad
                        find a trigger from a template?

                        Comment

                        • waardd
                          Member
                          • Aug 2014
                          • 82

                          #27
                          Bumping my problem

                          Like mentioned earlier i only see a date/time and my pagename and nothing else.
                          I'm using zabbix 1.8.20 and this is the php page i call.

                          Is there a different version of the php dashboard i have to use or the ZabbixApi's?

                          Comment

                          • incama
                            Member
                            • Jan 2015
                            • 65

                            #28
                            Originally posted by waardd
                            Bumping my problem

                            Like mentioned earlier i only see a date/time and my pagename and nothing else.
                            I'm using zabbix 1.8.20 and this is the php page i call.

                            Is there a different version of the php dashboard i have to use or the ZabbixApi's?
                            Hi Waard,

                            I never tested the dashboard in 1.8, but I know I did experienced some issues when upgrading from 2.2 to 2.4. All it took was updating the php api files to a newer version. Don't know if there is an older php api version you can download.

                            Comment

                            • waardd
                              Member
                              • Aug 2014
                              • 82

                              #29
                              Originally posted by incama
                              Hi Waard,

                              I never tested the dashboard in 1.8, but I know I did experienced some issues when upgrading from 2.2 to 2.4. All it took was updating the php api files to a newer version. Don't know if there is an older php api version you can download.
                              Could it be that the way you get the information in the API call is different from the way to get it in 1.8?

                              Comment

                              • incama
                                Member
                                • Jan 2015
                                • 65

                                #30
                                Originally posted by waardd
                                Could it be that the way you get the information in the API call is different from the way to get it in 1.8?
                                Although I'm not a Zabbix Api expert, it is indeed what I think. Don't know if someone can share a light on this?

                                Comment

                                Working...