Zabbix_sender does not send traps if Hostname is not defined in zabbix_agentd.conf

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Agent (G)
    • None
    • Environment:
      CentOS 6.4 64bits, running agentd/frontend 2.0.6, proxy/server 2.0.4

      When using zabbix_sender -c /your/zabbix_agentd.conf, it is needed to declare explicitly Hostname=your-hostname.

      It does not behave like the agentd bin that queries the OS for hostname.

      If i declare Hostname=my-hostname, it works ok, as below:

      [root@my-hostname ~]# zabbix_sender -c /etc/zabbix_agentd.conf -k log_nagios_restart -T -o 15
      info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000055"
      sent: 1; skipped: 0; total: 1
      [root@my-hostname ~]#

            Assignee:
            Unassigned
            Reporter:
            Filipe Paternot
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: