Ad Widget

Collapse

Includes at agent config

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #1

    Includes at agent config

    We can include a custom config, but default `Hostname=Zabbix server` should be commented. Comments at included files is not processed, obviously.
    Any solution here?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Solution to what? You forgot to describe your issue..

    Comment

    • Tristis Oris
      Member
      • Sep 2015
      • 66

      #3
      i need to get a real hostname from host. What can be solved by commenting this line.

      Comment

      • Tristis Oris
        Member
        • Sep 2015
        • 66

        #4
        lol. it works with empty value. I was sure that it's not valid, maybe long ago.

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Hostname
          Default: Set by HostnameItem
          HostnameItem
          Default: system.hostname

          system.hostname[<type>,<transform>]
          The system host name.
          Return value: String.

          Parameters:
          • type - possible values: netbios (default on Windows), host (default on Linux), shorthost (returns part of the hostname before the first dot, a full string for names without dots), fqdn (returns Fully Qualified Domain Name);
          • transform - possible values: none (default) or lower (convert to lowercase).
          The value is acquired by taking nodename from the uname() system API output.
          ​​

          So leaving those undefined forces agent to use "defaults"...

          Comment

          Working...