Ad Widget

Collapse

[1.6] Patch for zabbix_sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    [1.6] Patch for zabbix_sender

    Hi

    the zabbix_sender insists on putting the IP-Adress (or hostname)
    of the ZABBIX Server on the commandline (-z "zabbix server").
    IMO the change is not required and therefore it's a bug and breaks most of
    my old scripts using zabbix_sender. I think that it will break most
    scripts of other users as well.

    Here is the patch to get the old behaviour back. The zabbix_sender
    will still work well. If no ZABBIX server is specified, i.e. neither
    on the command-line nor in the agent configuration
    file (possibly missing on the commandline), the zabbix_sender will still
    complain.

    However, it seems that the format of the input file (-i file) did
    change, too.
    Now the lines just contain hostname key value

    Regards

    Norbert.
    Attached Files
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Hi

    is there a reason for not applying this patch to zabbix_sender ?

    Version 1.6.2 has still the same bug.

    This is annyoing, at least.

    There is absolutely no reason why a script should know the currently
    configured ZABBIX Server, i. e. parse the zabbix_agentd.conf file
    to figure out the ZABBIX Server just to put it on the commandline !

    My proposal - and we'll patch the sender in any case - allows
    to just use
    Code:
    zabbix_sender -c configfile ...
    without knowing or the need to figure out the ZABBIX Server IP !

    Regards

    Norbert.

    Comment

    Working...