# Apache Enterprise Plugin

# Introduction

This plugin allows to monitor the Apache web server status using the module\_plugin.

# Compatibility matrix

<table border="1" id="bkmrk-sistemas-donde-se-ha-1" style="width: 83.2099%; height: 59.5938px;"><tbody><tr style="height: 29.7969px;"><td style="width: 52.3669%; height: 29.7969px;">**Tested and developed with**</td><td style="width: 47.6331%; height: 29.7969px;">Rocky linux 8/9, Fedora 34</td></tr><tr style="height: 29.7969px;"><td style="width: 52.3669%; height: 29.7969px;">**Expected to work with**</td><td style="width: 47.6331%; height: 29.7969px;">Any linux system</td></tr></tbody></table>

you need to have installed the version of Apache 1.3 and higher

# Configuration

To be able to use the apache service (httpd) we need to make the following configuration

enable status in the apache configuration file, it is necessary to create the file inside the conf.d path to access:

```bash
cd /etc/httpd/conf.d/
```

then create the file with .conf extension

```bash
touch server-status.conf
```

or create and edit it directly, from any path

```bash
vim /etc/httpd/conf.d/server-status.conf
```

Open it and add the following :

```bash
ExtendedStatus On

<Location "/server-status">
    SetHandler server-status
    Require valid-user

    AuthType Basic
    AuthName "Restricted Access"
    AuthUserFile /etc/httpd/.htpasswd

</Location>
```

assign a password:

```bash
sudo htpasswd -c /etc/httpd/.htpasswd admin
```

restart apache and verify that everything is correct:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/1GWimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/1GWimage.png)

# General plugin parameters

The parameters necessary for the monitoring to be provided by the area requiring monitoring services are:

```
./pandora_apache -url <target url> -user <username> -pass <password user>
```

example of execution

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/AWvimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/AWvimage.png)

# Plugin specific parameters

The plugin has the following parameters:

<table border="1" id="bkmrk-par%C3%A1metro-descripci%C3%B3" style="width: 100.123%;"><tbody><tr><td class="align-center" style="width: 49.9388%;">**Parameter**</td><td class="align-center" style="width: 50.0612%;">**Description**</td></tr><tr><td style="width: 49.9388%;">-url</td><td style="width: 50.0612%;">specific url</td></tr><tr><td style="width: 49.9388%;">-user</td><td class="align-left" style="width: 50.0612%;">username to authenticate to Apache. </td></tr><tr><td style="width: 49.9388%;">-pass</td><td style="width: 50.0612%;">password to authenticate to Apache.</td></tr></tbody></table>

Example of help:

```bash
./pandora_apache
```

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/Ok1image.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/Ok1image.png)

# Manual execution

The plugin execution format is as follows:

```bash
./pandora_apache -url <target url> -user <username> -pass <password user>
```

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/Gbsimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/Gbsimage.png)

# Pandora Configuration

In the pandora terminal, once downloaded, we will move it to the /etc/pandora/plugins folder, which is where we place the agent plugins.

We will give permissions to the file with :

```bash
chmod 755 pandora_apache
```

Then we will go to the pandora agent, located in /etc/pandora, open the conf and at the bottom we put :

```bash
module_plugin /etc/pandora/plugins/pandora_apache -url (apache_url_to_server_status) -user (user) -pass (password)
```

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/QJWimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/QJWimage.png)

In the enterprise version we will be able to do it by remote configuration.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/vSDimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/vSDimage.png)

# Modules generated by the plugin

The following modules will be created in the pandora agent:

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/scaled-1680-/h0Bimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2025-06/h0Bimage.png)