Ad Widget

Collapse

Can triggers report the numerical differences

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RobC
    Junior Member
    • Jun 2012
    • 7

    #1

    Can triggers report the numerical differences

    Hi

    I have a couple of items being monitored - specifically the streaming replication 'value' from the master and slave servers.

    The results I get back are in hex, formatted something like this :

    0x30AF84DC2F (the Master)
    0x30AF84C43B (the Slave)

    The difference between the two is 17F4(hex) (6132 bytes).

    I need a trigger that will diff the two results and produce an event based on the outcome (e.g. if the diff is greater than say 1Mb)

    I've tried varients of :

    {PGSQL:Master_RepLog} - {PGSQL:Slave_RepLog} > 1M

    (where PGSQL:Master_RepLog is the monitoring key I'm getting results from)

    but to no joy... any clues would be appreciated

    Rob.
  • burn1024
    Member
    • Jun 2012
    • 52

    #2
    not sure about that, but you could make a shell script that would return this value, and create item/trigger of it.

    Comment

    • eskytthe
      Senior Member
      Zabbix Certified Specialist
      • May 2011
      • 363

      #3
      Think you can use calculated items:
      http://www.zabbix.com/documentation/...lculated_items
      Br
      Erik

      Comment

      Working...