Ad Widget

Collapse

hostname macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #1

    hostname macro

    Hi

    Im on 2.2
    on the host definition page, the first item is host name
    I want to use this field on my triggers, item key

    This page


    2.2 macro manual page
    HOST.HOST deprecated
    HOST.NAME is for visible name
    how do i get the "host name" field ?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Most people create a trigger name with something like:
    Low disk space on {HOST.NAME}
    Lack of free swap space on {HOST.NAME}
    etc

    You can also use that macro in the problem message as well if you like.

    Comment

    • Alex_SYB
      Senior Member
      • Feb 2012
      • 133

      #3
      Yes i saw that but it goes to visible name, I don't have visible name set for all my objects.

      But after a test it seems to default to name !

      Thanks

      Comment

      Working...