Tutorial Zabbix JSON - Monitoring the Weather Temperature
Open your browser and enter the IP address of your web server plus /zabbix.
In our example, the following URL was entered in the Browser:
On the login screen, use the default username and default password.
• Default Username: Admin
• Default Password: zabbix
After a successful login, you will be sent to the Zabbix Dashboard.
On the dashboard screen, access the Configuration menu and select the Hosts option.
Locate and click on the hostname of your Zabbix server.
In our example, we selected the hostname: Zabbix server.
On the Host properties screen, access the Applications tab.
On the top right part of the screen, click on the Create application button.
On the Host applications screen, create a new application named: OPENWEATHERMAP
After finishing the Application creation, access the Items tab.
On the top right part of the screen, click on the Create item button.
On the Item creation screen, you need to configure the following items:
• Name: JSON Rio de Janeiro
• Type: HTTP AGENT
• Key: json.monitor.rio
You need to replace the city ID with your City ID.
You need to replace my API with your API key.
Now, you must click on the Parse button.
After clicking on the Parse button, Zabbix will clean the URL and create the required variables.
On the Item creation screen, you still need to configure the following items:
• Request type: GET
• Timeout: 3s
• Request body type: Raw data
• Required status codes: 200
• Follow redirects: Yes
• Retrieve mode: Body
• Convert to JSON: YES
• Type of Information: TEXT
• Update interval: 60s
• Applications: Select OPENWEATHERMAP
• Enabled: Yes
Here is our configuration:
Click on the Add button to finish the Item creation and wait 5 minutes.
In order to test your configuration, access the Monitoring menu and click on the Latest data option.
Use the filter configuration to select the desired hostname and click on the Apply button.
In our example, we selected the hostname: Zabbix server and the application OPENWEATHERMAP
You should see a result similar to mine.
Congratulations! You have finished the configuration of the first item.