View Full Version : Configuration file's path
ghislain
04-07-2005, 13:25
Hi,
I think it would be cool to be able to pass the configuration file for the agent, aagentd etc... for exemple in freeBSD the files should be in /usr/local/etc but it seems hard coded in the binary to /etc/zabbix/....
Perhaps we can change this easely into the source but i am not confident on how to recompile with a new hardcoded path :)
regards,
Ghislain.
This is already implemented in 1.1 alphas.
ghislain
04-07-2005, 14:44
ok great !
i think that precompiled binary will not be available for the alpha versions :)
Do you have any view of the zabbix future release path from alpha to beta and to release ? you know, basicaly just to have a global idea of the future :)
(hard to see, allways in moving the futur is - Yoda)
best regards,
Ghislain.
i think that precompiled binary will not be available for the alpha versions :)
Do you have any view of the zabbix future release path from alpha to beta and to release ? you know, basicaly just to have a global idea of the future :)
No, precompiled binaries are not available for alpha releases. Check http://www.zabbix.com/next.php for planned functionality of 1.1. I'll switch releases to beta as soon as all the functionality is implemented.
ghislain
05-07-2005, 09:33
ok thanks Alexi.
oh i forgot, thanks for this great soft ! :)
ghislain
06-07-2005, 15:04
humm
in fact i compiled the alpha10 agent and i cannot find a way to change the config file location for the agent. I tried the --config switch but it does not work (freeBSD). The manual do not state this possibility and zabbix-agent --help or -h does not give any hint. Also i looked at the string in the binary where it seems to be harcoded too. The error message suggest that it can be changed as there is a %c in it. i havent looked at the source as i am not good enough to decypher it :)
in inetd.conf i have:
zabbix_agent stream tcp nowait.3600 zabbix /root/src/zabbix-1.1alpha10/bin/zabbix_agent --config /etc/zabbix/zabbix_agent.conf.test
and the result is:
Escape character is '^]'.
Cannot open config file [/etc/zabbix/zabbix_agent.conf] [m]
Connection closed by foreign host.
anything silly i do ?
Regards,
Ghislain.
the parameter is:
-c <file>
not
--config <file>
--config is for the Win32 agent.