Ad Widget

Collapse

Could the process of zabbix-server setup be automated?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juliali
    Junior Member
    • Aug 2013
    • 3

    #1

    Could the process of zabbix-server setup be automated?

    When a zabbix-service is installed, the admin need to setup it by access http://{zabbix-server-host}/zabbix/ with browser, and click the "Next" on each page of a setup wizard. Although the only input field is the password of "root" user, it seems that some data in database is updated (but I am not sure what it exactly is).

    Could the setup process be automated? For example, can I write a script by accessing database or any configuration files to finish the setup process?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    The data you are talking about when you are doing the click-throughs, gets written to zabbix.conf.php

    Whenever I do upgrades, I save that file from my previous installation, then put it back in place after I uopgrade. Then you don't have to go through those steps again. Even if you do a different installation, you can edit the data in that file with a simple editor to reflect any changes.

    Is that what you are talking about?

    Comment

    • juliali
      Junior Member
      • Aug 2013
      • 3

      #3
      @tchjts1 Thanks a lot for your help. What I need is to login zabbix with "Admin/zabbix" directly after installation.

      I tried to store zabbix.conf.php from previous installation, and copy it to /etc/httpd/web along with maintenance.inc.php in a brand new installation, and then send login request to the newly installed zabbix server. However, the request failed again. I still need to go through the setup web wizard.

      I guess besides the zabbix.conf.php file, there might be some changes in the mysql database. But I didn't figure out what it exactly is. Is there any clue?

      Comment

      Working...