Announcement

Collapse
No announcement yet.

Zabbix Trigger Dashboard

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    work in 2.4
    Attached Files

    Comment


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

      Comment


        #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


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

          Comment


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

            Comment


              #21
              Diwahar
              https://www.zabbix.com/documentation...ce/trigger/get
              In Request add "selectFunctions": "extend"
              The reply will contain an array "functions":"itemid"

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

              Comment


                #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


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

                  Thanks



                  Originally posted by Diwahar View Post
                  @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


                    #24
                    Zabbix Trigger Dashboard

                    @sersad:

                    Any idea how to get the triggers using templates??


                    Originally posted by sersad View Post
                    Diwahar
                    https://www.zabbix.com/documentation...ce/trigger/get
                    In Request add "selectFunctions": "extend"
                    The reply will contain an array "functions":"itemid"

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

                    Comment


                      #25
                      find a trigger from a template?

                      Comment


                        #26
                        Zabbix Trigger Dashboard

                        @sersad : Yes


                        Originally posted by sersad View Post
                        find a trigger from a template?

                        Comment


                          #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


                            #28
                            Originally posted by waardd View Post
                            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


                              #29
                              Originally posted by incama View Post
                              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


                                #30
                                Originally posted by waardd View Post
                                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...
                                X