Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-16-2011, 06:59 AM   #1
Registered: Oct 2006
Posts: 300

Rep: Reputation: 32
How can configure cachemgr.cgi for monitoring squid?


I've a problem with squid and I'm trying to configure cachemgr.cgi to monitor it.

I access with http://server/cgi-bin/cachemgr.cgi

a webpage is displayed to enter
Cache Server:
Cache Host:
Cache Port:
Manager name:

I enter the cache-server, host, port and password and a page with many options is displayed (Manager name left empty, don't know what to put).

But pressing any option, an authentication error is displayed.

What I try:
- To allow full access to cache mgr from a IP (I'll restrict it).
- Control all my squid-cache form a single cachemgr.cgi.

What I've configured:
- cachemgr.conf

- squid.conf
http_port 1081
acl manager proto cache_object
http_access allow manager (allow from all, restrict later).
cachemgr_passwd my_sec_pass all

From command line works:
squidclient -p 1081 mgr:info@my_sec_pass

but not from web (options displayed, but error accessing any of them).
Ex: Pressing an option, cache.log displays error:
The request GET cache_object://server.domain/offline_toggle is ALLOWED, because it matched 'manager'
CACHEMGR: <unknown>@ password needed for 'offline_toggle'

Any suggestion?


Last edited by Felipe; 03-16-2011 at 07:01 AM.
Old 03-16-2011, 07:24 AM   #2
Registered: Oct 2006
Posts: 300

Original Poster
Rep: Reputation: 32
Changing from:
cachemgr_passwd my_sec_pass all
cachemgr_passwd my_sec_pass

allows to access all options except

Current Squid Configuration (hidden).
Shut Down the Squid Process (hidden).
Toggle offline_mode setting (hidden).

How can enable this options?

Old 01-12-2014, 01:31 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Still no answer?

I am having this same issue… Does anyone have a solution?
I have tried
cachemgr_passwd notmypasword all
cachemgr_passwd notmypasword
and even
cachemgr_passwd notmypassword index menu offline_toggle shutdown reconfigure rotate pconn cached_ssl_cert mem diskd squidaio_counts config comm_epoll_incomming ipcache fqdncache idns redirector basicauthenticator external_acl http_headers via_headers forw_headers info service_times filedescriptors objects vm_objects io counters peer_select digest_stats 5min 60min utilization histograms active_requests username_cache openfd_objects store_digest store_log_tags storedir store_io store_check_cachable_stats refresh delay forward cbdata events client_list netdb asndb carp userhash sourcehash server_list



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
squid monitoring 4ajaysingh Linux - Networking 2 01-30-2007 03:16 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM
Monitoring squid gubak Linux - Networking 2 08-19-2004 07:53 AM
Squid & cgi-bin ? .. Prob. collen Linux - General 0 04-01-2004 08:25 AM
Does Squid offer such CGI? captain Linux - Networking 1 04-14-2001 05:17 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:08 PM.

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