Ad Widget

Collapse

Use host name in item key parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kalleklumpfisk
    Junior Member
    • May 2024
    • 3

    #1

    Use host name in item key parameter

    Hi,
    I am new to zabbix and have some websites where I want to monitor http and https with simple check net.tcp.service and net.tcp.service.perf
    I have tried creating a template that uses net.tcp.service[http,,], net.tcp.service[https,,], net.tcp.service.perf[http,,] and net.tcp.service.perf[https,,] however I get this error with all of the items: Click image for larger version

Name:	image.png
Views:	445
Size:	8.2 KB
ID:	484722
    Is it possible to use the name of the host as the ip parameter like net.tcp.service[http,$HOSTNAME$,]?
    Attached Files
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1784

    #2
    The error message suggests that your host does not have any agent IP interface configured.

    https://www.zabbix.com/documentation...#nettcpservice says.

    • ip - the IP address or DNS name (by default the host IP/DNS is used);
    Markku

    Comment

    Working...