Ad Widget

Collapse

{{host}:http.last(0)}=0... possible ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • llopht
    Junior Member
    • May 2005
    • 19

    #1

    {{host}:http.last(0)}=0... possible ?

    Hello,

    Instead of :

    {server1.mydomain.com:http.last(0)}=0
    {server2.mydomain.com:http.last(0)}=0
    {server3.mydomain.com:http.last(0)}=0
    {server4.mydomain.com:http.last(0)}=0
    ...
    server40.mydomain.com:http.last(0)}=0

    is this possible to create a trigger like this :

    {{host}:http.last(0)}=0

    I have more than 40 servers and I dont wand to add this manually.

    Thanks !

    Jerome
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #2
    Yes. Use templates.

    Comment

    • llopht
      Junior Member
      • May 2005
      • 19

      #3
      Ok, but what is the correct syntax for do it the trigger ?

      Jerome

      Comment

      • sauron
        Senior Member
        • Jan 2005
        • 215

        #4
        Create template & trigger on template. Then create host with this template. If you need in messages hostname use macros {HOSTNAME}

        Comment

        Working...