Getting the page

The simplest web page-related agent item key, web.page.get, allows us to retrieve page content. As with scenario-based web monitoring, it does not retrieve any included content, such as images. Let's create a simple item with this key:

  1. Navigate to Configuration | Hosts, and select Linux servers in the Group drop-down
  2. Click on Items next to A test host, and click on Create item. Fill in the following values:
    • Name: Zabbix main page
    • Key: web.page.get[127.0.0.1,/zabbix/index.php]
    • Type of information: Text
    • New application: ZABBIX

We are creating an agent item for our Zabbix server, which means that this web item will be checked by the local agent.

When done, click on the Add button at the bottom. In this item, we specified / as the second parameter, but that is optional by default; the root on the web server is requested. If there is a case where your web server is not running on the standard port, 80, we can specify this as the third parameter:

web.page.get[www.site.lan,/,8080] 

Instead of checking the results of each of the items we are creating individually, let's create all three items first and then verify the results.

HTTPS, at this time is not supported, even when you specify the correct port.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset