# Apache performance plugin # Introduction View. With this plug-in we will be able to monitor our apache server. Type: Agent plug-in # Compatibility matrix
**Systems where it has been tested**CentOS 7
**Systems where it should work**Any linux system
# Prerequisites Required: - Have wget installed - Have the apache server status module enabled # Configuration To install wget on centOS, we use the following command : ``` yum install wget ``` To check that it is installed we use: ``` rpm -qa | grep wget ``` We will also need to enable status in the apache configuration file, in centOS this is in : ``` cd /etc/httpd/conf ``` [![image-1627470999987.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627470999987.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627470999987.png) Open it and add the following : ``` ExtendedStatus On SetHandler server-status Order deny,allow Deny from all Allow from ``` [![image-1627471134783.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627471134783.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627471134783.png) then, we restart apache: [![image-1627471173281.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627471173281.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627471173281.png) # Manual execution ``` ./apache_plugin ``` will return an xml with data: [![image-1627473046741.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627473046741.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627473046741.png) # Configuration in pandora 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 : ``` chmod 755 apache_plugin ``` Then we go to the pandora agent, located in /etc/pandora, open the conf and at the bottom we put : ``` module_plugin apache_plugin (apache_url_to_server_status) ``` [![image-1627473155004.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627473155004.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627473155004.png) In the enterprise version we will be able to do it by remote configuration. Once this is done, we update the agent and the modules will be created: [![image-1627473184400.png](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/scaled-1680-/image-1627473184400.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2021-07/image-1627473184400.png) # Modules generated by the plugin The following modules will be created in the pandora agent:
Apache : Busy workers
Apache: Bytes per second
Apache: Number of idle workers
Apache: Reloads
Apache: Requests per second
Apache: Restart time
Apache: System CPU usage
Apache: Total acesses
Apache: Uptime
Apache: User CPU usage