How to generate pdf report in zabbix?
Zabbix has several options to collect metrics, including agentless monitoring of user services and client-server architecture. To collect metrics from the server, it uses a small agent on the monitored client to collect data and send it to the Zabbix server. Zabbix supports secure communication between the server and connected clients.
The Zabbix server stores your data in a database that is powered by a database engine. Historical data can be stored in NoSQL databases. Zabbix has a web interface that you can use to view data and change settings.
You will set up Zabbix on two computers. One will be configured as a Zabbix server and the other as a client.
The Zabbix server will use a database to record the data and present the interface.
You will need the following to follow the instructions.
It is important that you keep your server protected because Zabbix server is used to access valuable information that you do not want unauthorized users to access. This is strongly recommended. The guide on Let's Encrypt on Ubuntu 20.04 is the first thing you should do if you want to protect your server.
You have to install Zabbix on the server where you installed the other programs. As a non-root user, log in to this computer.
The official Zabbix repository is where you can install the latest stable version of Zabbix. The repository setup package can be downloaded and installed.
You will see the following.
The new repository should be included in the package index.
Next, install the Zabbix server and web frontend with database support.
The Zabbix agent will allow you to collect data about the Zabbix server.
Before you can use Zabbix, you will need to set up a database to house the data that the Zabbix server will collect from your agents. You can do this in the next step.
You will need to create a new database and fill it in with some basic information to make it suitable for Zabbix. It will create a specific user for this database so that Zabbix doesn't have to use the root account to log in.
As the root user, log in to MySQL.
The Zabbix database can be created with.utf-8 character support.
The Zabbix server will need to create a user, give it access to the new database, and set the password for the user.
We will have the user and database with this. The database console can be left Exit the database console.
You will need to import the data.
The Zabbix installation gave you a file to use.
The following command will import the data into the database. The data in the file is compressed so use Zcat.
You can enter the password for the user that you configured.
It can take a few minutes to run this command. If you see the error, you need to use the correct password for the user.
You will need to set the database password in the Zabbix server's configuration file in order to use it.
The configuration file can be found in your text editor.
The following section is located in the file.
The comments in the file explain how to connect. The password for your database user will need to be set in the file.
This line should be added after the comments to the database.
If you're using a different language, you can save and close the Zabbix_server.conf by pressing the following buttons.
The Zabbix server has been configured to connect to the database. Next, you will set up the Nginx web server to serve the Zabbix.
The automatic configuration package can be installed.
You will get the configuration file and a link to it in the Nginx configuration directory.
You have to make changes to this file.
The configuration file is open.
The file has an automatically generated server block configuration. The name of the server and the port it is listening on are determined by two lines in this document.
Remove the lines and replace them with your domain name. Your settings will look like this.
Save and close the file. reload the configuration if there are no errors in the Nginx files.
Modifications to your PHP configuration will be needed to make the Zabbix web interface work properly.
The Zabbix web interface is written in a language that requires special settings. The Zabbix installation process created a file with these settings.
It is located in the /etc/zabbix directory. You need to make a small change to this file to open it.
The file has the necessary settings for the Zabbix web interface.
The time zone setting is not required. To make sure that Zabbix uses the correct time, you need to set the appropriate time zone.
You can change the timezone line to your time zone by removing it from the code block above. You can find the right time zone by using this list.
Save and close the file.
Now restart PHP-FPM to apply the new settings.
The Zabbix server can be started.
If the Zabbix server is working correctly, you should check it.
You can see the status:
The server should be able to start at boot time.
The database is connected to the server. Next, set up the website.
The web interface allows you to view reports and add hosts you want to monitor, but requires some initial configuration before you can use it. If you configured Let's Encrypt, open your server and go to the address http://zabbix_server_name or https://zabbix_server_name.
You will see a welcome message on the first screen. Click next step to continue
The table listing the prerequisites for running Zabbix will be on the next screen.
Check that the values in this table are okay. You must scroll down to see the prerequisites. Click the next step if you've verified that everything is ready.
The next screen inquires about the connection.
You have told the Zabbix server about the database, but the Zabbix web interface needs to access it to manage hosts and read data In Step 2, enter the credentials you set up. Click next step to continue.
You can leave the options at their default values on the next screen.
The name is optional and can be used to distinguish one server from another in case of multiple monitoring server.
Click next step to continue
The next screen will show the summary of the pre-install so you can confirm that everything is correct.
To continue, click Next Step.
The configuration of the web interface has been completed.
You could back up the configuration file if you wanted to. Continue to the login screen by clicking finish. The password for the default user is Zabbix.
The Zabbix agent needs to be set on your second server.
I will do the installation on an Ubuntu server 20.04.1 distribution, although the steps will be valid for any Linux distribution, adjusting the commands to the distribution you use.
The repository where Zabbix Dynamic PDF Report is located will be cloned first.
We put ourselves on the new directory.
The directories will be created by the following script.
The next step will be to set it up. The file config.inc.php.dist is copied to the config.inc.
We use our favorite editor to modify the new config.inc.php file.
We will have to make changes within the file.
We restart Apache after saving the changes.
If you want to restart Apache, you need to install the package first.
If we are ready to restart Apache.
If you have SELinux enabled, disabling it will make Zabbix PDF Report work.
The first thing to do is install the utilities.
We disabled SELinux.
The Zabbix PDF Report can be accessed by opening the browser and entering the URL.
We log in with the same person we used in the configuration file.
The new version of Zabbix highlights support for generating reports in PDF format, a new syntax to add detection of more complex problems, improved data visualization, support for token for access to APIs, and much more.
For those who don't know, Zabbix consists of a server to coordinate the execution of verifications, agents to perform checks by external hosts, and an interface to organize system management.
The new support for PDF reports and their scheduled creation and delivery to users is one of the highlights of the new version.
Also notable in Zabbix 5.4 are performance and availability improvements, as polls no longer require a connection to the database, a cache was added for faster trend processing, plus support was integrated for a start of more reliable and smooth server able to receive and process a large amount of new data and parallel work with data on the server and proxy has been improved.
On the other hand, it also highlights an innovative syntax for triggering expressions, calculated and aggregate metrics, in addition to removing all known limitations of the previous syntax, but simplifying it. Data can be selected from hosts and metric keys by added metrics.
Support for multi-page dashboards has been added.
It is possible to specify the expiration date of the token and support for labels at the metric level.
The apps are no longer supported.
There are security improvements that stand out.
Enhancements to simplify operation.
If you want to install this utility on your system, you can open a terminal and type the following:
If you have one of the supported ones installed on your system, I recommend installing Lamp. Zabbix uses a database to store information, so you must have one of the supported ones already installed on your system. Once the installation is done, we need to create a database for Zabbix by typing.
Password is the password of your database that you must remember or write down to later place in a configuration file.
We are going to import the following.
Related Questions
- How to broadcast from home?
- How to get cheap flight tickets?
- How to claim zee5 subscription from act fibernet?
- How to create volume in docker?
- How to know if rv water pump is bad?
- How are electoral seats determined?
- How to activate hr module in servicenow?
- How to write href in html?
- How can you increase height naturally?
- How to improve mlm business?