Ad Widget

Collapse

cout trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Spirou
    Member
    • Jun 2016
    • 62

    #1

    cout trigger

    Hi,

    i want to count the number of "red" trigger, "orange" trigger etc..
    is it possible ? how to do that.

    best regards.
  • zabx_ks
    Member
    • May 2016
    • 48

    #2
    Hi Spirou,

    Which Zabbix version you have?

    There is option to see count of all active triggers in
    Code:
     Monitoring -> trigger -> "set full screen"
    (This option is available only on 2.2 - 2.4 zabbix version)

    But if you want to see history count off all triggers then you can see it in
    Code:
    Reports -> Triggers top 100
    . But it shows how many times number of status has changed for one trigger.

    Hope this information will be useful to you

    zabx_ks

    Comment

    • Spirou
      Member
      • Jun 2016
      • 62

      #3
      ok ty,

      but i was mean count in another items like calculated items etc ?

      regards.

      Comment

      • Spirou
        Member
        • Jun 2016
        • 62

        #4
        Bump ! ☺

        I found 'trigger.get' api and i want to know how to use it in zabbix ?
        Is it possible to create an item with this functiin and get the number
        Of my trigger with the different severity.

        Regards

        Comment

        • Spirou
          Member
          • Jun 2016
          • 62

          #5
          BUMP !

          any idea guys how count number of trigger severity automaticly ?

          regards.

          Comment

          • Spirou
            Member
            • Jun 2016
            • 62

            #6
            I found item type "Zabbix internal" but it count all trigger and i want count
            how many trigger are "information", "warning", "average" etc...

            if you have a tips ty

            Comment

            • zabx_ks
              Member
              • May 2016
              • 48

              #7
              Hi Spirou,

              Not sure if it's officially supported on Zabbix.

              But I just made a quick google search and I found few community solutions which you might find useful:

              1) https://github.com/dav3860/zabbix_dashboard

              2) https://gist.github.com/chojayr/7401426

              3) https://github.com/tolleiv/dashing-zabbix

              You can try to test it but usage of such community resources is at your own risk.

              zabx_ks

              Comment

              • Spirou
                Member
                • Jun 2016
                • 62

                #8
                Hi zabx_ks,

                ty

                i make an sql request :

                select count(*) from zabbix.triggers where priority=5 and value=1


                priority 5 for disaster, 4 for high etc...
                and value 1 when trigger is figher !

                end it seem working well

                regards.

                Comment

                • Spirou
                  Member
                  • Jun 2016
                  • 62

                  #9
                  Originally posted by Spirou
                  Hi zabx_ks,

                  ty

                  i make an sql request :

                  select count(*) from zabbix.triggers where priority=5 and value=1


                  priority 5 for disaster, 4 for high etc...
                  and value 1 when trigger is figher !

                  end it seem working well

                  regards.
                  Full request :

                  echo "select count(*) from zabbix.triggers where priority=5 and value=1;" | mysql -h localhost -uroot -pmysql | tail -1

                  Comment

                  Working...