Pandora FMS
Administrator Manual
Apache WebServer Monitoring
Administrator Manual Apache WebServer Monitoring
© Artica Soluciones Tecnológicas 2005-2012
Index
1Changelog...........................................................................................................................................3
2Introduction........................................................................................................................................4
3Compatibility Matrix..........................................................................................................................5
4Documentation provided by the requesting area................................................................................6
5Modules of Apache Webserver available...........................................................................................7
6Monitoring Apache Webserver..........................................................................................................8
6.1.Monitoring via plugins and modules.........................................................................................8
6.1.1.Plugin Agent (local method) .............................................................................................9
1 CHANGELOG
Date Author Change Version
09/05/11 Tomas First Version v1r1
27/11/12 Mario_P Change code v1r2
02/07/13 Mario_P Change code v1r3
22/08/13 Axel Change code v1r4
Page 3
2 INTRODUCTION
This plugin allow you to monitor the Apache Web server status using mod_status.
3 COMPATIBILITY MATRIX
Page 4
Was tested in these systems
• Apache 1.3.x
• Apache 2.x
It should work in these systems
• Apache 1.3.x
• Apache 2.x
4 DOCUMENTATION PROVIDED BY THE REQUESTING AREA
Page 5
These parameters must be provided by the area which request the monitoring services:
• username: username to authenticate in Apache
• password: password to authenticate in Apache
• command: use wget or curl command.
• IP address: IP of Apache server to monitor
5 MODULES OF APACHE WEBSERVER AVAILABLE
Page 6
The parameters available to monitor are:
• ApacheTotalTraffic
• ApacheTotalAcceses
• ApacheServerUptime
• ApacheRestartTime
• ApacheIdleWorkers
• ApacheCurrentRequests
• Apache Request/Sec
• Apache CPU Load
• Apache (B/kB/MB)/Sec
• Apache (B/kB/MB)/Request
6 MONITORING APACHE WEBSERVER
6.1. Monitoring via plugins and modules
Page 7
Once we have installed and configured both Pandora and Apache servers, we're going to explain
how to obtain info about the server status.
There are different ways to achieve this goal, but the easiest and the one on which we're going to
focus is using plugin agents to include modules designed to monitor this information in the
Pandora server, offered by Apache server-status webpage. We can check this page if we have
installed the mod_status module in our Apache server.
6.1.1. Plugin Agent (local method)
Let's suppose we have installed Pandora and Apache servers on different machines, with all the
monitoring systems installed. (Pandora Agent, mod_status)
To perfectly configure the system in order to monitor Apache with mod_status in Pandora, we've
got to find in the Apache server the files httpd.conf (for Apache 1.3.x) apache2.conf (for Apache
2.x) or status.conf (some Apache 2 versions and Turnkeys)
These files can be respectively found in:
Page 8
/etc/apache/
/etc/apache2/
/etc/apache2/mods-enabled
For Apache 1.3.x, we need to make sure the following entry exists in /etc/apache/modules.conf:
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
For Apache 2.x, we need to obtain mod_info. We can make sure we have it by writing in the
terminal the following:
a2enmod info
Once we have located the corresponding config file, include or uncomment the following:
Note: is Apache 2.x is recommended to verify if this paragraph is inside apache2.conf or
status.conf
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from <Pandora-Server-IP>
Allow from <Machine-Browser-Test-IP>
</Location>
With everything configured, only a restart or reload of the Apache server is needed to continue.
We need a script to gather the values we want to monitor from the HTML file which contains the
Apache Server Status.
We've used an Apache Tomcat Turnkey where we can find that file in the following location:
http://<Apache-IP-Address>/status-server
This script is going to store this file in a local temporal file and parse these values in a Pandora-
compatible XML format.
The script is the following:
pandora_apache.pl
Page 9
Once we have located the script and the values we want to monitor, include this file in
pandora_agent.conf as a plugin agent. This plugin will create a module for each value, visible in the
Pandora server web interface.
Note: please change permissions to allow the script to be executed.
pandora_agent.conf is the configuration file of the Pandora Agent Software, and where all plugin
agents must be located. This file can be found in:
/etc/pandora/pandora_agent.conf
We will write the following in the file to create the plugin agent for Pandora:
module_plugin <plugin-path>/pandora_apache.pl <username> <userpass>
http://<ApacheServer-IP-Address>/server-status <command(wget|curl>
For instance:
module_plugin /etc/pandora/plugins/pandora_apache.pl user password
http://127.0.0.1/server-status curl
module_plugin /etc/pandora/plugins/pandora_apache.pl none none
http://127.0.0.1/server-status wget
Restart Pandora Agent and the Pandora Server will create a module for each data contained in the
Apache server-status page, from current requests to CPU load and ratios.
/etc/init.d/pandora_agent_daemon restart
Page 10

More Related Content

PDF
Pandora FMS: Outlook Anywhere Plugin
PDF
SoftLayer-demoLabV3
PDF
How To Configure Amazon EC2 Security Groups
PDF
How To Install and Configure Apache SSL on CentOS 7
PDF
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
PDF
How To Install and Configure AWS CLI for Windows
PDF
Connect Amazon EC2 Linux Instance
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
Pandora FMS: Outlook Anywhere Plugin
SoftLayer-demoLabV3
How To Configure Amazon EC2 Security Groups
How To Install and Configure Apache SSL on CentOS 7
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Install and Configure AWS CLI for Windows
Connect Amazon EC2 Linux Instance
How To Check IE Enhanced Security Is Enabled Windows PowerShell

What's hot (20)

PDF
How To Connect Amazon AWS EC2 with Key Pair – Linux
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
DOCX
How to Configure Amazon AWS EC2 Elastic IP Address
PDF
How To Install and Configure Splunk on RHEL 7 in AWS
PDF
How To Install and Configure AWS CLI on RHEL 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
Pandora FMS - Selenium Enterprise Plugin
PDF
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
PDF
How To Connect To Active Directory PowerShell
PDF
How To Install and Configure Chrony on RHEL 7
PDF
How To Configure FirewallD on RHEL 7 or CentOS 7
PDF
How To Create EC2 instance Linux Server
PDF
How To Install OpenFire in CentOS 7
PDF
Install and Configure RSyslog – CentOS 7 / RHEL 7
PDF
How To Install and Configure SNMP on RHEL 7 or CentOS 7
PDF
Software-defined Datacenter Maintenance - No More Sleepless Nights and Long W...
PDF
How To Install and Configure Salt Master on Ubuntu
PDF
How To Configure Apache VirtualHost on RHEL 7 on AWS
PDF
How To Check file exists and Delete PowerShell
PDF
Pandora FMS: Exchange OWA Plugin
How To Connect Amazon AWS EC2 with Key Pair – Linux
How To List Nginx Modules Installed / Complied on CentOS 7
How to Configure Amazon AWS EC2 Elastic IP Address
How To Install and Configure Splunk on RHEL 7 in AWS
How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure Open SSH Server on Ubuntu
Pandora FMS - Selenium Enterprise Plugin
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Connect To Active Directory PowerShell
How To Install and Configure Chrony on RHEL 7
How To Configure FirewallD on RHEL 7 or CentOS 7
How To Create EC2 instance Linux Server
How To Install OpenFire in CentOS 7
Install and Configure RSyslog – CentOS 7 / RHEL 7
How To Install and Configure SNMP on RHEL 7 or CentOS 7
Software-defined Datacenter Maintenance - No More Sleepless Nights and Long W...
How To Install and Configure Salt Master on Ubuntu
How To Configure Apache VirtualHost on RHEL 7 on AWS
How To Check file exists and Delete PowerShell
Pandora FMS: Exchange OWA Plugin
Ad

Similar to Pandora FMS: Apache server monitoring (20)

PDF
How to installation and configure apache2
PDF
Pandora FMS: FTP Server monitoring
PDF
L.A.M.P Installation Note --- CentOS 6.5
PDF
Pandora FMS: Sun One webserver
PDF
Pandora FMS: Tomcat Monitoring
PDF
Orangescrum Time Log Gold add-on User Manual
PDF
Pandora FMS: Jboss monitoring
PDF
User and group security migration
PDF
Apache - Quick reference guide
PDF
Using aphace-as-proxy-server
PDF
SNC Configuration between Oracle Identity Manager and SAP
PDF
Force.com migration utility
PDF
Pandora FMS: Raven DB Plugin
PDF
Force.com migration utility
PDF
Pandora FMS: Hyper V Plugin
PDF
User and group security migration
PDF
appserver.io tutorial
PDF
Pandora FMS: MongoDB plugin
PDF
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
How to installation and configure apache2
Pandora FMS: FTP Server monitoring
L.A.M.P Installation Note --- CentOS 6.5
Pandora FMS: Sun One webserver
Pandora FMS: Tomcat Monitoring
Orangescrum Time Log Gold add-on User Manual
Pandora FMS: Jboss monitoring
User and group security migration
Apache - Quick reference guide
Using aphace-as-proxy-server
SNC Configuration between Oracle Identity Manager and SAP
Force.com migration utility
Pandora FMS: Raven DB Plugin
Force.com migration utility
Pandora FMS: Hyper V Plugin
User and group security migration
appserver.io tutorial
Pandora FMS: MongoDB plugin
#VirtualDesignMaster 3 Challenge 4 - Harshvardhan Gupta
Ad

More from Pandora FMS (20)

PDF
Pandora FMS: Plugin de Raven DB
PDF
Pandora FMS: Plugin de Apache Hbase
PDF
Pandora FMS: Cisco Remote inventory modules
PDF
Pandora FMS: Plugin de exchange de acceso de web
PDF
Pandora FMS: Plugin de monitorización de Outlook Anywhere
PDF
Pandora FMS: Plugin Enterprise de Exchange
PDF
Pandora FMS: Exchange Enterprise plugin
PDF
Pandora FMS: Plugin de monitorización de cliente de Exchage
PDF
Pandora FMS: End to End Exchange Plugin
PDF
Pandora FMS: Monitorización de Blackberry Exchange
PDF
Pandora FMS: Blackberry Exchange Monitoring
PDF
Pandora FMS: Plugin de Exchange ActivSync
PDF
Pandora FMS: Exchange ActivSync Plugin
PDF
Pandora FMS: Plugin Enterprise de VMware
PDF
Pandora FMS: VMware Enterprise Plugin
PDF
Pandora FMS: Plugin de monitorización de Hyper V
PDF
Pandora FMS: Plugin de correo Imap
PDF
Pandora FMS: PostgreSQL Plugin
PDF
Pandora FMS: Monitorización de servidores MySQL
PDF
Pandora FMS: Mysql Server Monitoring
Pandora FMS: Plugin de Raven DB
Pandora FMS: Plugin de Apache Hbase
Pandora FMS: Cisco Remote inventory modules
Pandora FMS: Plugin de exchange de acceso de web
Pandora FMS: Plugin de monitorización de Outlook Anywhere
Pandora FMS: Plugin Enterprise de Exchange
Pandora FMS: Exchange Enterprise plugin
Pandora FMS: Plugin de monitorización de cliente de Exchage
Pandora FMS: End to End Exchange Plugin
Pandora FMS: Monitorización de Blackberry Exchange
Pandora FMS: Blackberry Exchange Monitoring
Pandora FMS: Plugin de Exchange ActivSync
Pandora FMS: Exchange ActivSync Plugin
Pandora FMS: Plugin Enterprise de VMware
Pandora FMS: VMware Enterprise Plugin
Pandora FMS: Plugin de monitorización de Hyper V
Pandora FMS: Plugin de correo Imap
Pandora FMS: PostgreSQL Plugin
Pandora FMS: Monitorización de servidores MySQL
Pandora FMS: Mysql Server Monitoring

Recently uploaded (20)

PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
observCloud-Native Containerability and monitoring.pptx
PPT
What is a Computer? Input Devices /output devices
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
Modernising the Digital Integration Hub
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
STKI Israel Market Study 2025 version august
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPT
Geologic Time for studying geology for geologist
PDF
Five Habits of High-Impact Board Members
PDF
August Patch Tuesday
PDF
Hybrid model detection and classification of lung cancer
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
O2C Customer Invoices to Receipt V15A.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Module 1.ppt Iot fundamentals and Architecture
observCloud-Native Containerability and monitoring.pptx
What is a Computer? Input Devices /output devices
A novel scalable deep ensemble learning framework for big data classification...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Modernising the Digital Integration Hub
A comparative study of natural language inference in Swahili using monolingua...
STKI Israel Market Study 2025 version august
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Chapter 5: Probability Theory and Statistics
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Geologic Time for studying geology for geologist
Five Habits of High-Impact Board Members
August Patch Tuesday
Hybrid model detection and classification of lung cancer
From MVP to Full-Scale Product A Startup’s Software Journey.pdf

Pandora FMS: Apache server monitoring

  • 2. Administrator Manual Apache WebServer Monitoring © Artica Soluciones Tecnológicas 2005-2012 Index 1Changelog...........................................................................................................................................3 2Introduction........................................................................................................................................4 3Compatibility Matrix..........................................................................................................................5 4Documentation provided by the requesting area................................................................................6 5Modules of Apache Webserver available...........................................................................................7 6Monitoring Apache Webserver..........................................................................................................8 6.1.Monitoring via plugins and modules.........................................................................................8 6.1.1.Plugin Agent (local method) .............................................................................................9
  • 3. 1 CHANGELOG Date Author Change Version 09/05/11 Tomas First Version v1r1 27/11/12 Mario_P Change code v1r2 02/07/13 Mario_P Change code v1r3 22/08/13 Axel Change code v1r4 Page 3
  • 4. 2 INTRODUCTION This plugin allow you to monitor the Apache Web server status using mod_status. 3 COMPATIBILITY MATRIX Page 4
  • 5. Was tested in these systems • Apache 1.3.x • Apache 2.x It should work in these systems • Apache 1.3.x • Apache 2.x 4 DOCUMENTATION PROVIDED BY THE REQUESTING AREA Page 5
  • 6. These parameters must be provided by the area which request the monitoring services: • username: username to authenticate in Apache • password: password to authenticate in Apache • command: use wget or curl command. • IP address: IP of Apache server to monitor 5 MODULES OF APACHE WEBSERVER AVAILABLE Page 6
  • 7. The parameters available to monitor are: • ApacheTotalTraffic • ApacheTotalAcceses • ApacheServerUptime • ApacheRestartTime • ApacheIdleWorkers • ApacheCurrentRequests • Apache Request/Sec • Apache CPU Load • Apache (B/kB/MB)/Sec • Apache (B/kB/MB)/Request 6 MONITORING APACHE WEBSERVER 6.1. Monitoring via plugins and modules Page 7
  • 8. Once we have installed and configured both Pandora and Apache servers, we're going to explain how to obtain info about the server status. There are different ways to achieve this goal, but the easiest and the one on which we're going to focus is using plugin agents to include modules designed to monitor this information in the Pandora server, offered by Apache server-status webpage. We can check this page if we have installed the mod_status module in our Apache server. 6.1.1. Plugin Agent (local method) Let's suppose we have installed Pandora and Apache servers on different machines, with all the monitoring systems installed. (Pandora Agent, mod_status) To perfectly configure the system in order to monitor Apache with mod_status in Pandora, we've got to find in the Apache server the files httpd.conf (for Apache 1.3.x) apache2.conf (for Apache 2.x) or status.conf (some Apache 2 versions and Turnkeys) These files can be respectively found in: Page 8
  • 9. /etc/apache/ /etc/apache2/ /etc/apache2/mods-enabled For Apache 1.3.x, we need to make sure the following entry exists in /etc/apache/modules.conf: LoadModule status_module /usr/lib/apache/1.3/mod_status.so For Apache 2.x, we need to obtain mod_info. We can make sure we have it by writing in the terminal the following: a2enmod info Once we have located the corresponding config file, include or uncomment the following: Note: is Apache 2.x is recommended to verify if this paragraph is inside apache2.conf or status.conf ExtendedStatus On <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from <Pandora-Server-IP> Allow from <Machine-Browser-Test-IP> </Location> With everything configured, only a restart or reload of the Apache server is needed to continue. We need a script to gather the values we want to monitor from the HTML file which contains the Apache Server Status. We've used an Apache Tomcat Turnkey where we can find that file in the following location: http://<Apache-IP-Address>/status-server This script is going to store this file in a local temporal file and parse these values in a Pandora- compatible XML format. The script is the following: pandora_apache.pl Page 9
  • 10. Once we have located the script and the values we want to monitor, include this file in pandora_agent.conf as a plugin agent. This plugin will create a module for each value, visible in the Pandora server web interface. Note: please change permissions to allow the script to be executed. pandora_agent.conf is the configuration file of the Pandora Agent Software, and where all plugin agents must be located. This file can be found in: /etc/pandora/pandora_agent.conf We will write the following in the file to create the plugin agent for Pandora: module_plugin <plugin-path>/pandora_apache.pl <username> <userpass> http://<ApacheServer-IP-Address>/server-status <command(wget|curl> For instance: module_plugin /etc/pandora/plugins/pandora_apache.pl user password http://127.0.0.1/server-status curl module_plugin /etc/pandora/plugins/pandora_apache.pl none none http://127.0.0.1/server-status wget Restart Pandora Agent and the Pandora Server will create a module for each data contained in the Apache server-status page, from current requests to CPU load and ratios. /etc/init.d/pandora_agent_daemon restart Page 10