ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Sergey <a_s_y@sama.ru>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Чем смотреть RRD-файлы?
Date: Fri, 12 Mar 2010 18:05:24 +0400
Message-ID: <201003121805.24903.a_s_y@sama.ru> (raw)
In-Reply-To: <201003112251.16030.a_s_y@sama.ru>

On Thursday 11 March 2010, Sergey wrote:

> Сегодня третий день, как я пытаюсь заставить её работать, в первом
> приближении, с apache2. Как заставлю,

Упёрся в непонимание, как использовать r->args. Что-то ничего не 
передаётся. Описано вот так:

sub handler {
	# get request object
	my $r = shift;
	my @call = ();
	my $untaint;
	my %args = $r->args;

Это модуль BRONC::Grapher, вызов описан в конфиге Apache2:

    <Location /grapher>
	SetHandler   perl-script
	PerlHandler  BRONC::Grapher
    </Location>

В логе Апача видны запросы вида:

"GET /grapher?t1=pin50&fi1=sw1.rrd&gt1=HIDDEN&t2=pout50&fi2=sw1.rrd&gt2=HIDDEN&t3=pin50_comp&fi3=COMPOSITE&c3=00CF00&gt3=AREA&t4=pout50_comp&fi4=COMPOSITE&c4=0000CF&gt4=LINE1 HTTP/1.1"

Ни у кого идей нет, почему в  %args пусто ?

В подключаемых модулях сделана вот такая замена:

- use Apache;
- use Apache::Constants qw( :common :response );
+ use Apache2::Const;
+ use Apache2::RequestRec;

-- 
С уважением, Сергей
a_s_y@sama.ru


  reply	other threads:[~2010-03-12 14:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-11  3:46 Alexey Borovskoy
2010-03-11  4:06 ` [Sysadmins] ***SPAM*** " Rinat Shigapov
2010-03-11  5:36   ` Alexey Borovskoy
2010-03-11  6:47 ` [Sysadmins] " Anton Farygin
2010-03-11  8:47   ` Alexey Borovskoy
2010-03-11  9:06     ` Anton Farygin
2010-03-11  9:27       ` Alexey Borovskoy
2010-03-11  9:38         ` Anton Farygin
2010-03-15  9:14       ` Alexey Borovskoy
2010-03-11 18:51 ` Sergey
2010-03-12 14:05   ` Sergey [this message]
2010-03-12 14:18     ` Sergey
2010-03-16 14:34       ` Sergey
2010-03-17  9:29         ` Sergey
2010-03-17 11:50           ` Sergey
2010-03-17 12:43             ` Sergey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201003121805.24903.a_s_y@sama.ru \
    --to=a_s_y@sama.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git