Using agent items
The web-scenario-based monitoring we just set up is quite powerful, but there might be cases where a more simple approach would be enough. On the agent level, there are some interesting item keys that allow us to retrieve web pages and perform simple verification. An additional benefit is the ability to do that from any agent, so it is very easy to check web page availability from multiple geographically-distributed locations. There are three web page-related item keys:
web.page.get
web.page.perf
web.page.regexp
Note
Also keep in mind the simpler item keys, such as net.tcp.service
, which was discussed in Chapter 3, Monitoring with Zabbix Agents and Basic Protocols.
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:
- Navigate to
Configuration
|Hosts
, and selectLinux servers
in...