File: template_apache_config.md

package info (click to toggle)
cacti 1.2.30%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 67,176 kB
  • sloc: php: 123,193; javascript: 29,825; sql: 2,595; xml: 1,823; sh: 1,228; perl: 194; makefile: 65; python: 51; ruby: 9
file content (57 lines) | stat: -rw-r--r-- 1,349 bytes parent folder | download
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

![apache template view](images/apache-template-preview.png)

## 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