0% found this document useful (0 votes)
165 views

Apache Monitoring With PRTG

Enable the mod_status module in the Apache configuration file. Configure mod_status by editing the status.conf file to allow access to the server status page from specific IP addresses. Restart the Apache service to apply the changes. Monitoring the server status page with mod_status provides performance statistics about the Apache web server.

Uploaded by

21GlobalTec
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views

Apache Monitoring With PRTG

Enable the mod_status module in the Apache configuration file. Configure mod_status by editing the status.conf file to allow access to the server status page from specific IP addresses. Restart the Apache service to apply the changes. Monitoring the server status page with mod_status provides performance statistics about the Apache web server.

Uploaded by

21GlobalTec
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

PRTG Apache Monitoring

PRTG Apache Monitoring


Para instalar apache, ir a Terminal y correr:
sudo apt update
sudo apt install apache2
El servicio se llamará apeche2 (sudo service apache2 status)

Enable mod_status in Apache


By default, mod_status module is enabled in Ubuntu 14.04. If not, you can enable it by running:
sudo a2enmod status
Configure mod_status
To enable access to the server status page, you need to edit the mod_status default configuration file located in the
“/etc/apache2/mods-enabled/” directory.
You can edit the “status.conf” file by running:
sudo nano /etc/apache2/mods-enabled/status.conf
Find the section Location /server-status, remove the # before the 192.0.2.0/24 line and add the IP address of the
remote computer you will be using to access your web server:
<Location /server-status>
SetHandler server-status
Require local
Require ip 192.168.1.20/24
</Location>
Save and close the file.
Restart Apache Service:
sudo service Apache2 restart

Adding /24 to th eIP enables all Ips in the segment to retrieve Mod Status information

Other Reference:
https://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/
https://httpd.apache.org/docs/trunk/mod/mod_status.html
PRTG Apache Monitoring
Enable mod status in the Apache configuration file.
[root@tecmint ~]# vi /etc/httpd/conf/httpd.conf
Search for the word “mod_status” or keep scrolling down until you find a line containing:
#LoadModule status_module modules/mod_status.so
If you see a ‘#‘ character at the beginning of “LoadModule”, that means mod_status is disabled. Remove
the ‘#‘

Configure Mod Status


Now again search for the word “Location” or scroll down until you find a section for mod_status which
should look like following:
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from .example.com
#</Location>
In the above section, uncomment the lines for Location directive, SetHandler, and the directory
restrictions according to your needs.
Or remove all # to eep it simple
Sensores Apache ModStatus PerfStats y ModStatus Totals
HTTP SPECIFIC
Timeout (Sec.)
Enter a timeout in seconds for the request. If the reply takes longer than this value,
the sensor cancels the request and shows a corresponding error message. Enter an
integer value. The maximum value is 900 seconds (15 minutes).

URL Es la direccion IP del servidro Linux donde esta el Apache

192.168.88.31

You might also like