From version 1.6 of Zabbix, zabbix_sender is changed, and it doesn't read config file from the command line anymore...
We've got a whole bunch of plugins with hardcoded calls to zabbix_sender, and now we can't migrate them to zabbix agents 1.6.
I've strace-ed zabbix_sender, and there is no open call for anything I put after -c parameter...
Is this a bug?!
Look at this:
And this time without '-z':
And now with strace, without '-z':
Why is zabbix_sender ignoring -c command line option?!?!
We've got a whole bunch of plugins with hardcoded calls to zabbix_sender, and now we can't migrate them to zabbix agents 1.6.
I've strace-ed zabbix_sender, and there is no open call for anything I put after -c parameter...
Is this a bug?!
Look at this:
Code:
# /usr/sbin/zabbix_sender -z myserver.mydomain.com -c /etc/zabbix/zabbix_agentd.conf -k mysql.bytesreceived -o 45940 Info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.004097" sent: 1; skipped: 0; total: 1
Code:
# /usr/sbin/zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k mysql.bytesreceived -o 45940
usage: zabbix_sender [-Vhv] {[-zpsI] -ko | [-zpI] -i <file>} [-c <file>]
Code:
# strace /usr/sbin/zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k mysql.bytesreceived -o 45940 2>&1 | grep open | grep etc
open("/etc/ld.so.cache", O_RDONLY) = 3


Comment