Ad Widget

Collapse

Complex triggers not showing in graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pmsousa
    Junior Member
    • Jan 2012
    • 23

    #1

    Complex triggers not showing in graphs

    Hi,

    I've used the template Template_HP_ColorLaserJet as the base for my custom printer monitoring template. I've changed the triggers from

    Code:
    {Template_HP_ColorLaserJet:prtMarkerSuppliesLevel.1.1.last(0)}<1000
    to

    Code:
    {Template_HP_ColorLaserJet:prtMarkerSuppliesLevel.1.1.last(0)}<{Template_HP_ColorLaserJet:prtMarkerSuppliesMaxCapacity.1.1.last(0)}*0.2
    This way I can set a trigger based on the percentage of Supply Level depending the actual Max. Capacity of the supply and not a fixed value (some of my supplies have a Max. Value of 40!!!).

    So far, so good...

    After that, I've created some graphs showing the Items of
    Code:
    {Template_HP_ColorLaserJet:prtMarkerSuppliesLevel.1.1.last(0)}
    , with Y axis Max value of item
    Code:
    Template_HP_ColorLaserJet:prtMarkerSuppliesMaxCapacity.1.1
    and showing triggers.

    All appears fine with the exception of the triggers!!! I've seen some messages from this Forums stating that you can't show complex triggers in graphs but those messages date of 2006/2007...

    Isn't this problem solved yet???
    Attached Files
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    Originally posted by pmsousa
    All appears fine with the exception of the triggers!!! I've seen some messages from this Forums stating that you can't show complex triggers in graphs but those messages date of 2006/2007...

    Isn't this problem solved yet???
    Nope. And it's not likely that it will be done as is a hard equation solving kind of problem for "complex" triggers.

    If you really need the trigger line, you can create a calculated item with your last(Template_HP_ColorLaserJetrtMarkerSuppliesMaxCapacity.1.1)*0.2 or something like that , and add it as a dashed line to your graph...

    enjoy.

    Comment

    • pmsousa
      Junior Member
      • Jan 2012
      • 23

      #3
      Originally posted by ghoz
      Nope. And it's not likely that it will be done as is a hard equation solving kind of problem for "complex" triggers.

      If you really need the trigger line, you can create a calculated item with your last(Template_HP_ColorLaserJetrtMarkerSuppliesMaxCapacity.1.1)*0.2 or something like that , and add it as a dashed line to your graph...

      enjoy.
      I've tried your suggestion but with no results... Or better, "Not supported" items on the host.

      Let me explain what I've done.

      First, I created a new item on the template:

      Desc: prtMarkerSuppliesLevelTreshold.1.1
      Type: Calculated
      Key: prtMarkerSuppliesLevelTreshold.1.1
      Formula: last(Template_HP_ColorLaserJetrtMarkerSuppliesMaxCapacity.1.1)*0.2

      I've tried several syntax's for the formula: with brackets, with quotes, etc.), all with the same result - "Not supported".

      On the host I have one item based on that SNMP OID for Template_HP_ColorLaserJetrtMarkerSuppliesMaxCapacity.1.1 and I can read the value with no problem...

      Any ideias?!?!?

      Comment

      • pmsousa
        Junior Member
        • Jan 2012
        • 23

        #4
        Done... I've solved the problem!!!

        I've created one calculated item based on that SNMP OID, named prtMarkerSuppliesLevelTreshold.1.1, with the formula:

        Code:
        last("prtMarkerSuppliesMaxCapacity.1.1")*0.2
        The only issue was to get the formula syntax right!!!

        After a few successful queries to the equipment (printer) with the right values, I added the new "item" to the graph has a "threshold" line. The final result is more a visual detail on the graph but it more easy to look at a graph and see it immediately!!!

        This solution works for both my templates with SNMP v1 and v2c printers.

        The next step are to create a new template for a Xerox multifunction printer (several new OID's than the HP LaserJet printers) and solve the "Screen with screen's" Zabbix bug (solution found on the Developer Bugzilla).

        Thanks for your help,
        Pedro
        Last edited by pmsousa; 01-03-2012, 11:28. Reason: Added the solution.

        Comment

        • ghoz
          Senior Member
          • May 2011
          • 204

          #5
          so , what was the problem / solution ?

          Comment

          Working...