Ad Widget

Collapse

trigger to compare values from Server A and Server B

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamied66
    Member
    • Sep 2008
    • 37

    #1

    trigger to compare values from Server A and Server B

    I have a simple item that pulls the SVN revision number of a given directory.

    Is there a way I can set up a trigger to compare the values of this item on Server A to a value on Server B (and C and ...), and triggers an alert if they are not equal?

    Thanks for pointing me in the right direction.

    zabbix 1.8
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by jamied66
    I have a simple item that pulls the SVN revision number of a given directory.

    Is there a way I can set up a trigger to compare the values of this item on Server A to a value on Server B (and C and ...), and triggers an alert if they are not equal?

    Thanks for pointing me in the right direction.

    zabbix 1.8
    Unless I misunderstand your problem, and assuming that item name is 'svnversion', you can define a trigger on serverA with this formula:
    Code:
    {serverA:svnversion.last(0)}#{serverB:svnversion.last(0)}
    It compares versions on serverA and serverB.

    You will find more examples in the documentation http://www.zabbix.com/documentation/...onfig/triggers

    Regards
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • jamied66
      Member
      • Sep 2008
      • 37

      #3
      I knew I'd seen it somewhere, I just couldn't put my hands on it this morning. thanks!!!

      Comment

      • critianop
        Junior Member
        • Apr 2010
        • 2

        #4
        Originally posted by alixen
        Hi,


        Unless I misunderstand your problem, and assuming that item name is 'svnversion', you can define a trigger on serverA with this formula:
        Code:
        {serverA:svnversion.last(0)}#{serverB:svnversion.last(0)}
        It compares versions on serverA and serverB.

        You will find more examples in the documentation http://www.zabbix.com/documentation/...onfig/triggers

        Regards
        Alixen

        Hi list!

        And, if I want to do this:

        {server1:system.cpu.util.avg(300)})>((({server2:sy stem.cpu.util.avg(300)}+{server3:system.cpu.util.a vg(300)}+{server4:system.cpu.util.avg(300)})/3)+10)

        It will be a problem if the average system.cpu.util of the server 1 is more than 10% of others 3 servers (in the group).

        Ok. It Works! But for one server...

        I´m having this problem:

        When I configure trigger above, in the other servers (server2, 3 and 4) the trigger changes in server 1 ?!?! Why? I´m creating in the host, not in template...

        My idea is create a trigger that alarm if I have any server, of the group (1,2,3,4), is different of the average of the others...

        Any Idea?

        Regards,

        Cristiano Pereira



        Ps. My version is 1.8.3.

        Comment

        Working...