Ad Widget

Collapse

Read configuration file after compiling zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jflo
    Junior Member
    • Feb 2014
    • 5

    #1

    Read configuration file after compiling zabbix

    Hi,

    I compiled the Zabbix server source code, but I have a couple of questions.

    1) Is the zabbix server a single executable?, if so, can I move it to another Ubuntu machine and run it there without having to recompile the whole thing?(assuming the arch is the same)

    2) I read the init.d script, but I does not specify the configuration file location for the server. Should I add the path to the configuration in the init.d script file so that zabbix knows where to find it every time I start/restart the service?

    Ex: ZABBIX_BIN="/usr/local/sbin/zabbix_server --config /opt/zabServer/etc/zabbix_server.conf"

    I think zabbix looks in the etc folder that was created after compiling by default, but I need to move that file somewhere else, so I need to know how to tell it without havving to manually running the zabbix_server with the config flag.
    Thank you
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    1.) I think that static linking can solve your problem - configure -h can help you
    --enable-static Build statically linked binaries
    2.) Yes, you can. zabbix_server -h:
    -c --config <file> Absolute path to the configuration file
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...