ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Lubimov <avl@l14.ru>
To: Dmitry Lebkov <dima@sakhalin.ru>
Cc: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Ошибка в nagios-www-common
Date: Sun, 10 Aug 2003 20:02:47 +0400
Message-ID: <3F366CA7.6080109@l14.ru> (raw)
In-Reply-To: <20030811020752.0c8f99d6.dima@sakhalin.ru>

Dmitry Lebkov пишет:

>On Sun, 10 Aug 2003 00:52:07 +0400
>Alexey Lubimov <avl@l14.ru> wrote:
>
>  
>
>>Почему то эта строчка в nagios-www-common
>>
>>#for moving to other alternatives scheme
>>%pre www-common
>>[ -d %_libdir/%name/cgi ] && rm -rf %_libdir/%name/cgi
>>
>>при отсутствии этого самого /ust/lib/nagios/cgi вызывает следующее:
>>
>>After unpacking 1866kB of additional disk space will be used.
>>Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
>>Preparing...                 
>>#####################################################################
>>################### 
>>[100%]
>>error: execution of %pre scriptlet from nagios-www-common-1.1-alt1 
>>failed, exit status 1
>>error:   install: %pre scriptlet failed (2), skipping 
>>nagios-www-common-1.1-alt1
>>E: Sub-process /bin/rpm returned an error code (1)
>>
>>Создав требуемую директорию, все поставил без ошибок, но по моему в 
>>спеке добивались другого...
>>    
>>
>
>Скорее всего связано с переездом на новую схему использования
>алтернатив. В предыдущем варианте /ust/lib/nagios/cgi был symlink'ом
>(альтернативой) на каталог с cgi-скриптами. И я только сейчас
>сообразил, что проверка -d не отработает и линк останется :(
>В ближайшее время поправлю и залью новую сборку.
>
>--
>WBR, Dmitry Lebkov
>  
>

Пользуясь случаем, хотел спросить.

Зачем в данном случае пользоваться альтернативами?
Я уж не говорю о том, что в мастере нет этих альтернатив и вообще 
ставить в зависимость к серверному компоненту библиотеку за номером 
0.0.6 без особой нужды не стоит.
Я не говорю, что альтернативы пока что весьма неустойчивы и 
недокументированы. Я получил при установке демон с файлами 
(nagios-default) и интерфейс с mysql (www-mysql) - естественно ничего не 
работало, а когда разобрался, то не понял, как же пльтернативу 
перекинуть . В итоге просто снес nagios-default и все само пришло в норму.

Самое главное, нагиос предполагает накопление данных. А  альтернативы 
просто переключают версии с разных БД и файлов. Естественно, данные из 
БД при этом не мигрируют и мы имеем кашу вместо сервиса. То есть во 
время эксплуатации переключать альтернативы бесполезно и даже вредно. А 
раз так, не проще было поставить в пакеты конфликты и зависимости, чтобы 
можно было поставить либо nagios(-www)-mysql либо *-default либо *-pgsql ?


И еще вопросик.
не работает ссылка:
/nagios/cgi-bin/statusmap.cgi?host=localhost&layout=5&max_width=0&max_height=0&proximity_width=1000&proximity_height=800&layermode=exclude

Это когда во вкладке   "Status Map" щелкаешь по любому хосту.

Выдает:




Internal Server Error
The server encountered an internal error or misconfiguration and was 
unable to complete your request.

Please contact the server administrator, root@localhost.localdomain and 
inform them of the time the error occurred, and anything you might have 
done that may have caused the error.

More information about this error may be available in the server error log.


апач в error_log при этом ругается вот как:

Premature end of script headers: /usr/lib/nagios/cgi/statusmap.cgi

В инете раскопал несто подобное с жалобой на версию gd, но там есть 
варнинги на эту тему, а у меня их нет.
Не было ни у кого такого?




      reply	other threads:[~2003-08-10 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-09 20:52 Alexey Lubimov
2003-08-10 15:07 ` Dmitry Lebkov
2003-08-10 16:02   ` Alexey Lubimov [this message]

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=3F366CA7.6080109@l14.ru \
    --to=avl@l14.ru \
    --cc=devel@altlinux.ru \
    --cc=dima@sakhalin.ru \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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