Apache Monitoring: Monitor your Apache HTTP server through Domotz

Try Apache Monitoring for HTTP servers through Domotz. The Apache HTTP Server is a free and open-source cross-platform web server software released under the terms of Apache License 2.0. (cit. Wikipedia)

Proactively monitor the configuration and performance of your Apache HTTP Server by extracting information related to the processes, child servers, clients, mod_status, and more

Start Your Free Trial
Integration Domotz + Apache Monitoring

checkiconReview the configuration and basic performance of your Apache HTTP Server

checkiconApache monitoring of HTTP server resource consumption

checkiconCheck the traffic and duration of requests

checkiconReview the mod_status information

How our Apache Monitoring works

Apache Monitoring for HTTP Server configuration and performance

Our Apache Monitoring leverages the “Custom Integration” functionality, allowing you to monitor your Apache process on your server.

The scripts use the HTTP protocol to connect to the Apache HTTP Server instance and extract the required information.

Our Custom Integration scripts offer a complete set of variables and stats that you can monitor through Domotz:

  • apache2_processes.js - this driver create a table for apache2 processes with multiple columns to extract the Child Server numbers, Access number, CPU, time to serve requests, memory usage and more.
  • apache2_status.js - this driver extracts monitoring variables like the Service version, Restart time, CPU load, and Total number of bytes processed, duration, etc.

You can find the Apache monitoring driver codes in our examples library. Just customize the Apache monitoring drivers to fit your needs.


Getting started with the Apache monitoring driver

Getting started with the Apache monitoring driver Getting started with the Apache monitoring example driver code

To enable the custom integration for Apache monitoring, open the WebApp and follow these few steps:

  1. From the left menu, click on "Integration" and then on the tab "Custom Integration".
  2. By clicking on “Create a new driver” will open a window where you need to choose the “Driver name” and the “Driver description”.
    For example: “Apache HTTP Server” as a Driver name and a brief description of the purpose for this integration (e.g., “Monitoring Apache HTTP Server processes for performance issue”).
  3. Copy the content of the following scripts from the example in the Driver code area (the space for the code):
    • apache2_processes.js
    • apache2_status.js
  4. Apply the Custom Integration to the machine hosting Apache HTTP Server.

You can find the example driver code for monitoring Apache HTTP Server below:

  • apache2_processes.js - this driver creates a table for apache2 processes with multiple columns to extract the Child Server numbers, Access number, CPU, time to serve requests, memory usage and more.
  • apache2_status.js - this driver extracts monitoring variables like the Service version, Restart time, CPU load, and Total number of bytes processed, duration, etc.

Note: the integration collects metrics and statistics by polling the Apache Status module on the local network from the Domotz Agent point of view.

To get this integration working, you must enable the module mod_status on the Apache Server; additionally, you need to make sure that the device hosting the Domotz Agent is allowed to access the /server-status of the Apache service. For more info about the configuration of mod_status, refer to Apache Status module.

You can check the availability of the module with the following command line: httpd -M 2>/dev/null | grep status_module

This is an example configuration of the Apache web server:

<Location "/server-status">

SetHandler server-status

Require host example.com

</Location>

On the other hand, if you are using a different location/path (as compared to /server-status), do not forget to change the URL in the apacheHttpParams of the referred Custom Integration scripts (set to /server-status by default).


Want to learn more about Apache monitoring through Domotz?

Ready to get started with Domotz?

  • Powerful
  • Automated
  • Simple
  • Affordable
Start Your Free Trial Contact Sales