LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-16-2011, 07:59 AM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 294

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


Hallo:

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:
Password:

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
server.domain:1081

- 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>@10.22.234.23: password needed for 'offline_toggle'


Any suggestion?

Thanks

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

Original Poster
Rep: Reputation: 31
Changing from:
cachemgr_passwd my_sec_pass all
to
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?

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

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
 
  


Reply

Tags
squid


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


All times are GMT -5. The time now is 10:36 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration