Submit a ticketCall us

Solarwinds & Cisco Live! Barcelona
Join us from the 29th of January to the 2nd of February at Cisco Live 2018 in Barcelona, where we will continue to show how monitoring the network with SolarWinds will keep you ahead of the game. At our booth (WEP 1A), we will demonstrate how SolarWinds network solutions can help. As a bonus, we are also hosting a pre-event webinar - Blame the Network, Hybrid IT Edition with our SolarWinds Head Geek™, Patrick Hubbard on January 24th - GMT (UTC+0): 10:00 a.m. to 11:00 a.m. There's still time to RSVP.

Home > Success Center > Server & Application Monitor (SAM) > Configure Apache to allow access to the server-status page

Configure Apache to allow access to the server-status page

Table of contents
Created by Jesus Relingado, last modified by Rodim Suarez on Jun 29, 2016

Views: 2,585 Votes: 0 Revisions: 2

Updated

Overview

Apache Application Monitor retrieves statistics from the built-in Apache server-status web page using Perl scripts.

This article shows how to configure Apache to allow access to the server-status page.

Environment

SAM 6.0 and later

Steps

  1. Log on to your Apache server using an SSH or telnet client.
  2. Grant yourself root permissions (su root).
  3. Locate the Apache configuration file, typically in /etc/httpd/conf/httpd.conf 
    (For more information, see: http://wiki.apache.org/httpd/DistrosDefaultLayout)
  4. Append the following lines to your httpd.conf Apache configuration file, substituting the IP address or host name of your Apache server for localhost. Use localhost only if the Apache server services the loopback interface.
    <Location /server-status>
    SetHandler server-status
    Order Deny,Allow
    Deny from all
    Allow from localhost
    </Location>
    ExtendedStatus On
  5. Restart the Apache server (apachectl graceful).
  6. If the event a counter returns the following error, you will need to install libwww-perl.
    Can't locate LWP/UserAgent.pm in @INC ...” error:
  7. To install libwww-perl., enter the following command:
    cpan LWP::UserAgent

 

Last modified

Tags

Classifications

Public