8. Web Monitoring
For this final example, we will use the Pandora FMS web server component, which is used for basic HTTP and HTTPS monitoring. This element allows us to perform simple or slightly more complex web checks (in various cases) using low-level calls. It is useful for ensuring our pages remain online, verifying that we can perform a series of steps (for example, filling out certain forms), and/or checking that they contain a specific word. In addition to verifying that they work, we can measure the total time they take.
To create this type of module, we must choose the Web module type during the module creation process:
Once we click the Create button, we will see a form where we must fill in the necessary fields to monitor a website. The most important thing will be choosing the type of check. We are going to create a module that allows us to check a website's loading time and ensure it contains the phrase "View license comparison".
To do this, we will select the module type Remote HTTP module to check latency, which will allow us to see the number of seconds the server takes to respond.
In this case, we will make only one request and verify that the response returns a specific phrase; to do this, we will add the following code to the Web checks box:
task_begin
get https://pandorafms.com/en/pricing/
check_string View license comparison
task_end
The check will appear as follows:
As always, after a few seconds, we will have received some data from this module—in this case, the number of seconds it takes for the request to complete:
Pandora FMS also offers the possibility of monitoring complex web transactions thanks to the Web User Experience, which is a more advanced functionality.
Are you not achieving the results explained in this chapter? Access the help or support section.



