Ad Widget

Collapse

how to create trigger with multiple conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomislak
    Junior Member
    • Jul 2014
    • 4

    #1

    how to create trigger with multiple conditions

    Hi,

    I'm new in zabbix and there is a lot of info ( to many for begginer ) about hosts.
    I'm monitoring a bunch unix/linux hosts, and would like trigger like this:

    cpu_user_time + cpu_system_time > 80%

    I know how to create only one expresion:
    {hostname:system.stat[cpu,sy]}>80

    But how to connect two of them?

    And is there some way to customize monitoring -> triggers page?

    Thanks
  • Alberto Freire
    Junior Member
    • Jul 2014
    • 24

    #2
    It would be something like this:

    ({hostname:system.stat[cpu,sy]}>80) & ({hostname:something[cpu,sy]}<100)

    or

    ({hostname:system.stat[cpu,sy]}>80) | ({hostname:something[cpu,sy]}<100)


    More in: https://www.zabbix.com/documentation...ers/expression

    Comment

    • tomislak
      Junior Member
      • Jul 2014
      • 4

      #3
      Thanks Alberto.
      I managed to get this by try and fail until now :-)

      Is there a way to create custom dashboard/screen, but not with graphs, only with status of triggers?

      Out of the box Dashboard have some predefined categories like "system status", "host status" and "Web monitoring" ( which I don't need ). I would like only "Last n issues", but with only with "Issue" and "Host" columns.

      Zabbix server is 2.0.3

      Regards
      Attached Files

      Comment

      • Alberto Freire
        Junior Member
        • Jul 2014
        • 24

        #4
        Yup...

        You can creates "Screens" in Configuration > Screens...
        Select the Resource "Triggers overview" and your Groups.

        See more here: https://www.zabbix.com/documentation...sation/screens

        Comment

        • tomislak
          Junior Member
          • Jul 2014
          • 4

          #5
          It couldn't be so easy :-).
          I don't want all triggers, just small part of them.

          So in group I have 20 servers, and over 100 triggers. So list is big. I would like to have on screen only few triggers foe each host in group.

          Comment

          • Alberto Freire
            Junior Member
            • Jul 2014
            • 24

            #6
            Duh... Sorry, I understood now.

            Well, I don't know how do this using the frontend from Zabbix (but is possible via API or DB).

            However, I liked this idea, I'll search more info about it.

            Comment

            • tomislak
              Junior Member
              • Jul 2014
              • 4

              #7
              My more experienced colleague proposed creation of double hosts in zabbix which point to one host in real.
              And for those doubled hosts create only needed triggers and create screen from that...

              And one more, I enabled in my profile gui sound notification ( only information, because I test only with this severity ), but no sound from my browser ( setup Windows media player like stated in https://www.zabbix.com/documentation..._s_new_1.8.3?s[]=sound&s[]=notifications.

              Does anyone have some idea how to solve this?

              Regards

              Comment

              Working...