Ad Widget

Collapse

Action on discovered hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pasqu
    Junior Member
    • Jun 2007
    • 29

    #1

    Action on discovered hosts

    Hi all, how can I include the IP address or hostname of the discovered host in my mail message? Which is the variable?

    Thanks
  • badener
    Member
    • Sep 2009
    • 42

    #2
    Hi,

    ip address is {IPADDRESS} and hostname {HOSTNAME} but I am not sure whether hostname will work on discovered hosts (on discovery zabbix should only know a hosts ip address or hostname from dns lookup), {HOSTNAME} is the name you asign to a host in zabbix config
    Last edited by badener; 15-09-2010, 17:02.

    Comment

    • pasqu
      Junior Member
      • Jun 2007
      • 29

      #3
      No, if I put {IPADDRESS} on the message Zabbix don't replace it with the real value also for {HOSTNAME}.

      Comment

      • badener
        Member
        • Sep 2009
        • 42

        #4
        looking for something else I just noticed that there are specific macros for discovery, check it out at
        http://www.zabbix.com/documentation/.../config/macros

        it seems that there are only few macros that will work on discovery notifications

        Comment

        • pasqu
          Junior Member
          • Jun 2007
          • 29

          #5
          Thanks, and what about if I want in a mail or script the return value of the discovered host through SNMP?
          For example I discover by a rule that search for sysname with SNMP v2, there's a way to have the value? I tried with {ITEM.LASTVALUEn} but nothing.

          Enrico.

          Comment

          Working...