1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# Apache Template Config
The Apache http webserver template allows you to monitor your local Cacti
server's Apache server for performance KPI's
This template leverages the mod_status module in apache in order to pull the kpi
data to feed into the script

## CentOS/RedHat Specific Configuration
For Centos/Redhat implementations the config will look as follows
Place the below config in /etc/httpd/conf/httpd.conf
```console
LoadModule status_module modules/mod_status.so
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Require local
</Location>
```
## Debian Specific Configuration
Enable the apcache2 `status` module:
Place the below config into a new file (eg, 80-server-status.conf) within
`/etc/apache2/conf-available`
```console
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Require local
</Location
```
Then use the following commands to enable the `stauts` module and new
configuration **Note**: You must restart the apache ( systemctl restart apache2)
for the config to take effect
```bash
a2enmod status
a2enconf 80-server-status.conf
```
**Note**: This configuration restricts the `/server-status` url to local access
only via the `Require local` directive
---
Copyright (c) 2004-2024 The Cacti Group
|