Ad Widget

Collapse

Action messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ari
    Junior Member
    • Aug 2010
    • 6

    #1

    Action messages

    With 1.9.7, the default action messages look like this:

    Code:
    Trigger: ping failed to host 'SCC Camperdown'
    Trigger status: PROBLEM
    Trigger severity: High
    Trigger URL: 
    
    Item values:
    
    1. ping (SCC Camperdown:icmpping): 0
    2. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
    3. *UNKNOWN* (*UNKNOWN*:*UNKNOWN*): *UNKNOWN*
    I like the idea that we can show multiple items in the message, but all those UNKNOWNs are a bit confusing. Is there a way to customise the message to only show as many items as are relevant? For other triggers, having two or three items might be very nice. But 99% of them are simply one item.
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    those should be last 3 values, so if you have only one, others are unknown. i definitely agree that it doesn't look nice, but i don't know of a simple solution.
    a fairly complex one would be to have some sort of a variable expansion like bash has, or some if/then syntax which could hide values and additional text...
    Zabbix 3.0 Network Monitoring book

    Comment

    • ari
      Junior Member
      • Aug 2010
      • 6

      #3
      Don't know what you mean by 'last 3'. I've only ever seen one in there, even for items that have been collecting data for a long time.

      Is this related to the bug we found where nodata(1000) returns rubbish results?

      We are running 1.9.7 still because 1.9.8 has broken mysql upgrade scripts.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        Originally posted by ari
        Don't know what you mean by 'last 3'. I've only ever seen one in there, even for items that have been collecting data for a long time.
        hmm. if you look at the history for those items, do the values show up ?

        Originally posted by ari
        Is this related to the bug we found where nodata(1000) returns rubbish results?
        i don't think it should return "rubbish results"... what do you mean by that ?

        Originally posted by ari
        We are running 1.9.7 still because 1.9.8 has broken mysql upgrade scripts.
        broken how exactly ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          Originally posted by richlv
          hmm. if you look at the history for those items, do the values show up ?
          argh, ignore this. by default, it will show last value for the first 3 items, used in the trigger expression - if your expression doesn't use more than one item, it will always be only one value, of course
          Zabbix 3.0 Network Monitoring book

          Comment

          • mike smith
            Junior Member
            • Jun 2012
            • 18

            #6
            surely there must be a way to fix this. we're in the middle of eval'ing a new monitoring system, and this is one of the bigger issues i'm hearing about from some of the higher ups.

            if anyone can point me to the code that is responsible for the generation of the alert email, i'll give it a shot at coming up with a patch to resolve this admittedly only cosmetic issue.

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              well, the simplest solution - just remove those few lines which include last values (in action properrties)...
              Zabbix 3.0 Network Monitoring book

              Comment

              • mike smith
                Junior Member
                • Jun 2012
                • 18

                #8
                interesting idea. might you know off hand how many stock triggers in the stock templates use more than one item? all the custom ones i've created are only using a single item, so this might be the easy fix for us.

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  a couple at most - like checking for possible different apache/syslog process names
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • mike smith
                    Junior Member
                    • Jun 2012
                    • 18

                    #10
                    thanks, i appreciate the speedy insight.

                    Comment

                    Working...