Ad Widget

Collapse

host ip address for email notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riogezz
    Junior Member
    • Aug 2007
    • 3

    #1

    host ip address for email notifications

    Hi,
    i would like to add a notification mail with code like:

    Code:
    {TRIGGER.NAME} on  {HOSTNAME} ([B]{IP}[/B]) status is: {STATUS}
    is there a way to get IP address from zabbix, like we can do with {HOSTNAME}?
    If so, are there other infos we can retrive in the same way and add into notification mail?

    Thanx in advance
  • evgeny elkin
    Member
    • Jul 2007
    • 52

    #2
    Hello! Try to use {IPADDRESS}

    Comment

    • riogezz
      Junior Member
      • Aug 2007
      • 3

      #3
      Originally posted by evgeny elkin
      Hello! Try to use {IPADDRESS}
      thanx a lot!

      is there a link where to find this and other {TAGS} for Zabbix? (looked for into wiki and forum, but i didn't found it...)

      thanx

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by riogezz
        thanx a lot!

        is there a link where to find this and other {TAGS} for Zabbix? (looked for into wiki and forum, but i didn't found it...)

        thanx
        What about reading ZABBIX Manual?!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • riogezz
          Junior Member
          • Aug 2007
          • 3

          #5
          thanx, didn't see you updated guides (i was using zabbix since v.1.1.* and didn't see that in any doc before)!
          Sorry for wasting your time

          Comment

          • luximinator
            Junior Member
            • Jan 2009
            • 6

            #6
            New host email notification

            Good morning,

            I got a similar question at all, just beeing a particular newbie in matters of Zabbix.

            I activated the Zabbix server's standard Autodiscovery-Rules and also depending standard actions for autodiscovered hosts. I've only changed IP adress to my local settings.

            Now I want to expand the standard actions to get a email notification each time a new host is discovered and added, e.g. linked to a template.
            The including data should be like this: Hostname, IP adress and date/time.

            How do I configure this action? The manual did not give me a good hint at all, perhaps you could help me...

            Thanks a lot.
            Luximinator

            Comment

            • sergio.cricca
              Member
              • Mar 2008
              • 43

              #7
              you should use normal TAGS into mail message (in the left pane):

              those you seems to need are:

              {HOSTNAME}
              {IP}
              {DATE}
              {TIME}

              http://www.zabbix.com/downloads/ZABB...ual%20v1.6.pdf
              [pages 90-93]

              Comment

              • luximinator
                Junior Member
                • Jan 2009
                • 6

                #8
                Originally posted by sergio.cricca
                {HOSTNAME}
                {IP}
                {DATE}
                {TIME}
                I tried these tags, {DATE} and {TIME} worked, but {IPADDRESS} and {HOSTNAME} answered *UNKNOWN*.

                The action for autodiscovery rules also do not add host with hostname, but only with IP as hostname. I want discovery to work with really hostnames.

                I think both problems are concerning the same issue?

                My Zabbix 1.4.6 is running under Ubuntu Server 8.04, DNS and all neccessary servers are know. I found a lot of similar topics here, but no one really helped.
                A identical installation of Zabbix under Ubuntu Desktop 8.04 showed some hostnames, some by IP.
                Last edited by luximinator; 23-03-2009, 11:08.

                Comment

                • sergio.cricca
                  Member
                  • Mar 2008
                  • 43

                  #9
                  My Zabbix 1.4.6 is running under Ubuntu Server 8.04, DNS and all neccessary servers are know. I found a lot of similar topics here, but no one really helped.
                  A identical installation of Zabbix under Ubuntu Desktop 8.04 showed some hostnames, some by IP.
                  it depends on your DNS server.
                  if it can resolve hostnames, then hostnames will replace IPADDRESS into field HOSTNAME, else IPADDRESS will be used as hostname (since zabbix need something in HOSTNAME field to distinguish hosts)

                  Comment

                  • luximinator
                    Junior Member
                    • Jan 2009
                    • 6

                    #10
                    OK thank you for the mail-issue.

                    Our DNS resolves all hostnames, this for sure (checked via "ping *hostname* and also the management of DNS server). But zabbix does not resolve the names, only IP.

                    I tried a lot of things, nothing really worked.Checked DNS in Ubuntu, checked our DNS settings for networking and so on...

                    EIDT: I checked all my configuration settings again: ping via hostname is resolved and answeres. But Zabbix does not resolve hostnames/dns by autodiscovery. Only when I manually edit hosts, the hostname/dns will be resolved.
                    Last edited by luximinator; 25-03-2009, 09:54.

                    Comment

                    • eugene.istomin
                      Junior Member
                      • Jan 2010
                      • 22

                      #11
                      Our DNS resolves all hostnames, this for sure (checked via "ping *hostname* and also the management of DNS server). But zabbix does not resolve the names, only IP.
                      I have the same situation. Yesterday i checked dns responses for all hosts - everything is ok, but Zabbix's autodiscovery show me only IP in hosts table.

                      Comment

                      Working...