Zabbix Create.sql.gz Download [WORK]

268 views
Skip to first unread message

Letizia Aderson

unread,
Jan 18, 2024, 3:05:38 PM1/18/24
to provzertisal

but when i get to cd database/mysql i don't really know where i should go, I tried /var/lib/mysql but then when i get to this step mysql -uzabbix -p zabbix < schema.sql there is no schema.sql and i can't find it anywhere. So how can i find/create it or is it with a new name.

If you installed from package repositories, it depends on the distribution and repository.For example, if you installed from the Zabbix repository on a RedHat system, the SQL might be located in /usr/share/doc/zabbix-server-mysql-3.0.0/create .

zabbix create.sql.gz download


Download Zip >> https://t.co/FHGIkTPjad



Some packages might combine those three SQL files in one, so you will only have create.sql.gz. You can import it directly as "zcat create.sql.gz mysql zabbix". If you want to see the SQL file, you can extract it with 'tar -xvf create.sql.gz' in a single step.

thank you for your post man, solved!, just in my case in path /etc/dpkg there are 3 stuff: (file)dpkg.cfg (folder)dpkg.cfg.d (folder)origind
I modify the first one exactly how you commented and later follow the steps again in zabbix page to reinstall system
(Tried on Ubuntu 18 bionic)

In the previous step, we created a new database and user. Now we will utilize that database and import initial schema and data to that database. Run the following command and provide the password for the database user zabbix. Be patient with this command and it could take 5 to 30 seconds or more to finish.

Well! this file has a lot of stuff. We will update only one thing, however, this is the place where you tune up your Zabbix server. We will update the zabbix server password only. If you have used different zabbix database name, consider updating that as well.

Great article really helped me. One thing though, I think it is best not to use the same variable for everything. Like your DB name and user name are the same. In commands, you never know when you are referring to the DB or username. If it was like zabbixdb and zabbixuser things will be much clearer.

This is a permission error. I connected to my zabbix server through Putty and through WinSCP. Through putty i changed pemissions on that file with chown. After i deleted the old zabbix.conf.php file in WINSCP and replaced it with the one I donwloaded.

Edit: This is just permissions issue. Apache user/group does not have write permissions on /usr/share/zabbix/conf/. You need to manually provide read/write permissions and it should work. I have tested in my lab and will add a new post for Zabbix 5.4 installation.

This manual: _from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing:

I couldn't figure out a way to get the create.sql.gz file to install while running inside a Docker CentOS 7 container (even though I can start it with systemd running properly), but I did the following workaround:

Before the Zabbix server itself can be installed a number of the prerequisites must be met. First of all, a zabbix group must be created followed by zabbix system user.

Hello good morning how are you?
So, I have a zabbix version 5.2.6, I installed a new version 6.2.3 on another server.. Is there a way to import the entire database from version 5.2.6 to 6.2.3???
Thanks.

This command may take a minute or two to execute. If you see the error ERROR 1045 (28000): Access denied for user ``zabbix``@'localhost' (using password: YES) then make sure you used the right password for the zabbix user.

The Zabbix web interface is written in PHP and requires some special PHP server settings. The Zabbix installation process created a PHP-FPM configuration file that contains these settings. It is located in the directory /etc/zabbix and is loaded automatically by PHP-FPM. You need to make a small change to this file, so open it up with the following:

The web interface setup is now complete. This process creates the configuration file /usr/share/zabbix/conf/zabbix.conf.php, which you could back up and use in the future. Click Finish to proceed to the login screen. The default user is Admin and the password is zabbix.

During the installation the installer will request to put a password for the user root of the mysql server. You can choose the password you like (we'll refer from now on to this password as MYSQL_USER_PASSWORD_DEFAULT variable), however make sure you use the same password while configuring zabbix components later on.

At this point the Zabbix frontend should be available at -ip/zabbix in the browser. Default username/password is Admin/zabbix. It will pop up a wizard window which will guide you through the final configuration of the server.

Additionally, you need to configure the auto registration action so that VNFs hosts are added automatically into zabbix db when they are started. For doing it you can either do it via the zabbix dashboard reachable at -ip/zabbix/actionconf.php or using the provided python script. Follow the below guidelines to understand this process.

Next install Zabbix and the other tools needed for it to run successfully by running:
sudo apt-get install zabbix-server-mysql zabbix-frontend-php php-bcmath php-mbstring php-xmlwriter php-xmlreader

sudo nano /etc/zabbix/apache.conf

There should be 2 lines near the top that mention date.timezone, make sure these are unhashed and labeled as the timezone you are in, save this file and exit this application.

For my installations, I am using partitioning as there are no historical requirements defined for specific items and I am intending this installation to be capable of 1500 NVPS or more. There are a couple different approaches and several different methods available for partitioning. I used the one highlighted and recommended in the zabbix.org/wiki which is to partition by range (date ranges to be exact) using a perl script.

df19127ead
Reply all
Reply to author
Forward
0 new messages