Ad Widget

Collapse

Newbie question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #16
    you can try creating a mysql database dump :
    Code:
    mysqldump zabbix | bzip2 -9 > dbdump.bz2
    transfer it to another machine. later you can restore it with :
    Code:
    bzcat dbdump.bz2 | mysql zabbix
    make sure that zabbix server is not running while the restore is happening
    Zabbix 3.0 Network Monitoring book

    Comment

    • zabbix69
      Junior Member
      • Apr 2010
      • 18

      #17
      Thanks. It works.

      Comment

      • Voxtech
        Junior Member
        • Jan 2011
        • 7

        #18
        Originally posted by richlv
        looks good. and "config" directory they reside in ?

        edit : ah, damn. if you copy configuration file, why are you running the wizard ? either allow webserver to write to that file, or just cancel the wizard.
        I'm in the same boat. I have Zabbix running I just want to cover all my bases. So I'm running the Web install wizard just to check my settings. I've corrected a few PHP settings and tweaked a couple. Now I'm at the final stage but "how do I allow the webserver to write to that file"

        Thank you

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #19
          usually, chown -R <webserveruser> zabbixfrontenddirectory/conf
          make sure to do something like chown -R root zabbixfrontenddirectory/conf afterwards
          Zabbix 3.0 Network Monitoring book

          Comment

          • Bertrand39100
            Junior Member
            • Feb 2010
            • 27

            #20
            Hello Zabbix69,

            To answer to you first question :

            Is there a step by step guide that tells you how to setup a minimum installation of Zabbix?


            Please find below some informations I use and files I modify to customize VM appliance to have your specific network settings and have access to zabbix front-end on you your network.

            # ZABBIX VM PASSWORD

            System: root:zabbix
            Database: root:zabbix
            Zabbix frontend: admin:zabbix

            ### ZABBIX VM COMMANDS ###
            service mysql status
            service zabbix-server status
            service zabbix-agentd status

            service zabbix-agentd start/stop/restart/status

            # ZABBIX VM TOOLS

            ping/fping
            snmpwalk -v 1 -c public 172.x.x.x 1.3.6.1.2.1.1.5
            zabbix-get -s172.x.x.x -p10050 -k"vfs.fs.size[/tmp]"
            zabbix-get -s127.0.0.1 -p10051 -k"log["/var/log/zabbix/zabbix-agentd.log","active","UTF-8",100]"

            # FIREWALL #
            SuSEfirewall2 open EXT TCP zabbix-trapper zabbix-agent
            SuSEfirewall2 stop
            SuSEfirewall2 start

            # MySQL #
            mysqldump zabbix | bzip2 -9 > dbdump.bz2
            bzcat dbdump.bz2 | mysql zabbix

            # ZABBIX VM CONFIG FILES

            ### KEYBOARD ###

            /etc/sysconfig/keyboard

            KEYTABLE="us.map.gz" === KEYTABLE="xx.map.gz"
            YAST_KEYBOARD="us,pc104" === YAST_KEYBOARD="xx,pc104"

            xx is the country code you want to set (for me fr )

            /etc/init.d/kbd stop
            /etc/init.d/kbd start


            ### NETWORK ###
            /etc/sysconfig/network/config
            ...

            # ZONE x :
            /etc/sysconfig/network/ifcfg-eth0
            BOOTPROTO=dhcp === BOOTPROTO=static
            IPADDR= === IPADDR=172.x.x.x
            (IP address for Zabbix-server)
            NETMASK= === NETMASK=255.255.255.0
            route add default gw 172.x.x.254

            service network stop
            service network start

            /etc/sysconfig/network/ifroute-eth0 = fille to add network static route
            ...

            ### APACHE ###
            /etc/apache2/conf.d/zabbix.conf

            Allow from 172.x.x.x/16

            Network range to have access to Zabbix Front-End from.

            service apache2 stop
            service apache2 start

            ### FIREWALL ###
            SuSEfirewall2 open EXT TCP zabbix-trapper zabbix-agent

            SuSEfirewall2 stop
            SuSEfirewall2 start

            Need to be check if needed :
            SuSEfirewall2 open EXT TCP snmp
            SuSEfirewall2 open EXT TCP snmptrap

            Hope it helps you

            Have a good day.

            Bertrand39100.

            Comment

            • Voxtech
              Junior Member
              • Jan 2011
              • 7

              #21
              Originally posted by richlv
              usually, chown -R <webserveruser> zabbixfrontenddirectory/conf
              make sure to do something like chown -R root zabbixfrontenddirectory/conf afterwards
              Thanks! I'm not sure what "chown" is but I just opened up the PHP file that the web install created and manually wrote in the settings in, that method seems to have worked.

              Thank you!

              Comment

              • rugwiza
                Junior Member
                • Jan 2013
                • 16

                #22
                Installation problem

                Dear Sir, Im having the same problem.
                The last step in installation says:
                Configuration file: Fail

                Please install configuration file manually, or fix permissions on conf directory.

                Press "Save configuration file" button, download configuration file and save it as
                "/etc/zabbix/web/zabbix.conf.php"

                When done, press the "Retry" button
                I downloaded the file, paste the contents into
                "/etc/zabbix/web/zabbix.conf.php"
                change permissions to 777, restarted httpd and mysqld, but nothing is changing. Can u advise please?

                Comment

                Working...