LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-26-2021, 06:56 AM   #1
leonardnmoy
LQ Newbie
 
Registered: May 2021
Posts: 3

Rep: Reputation: Disabled
How to get squid cachemgr.cgi to show stats?


The common wisdom to get the squid cachemgr.cgi to work is to include the
Quote:
cachemgr_passwd <pwd> activity
in squid.conf. Unfortunately it doesn't seem to work out of the box with cachemgr.cgi.

To view cache statistics, squid can show different stats via the built in cachemgr cgi interface. However, while i can get past the login screen to the menu, clicking on any of the links returns a ERR_CACHE_MGR_ACCESS_DENIED in the log files and a denied access web page.

Using squidclient with the password, on the other hand, i'm able to access the squid statistics, so the problem lies with cachemgr.cgi.

I've tried
Quote:
cachemgr_passwd disable all
but it errors out with a page saying there are quotation marks missing from the request.

Following the tcp stream, it seems that squidclient sends the correct password to the squid instance, but cachemgr.cgi doesn't. Is there a configuration step i'm missing?

I've seen recommendations on the web on setting
Quote:
http_access allow manager
, which is a pretty bad idea. And another which suggested adding
Quote:
acl Safe_ports port 3128
, which is also a bad idea.

How can i enable cachemgr.cgi to access the squid stats?
 
Old 05-26-2021, 08:27 PM   #2
leonardnmoy
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
I'm able to get to the squid-internal-mgr pages, primarily because the http basic auth presented by the broweser works. It seems the login screen of cachemgr.cgi to set http basic auth isn't working
 
Old 05-26-2021, 09:52 PM   #3
leonardnmoy
LQ Newbie
 
Registered: May 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Didn't setup the nginx basic auth. However, even after setting up basic auth for the cgi-bin directory, cachemgr.cgi is still unable to access the squid stats. It looks like cachemgr.cgi isn't sending the correct password to squid, because squidclient works and direct access to squid internal stats work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
monitoring network stats and user stats robertkwild CentOS 2 11-22-2017 03:54 AM
How can configure cachemgr.cgi for monitoring squid? Felipe Linux - Server 2 01-12-2014 01:31 AM
[SOLVED] Squid 3.2.0.11 and cachemgr.cgi riganta Linux - Server 2 10-31-2011 06:01 PM
Is it safe to show server stats? six6 Linux - Security 3 08-05-2005 12:31 PM
Suggestions for PHP or cgi-based site stats software infidel Linux - Software 5 05-12-2005 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration