Ad Widget

Collapse

Install zabbix without being root

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lerad
    Junior Member
    • Nov 2009
    • 2

    #1

    Install zabbix without being root

    Hi,

    I read in this forum that you do not need to have root access to install zabbix (http://www.zabbix.com/forum/showthread.php?t=3586)

    How can I install zabbix without being root?
    I tried to install zabbix in my home directory:

    ./configure --prefix=$HOME/zabbix-1.6.6 --with-sqlite3=$HOME/sqlite/ --enable-agent --enable-server

    make install
    In $HOME/zabbix-1.6.6 it created the only the sbin directory with the binaries in it.
    When i try to start the server it fails with:
    ./zabbix_server [26169]: Cannot open config file [/etc/zabbix/zabbix_server.conf] [No such file or directory].
    Because i have no rights to edit /etc i can not do any changes there.


    Is it possible to edit the place for the configuration file?
    I thought this would be done with --prefix=... but obviously this is not the case.

    Greetings,
    lerad
  • lerad
    Junior Member
    • Nov 2009
    • 2

    #2
    I found the "-c" Option to specify the configuration file ... i think the problem is now solved.

    Comment

    • vladkras
      Junior Member
      • Oct 2016
      • 2

      #3
      Yes it's possible to install zabbix agent without root privileges

      1. Download .tar.gz source with wget from repo.zabbix.com/<version>/<os_name>/pool/main/z/zabbix/
      2. unpack $ tar xvfz
      3. go into it $ cd zabbix-<version>
      4. create some dir in your home folder
      5. run $ ./configure --disable-server --disable-proxy --enable-agent --prefix=/path/to/home/folder
      6. find zabbix_agentd $ find /home/folder -name "zabbix_agent*"
      7. previuos command also finds zabbix_agentd.conf, edit it
      8. run $ /home/floder/sbin/zabbix_agentd -c /home/folder/path/to/zabbix_agents.conf
      9. check $ netstat -tulpn | grep 10050 if you use default port

      Comment

      Working...