Ad Widget

Collapse

I need to add a string to the end of the hostnameitem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mellis
    Senior Member
    • Oct 2017
    • 145

    #1

    I need to add a string to the end of the hostnameitem

    We are setting up a large system with many proxies. It turns out that some time in the past we managed to use the same domain, IP subnet and host names in two different data center. I need to connect both data centers to our central Zabbix server. I was wondering if I could append a string to the end of the HostNameItem in the zabbix_agentd.conf file. Most of our server are windows boxes?

    Maybe like

    HostNameItem = system.hostname + "IA"

    Any thoughts on this?

    Thanks
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    1) Read
    https://www.zabbix.com/documentation...bix_agentd_win
    https://www.zabbix.com/documentation...#configuration

    2) HostNameItem - optional parameter that defines a Zabbix agent item used for getting host name. This option is only used when Hostname is not defined.
    Does not support UserParameters, performance counters or aliases, but does support system.run[] regardless of EnableRemoteCommands value.

    3) Use HostNameItem=system.run[Echo %computername%_bla]

    PS
    And the correct way would be to observe the uniqueness of networks/names and use fqdn.
    Last edited by Hamardaban; 01-05-2020, 13:50.

    Comment

    • mellis
      Senior Member
      • Oct 2017
      • 145

      #3
      Works great, Thank You

      Comment

      Working...