Enable ExtendedStatus for mod_status by default (was: munin apache plugin no data)

Bug #231706 reported by monocult
2
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Fix Released
Wishlist
Unassigned
munin (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: munin

The apache plugin returns no data. If I try "munin-run apache_accesses" it returns
"accesses80.value U".

same in "apache_processes", "apache_volume".

My system is the Hardy Sparc Port.

Revision history for this message
Jurrit (jurrit) wrote :

Dit you try this:
cd /etc/munin/plugins/
munin-run apache_accesses auto

and

w3m http://127.0.0.1/server-status?auto

You probably need something like this in your apache2.conf:
<IfModule mod_status.c>
    ExtendedStatus On
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
</IfModule>

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

I've made a "localhost" virtual host that serves munin with data:

<VirtualHost *:80>
    # vim:syntax=apache
    ServerAdmin root@localhost
    ServerName localhost
    ServerAlias 127.0.0.1

    DocumentRoot /srv/http/localhost/

    <Location /server-status>
        SetHandler server-status
    </Location>

    <Location />
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
        Allow from ::1
    </Location>

    # Logging
    ErrorLog /var/log/apache2/localhost.error.log
    LogLevel warn
    CustomLog /var/log/apache2/localhost.access.log combined
</VirtualHost>

Copy into /etc/apache2/sites-available/localhost.conf, then run a2ensite localhost.conf and /etc/init.d/apache2 reload

Revision history for this message
Chuck Short (zulcss) wrote :

This looks more like a configuration problem then a bug.

Regards
chuck

Changed in munin (Ubuntu):
status: New → Invalid
Revision history for this message
Marcus Bointon (marcus-synchromedia) wrote :

This still happens on Lucid, but there's a less complicated fix for this. The status moule is normally enabled with `a2enmod status`. All that seems to be required to fix munin after that is to add 'ExtendedStatus On' to /etc/apache2/mods-enabled/status.conf so it looks like this:

<IfModule mod_status.c>
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Uncomment and change the ".example.com" to allow
# access from other hosts.
#
ExtendedStatus On
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ip6-localhost
# Allow from .example.com
</Location>

</IfModule>

After doing that both the apache_accesses and apache_volume plugins started working for me.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Couldn't we add "ExtendedStatus On" to the default configuration via /etc/apache2/mods-available/status.conf ?

Changed in apache2 (Ubuntu):
importance: Undecided → Wishlist
summary: - munin apache plugin no data
+ Enable ExtendedStatus for mod_status by default (was: munin apache
+ plugin no data)
Revision history for this message
Stefan Fritsch (sf-sfritsch) wrote :

This has been done in 2.2.15-4

Revision history for this message
Daniel Hahler (blueyed) wrote :

Thank you for the information, Stefan.
Marking as Fix Released then.

Changed in apache2 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.