Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have two web servers at different locations (let's call them WEB1 and WEB2) being monitored by the same Munin server. Today, I noticed the following error in the apache logs for WEB1:

[error] [client <IP OF WEB2>] client denied by server configuration: /var/www/server-status

Naturally, I have server-status limited to localhost on both machines for security. It happens every 5 minutes at the exact same time my munin server gathers info, so I know it is the munin apache_activity plugin causing this to happen.

Why on earth is it trying to check the server-status of a different server, and how do I stop it?

share|improve this question
1  
Have you checked the plugin configuration files? If env.url is set for apache plugins it will use that to grab /server-status. –  James O'Gorman Jan 9 '12 at 22:58
    
I don't know much about how Munin works. The only file in /etc/munin/plugin-conf.d/ is /etc/munin/pluginconf.d/munin-node. It has no section header for apache_activity. –  Andrew Jan 9 '12 at 23:01

1 Answer 1

apache_activity retrieves "http://127.0.0.1:%d/server-status?auto", so that rules out DNS or /etc/hosts issues (confirm this by looking at your copy of apache_activity.)

Is apache on WEB2 is configured to redirect or proxy some requests to WEB1, and you've inadvertently included /server-status?

share|improve this answer
    
That's what I found too. I don't have any proxying setup on apache. The only possible link I can think of is that both servers will identify themselves as the root of my domain through apache (i.e. both servers say they're example.com). But both servers also properly identify themselves as WEB1 and WEB2 through telnet to port 4949, and I still have no idea how that would affect the apache_activity plugin. –  Andrew Jan 16 '12 at 18:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.