{"id":238,"date":"2010-12-14T10:26:04","date_gmt":"2010-12-14T03:26:04","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=238"},"modified":"2017-08-11T03:01:59","modified_gmt":"2017-08-10T20:01:59","slug":"sqstat","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2010\/12\/14\/sqstat\/","title":{"rendered":"SqStat"},"content":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0449\u044c &#8211; SqStat! \u041d\u0443 \u043e\u043e\u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0432\u0435\u0449\u044c! \u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 squid \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044e\u0437\u0435\u0440\u043e\u0432! \u0417\u0430\u0447\u0435\u043c? \u0410 \u0437\u0430\u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u0430\u0447\u0430\u0435\u0442, \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043a\u0430\u043d\u0430\u043b!!! \u0421\u043a\u0440\u0438\u043f\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 cachemgr \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u044b \u0441 squid \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u042d\u0442\u043e \u0435\u0441\u0442\u044c \u0442\u043e\u0436\u0435 \u0433\u0443\u0434, \u0442.\u043a. \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0430\u043a\u0435 \u0441 \u0441\u043a\u0432\u0438\u0434\u043e\u043c!<\/p>\n<p>\u0427\u0442\u043e \u0438\u043c\u0435\u0435\u0442\u0441\u044f: <br \/>Web \u0441\u0435\u0440\u0432\u0430\u043a &#8211; 1 \u0448\u0442\u0443\u043a\u0430 <br \/>Proxy \u0441\u0435\u0440\u0432\u0430\u043a &#8211; 1 \u0448\u0442\u0443\u043a\u0430 <\/p>\n<p>\u041d\u0430 web \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<br \/>wget <a href=\"http:\/\/samm.kiev.ua\/sqstat\/sqstat-1.20.tar.gz\">http:\/\/samm.kiev.ua\/sqstat\/sqstat-1.20.tar.gz<\/a><br \/>tar zxvf sqstat-1.20.tar.gz<br \/>mv sqstat-1.20\/ \/somewebdir\/sqstat<br \/>cd sqstat\/<br \/>cp config.inc.php.defaults config.inc.php<br \/>ln -s sqstat.php index.php<\/p>\n<p>config.inc.php:<br \/><em>&lt;?php<br \/>$use_js=true;<br \/>$squidhost[0]=&quot;192.168.0.2&quot;; \/\/IP proxy \u0441\u0435\u0440\u0432\u0435\u0440\u0430<br \/>$squidport[0]=3128; \/\/\u043f\u043e\u0440\u0442 proxy<br \/>$cachemgr_passwd[0]=&quot;somepassword&quot;; \/\/\u043f\u0430\u0440\u043e\u043b\u044c cachemgr; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 squid.conf<br \/>$resolveip[0]=true;<br \/>$group_by[0]=&quot;host&quot;;<br \/>?&gt;<\/em><em><\/em><\/p>\n<p>\u041d\u0430 proxy \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<br \/>squid.conf:<br \/>acl manager proto cache_object<br \/>acl webserver src 192.168.0.1\/255.255.255.255<br \/>http_access allow manager webserver<br \/>http_access deny manager<br \/>cachemgr_passwd somepassword all<br \/>\u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0410\u0426\u041b\u0430\u0445 web \u0441\u0435\u0440\u0432\u0430\u043a \u0438 \u043f\u0430\u0440\u043e\u043b\u044c cachemgr&rsquo;\u0430&#8230;<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0438:<br \/>\u041d\u0430 lissyara.su \u043f\u0440\u043e <a href=\"http:\/\/www.lissyara.su\/articles\/freebsd\/programms\/squid_sams\/#sqstat\" target=\"_self\">sqstat<\/a><br \/><a href=\"http:\/\/www.ignix.ru\/public\/daemon\/sqstat\" target=\"_self\">ignix.ru<\/a><br \/><a href=\"http:\/\/samm.kiev.ua\/sqstat\/\" target=\"_self\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u0432\u0440\u043e\u0434\u0435<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0449\u044c &#8211; SqStat! \u041d\u0443 \u043e\u043e\u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0432\u0435\u0449\u044c! \u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 squid \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u044e\u0437\u0435\u0440\u043e\u0432! \u0417\u0430\u0447\u0435\u043c? \u0410 \u0437\u0430\u0442\u0435\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u0430\u0447\u0430\u0435\u0442, \u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043a\u0430\u043d\u0430\u043b!!! \u0421\u043a\u0440\u0438\u043f\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 cachemgr \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u044b \u0441 squid \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u042d\u0442\u043e \u0435\u0441\u0442\u044c \u0442\u043e\u0436\u0435 \u0433\u0443\u0434, \u0442.\u043a. \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043d\u0430 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[136,134,135,28,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/238"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":3,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}