syweb (php интерфейс к symon)

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

syweb (php интерфейс к symon)

irix
Hello Openbsd,

  Это ахтунг какой-то а не интерфейс.

  Неможет графики нарисовать хоть убейся. из php расширений стоят core
  и  gd-no_x11,  ну  а  также  rrd  и  прочие  библиотеки для картинок
  png,jpeg,gd
  Чего этой падле ещё нада чтобы наконец заработать ?

  configtest.php  скрипт отрабатывает полностью но там где должны быть
  графики пишет ошибки

  Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110

graph: cannot load graph template: filename does not yield a graphtype (
 graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
 graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";

graph: template not set

 graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";

 preprocessed template =

 constrained =
Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 298
Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 309
Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312



  В error_log апачина пишет вот что

  [Tue Jul 21 09:23:03 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
[Tue Jul 21 09:23:10 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
[Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
[Tue Jul 21 09:23:10 2009] [error] graph: template not set
[Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 298
[Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
[Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 309
[Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
[Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
[Tue Jul 21 09:27:35 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
[Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
[Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 298
[Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
[Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 309
[Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
[Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
[Tue Jul 21 09:43:21 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
[Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
[Tue Jul 21 09:43:21 2009] [error] graph: template not set
[Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 298
[Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
[Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
syweb/class_graph.inc on line 309
[Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312


--
Best regards,
 irix                          mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

Mike Belopuhov
On Tue, Jul 21, 2009 at 09:58 +0300, irix wrote:
> Hello Openbsd,
>
>   Это ахтунг какой-то а не интерфейс.
>

juzay sygraph.cgi!

>   Неможет графики нарисовать хоть убейся. из php расширений стоят core
>   и  gd-no_x11,  ну  а  также  rrd  и  прочие  библиотеки для картинок
>   png,jpeg,gd
>   Чего этой падле ещё нада чтобы наконец заработать ?
>

mne kazhetsya u tebya problema s configuraciej, s putjami ili prawami
gde-to. mozhet chroot/ne-chroot?

>   configtest.php  скрипт отрабатывает полностью но там где должны быть
>   графики пишет ошибки
>
>   Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
>
> graph: cannot load graph template: filename does not yield a graphtype (
>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
> Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
>
> graph: template not set
>
>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
>
>  preprocessed template =
>
>  constrained =
> Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 298
> Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
> Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 309
> Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>
>
>
>   В error_log апачина пишет вот что
>
>   [Tue Jul 21 09:23:03 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
> [Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
> [Tue Jul 21 09:23:10 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
> [Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
> [Tue Jul 21 09:23:10 2009] [error] graph: template not set
> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 298
> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 309
> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
> [Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
> [Tue Jul 21 09:27:35 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
> [Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 298
> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 309
> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
> [Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
> [Tue Jul 21 09:43:21 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
> [Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
> [Tue Jul 21 09:43:21 2009] [error] graph: template not set
> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 298
> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
> syweb/class_graph.inc on line 309
> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>
>
> --
> Best regards,
>  irix                          mailto:[hidden email]
>
>


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
Hello Mike,

Пути перепроверял 3 раза, везде все скрипты и папки с правами www:www
чрут и не чрут проверю.
sygraph.cgi может показывать статистику по фиревалу и очереди в нём ?

Tuesday, July 21, 2009, 11:32:01 AM, you wrote:

MB> On Tue, Jul 21, 2009 at 09:58 +0300, irix wrote:
>> Hello Openbsd,
>>
>>   Это ахтунг какой-то а не интерфейс.
>>

MB> juzay sygraph.cgi!

>>   Неможет графики нарисовать хоть убейся. из php расширений стоят core
>>   и  gd-no_x11,  ну  а  также  rrd  и  прочие  библиотеки для картинок
>>   png,jpeg,gd
>>   Чего этой падле ещё нада чтобы наконец заработать ?
>>

MB> mne kazhetsya u tebya problema s configuraciej, s putjami ili prawami
MB> gde-to. mozhet chroot/ne-chroot?

>>   configtest.php  скрипт отрабатывает полностью но там где должны быть
>>   графики пишет ошибки
>>
>>   Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
>>
>> graph: cannot load graph template: filename does not yield a graphtype (
>>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
>> Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
>>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
>>
>> graph: template not set
>>
>>  graph end="-1", heigth="225", layout="default", width="400", size="normal", start="-86400", timespan="last 24 hours", rrdfile0="/symon/rrds/localhost/pfq_.rrd", title="pfq of localhost", host="localhost", dir="/symon/rrds/localhost", name="localhost";
>>
>>  preprocessed template =
>>
>>  constrained =
>> Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 298
>> Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
>> Warning:  reset() [function.reset]: Passed variable is not an array or object in /htdocs/syweb/class_graph.inc on line 309
>> Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>>
>>
>>
>>   В error_log апачина пишет вот что
>>
>>   [Tue Jul 21 09:23:03 2009] [notice] Accept mutex: sysvsem (Default: sysvsem)
>> [Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
>> [Tue Jul 21 09:23:10 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
>> [Tue Jul 21 09:23:10 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
>> [Tue Jul 21 09:23:10 2009] [error] graph: template not set
>> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 298
>> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
>> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 309
>> [Tue Jul 21 09:23:10 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>> [Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
>> [Tue Jul 21 09:27:35 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
>> [Tue Jul 21 09:27:35 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
>> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 298
>> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
>> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 309
>> [Tue Jul 21 09:27:35 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>> [Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined index:  rrdfile in /htdocs/syweb/class_vars.inc on line 110
>> [Tue Jul 21 09:43:21 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
>> [Tue Jul 21 09:43:21 2009] [error] PHP Notice:  Undefined variable: template in /htdocs/syweb/class_graph.inc on line 101
>> [Tue Jul 21 09:43:21 2009] [error] graph: template not set
>> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 298
>> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 302
>> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /htdocs/
>> syweb/class_graph.inc on line 309
>> [Tue Jul 21 09:43:21 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /htdocs/syweb/class_graph.inc on line 312
>>
>>
>> --
>> Best regards,
>>  irix                          mailto:[hidden email]
>>
>>







--
Best regards,
 irix                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

Anton Maksimenkov-2
> sygraph.cgi может показывать статистику по фиревалу и очереди в нём ?

сиграф рисует то, чего симон/симух насобирают.
А там только pass|block|match насколько я помню. И ещё надо дать на
чтение /dev/pf.
--
antonvm
Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
In reply to this post by irix
Hello Openbsd,

  Всё  сделал как Андрей в Мане написал всё отработало. Но сразу после
  первого графика высыпались ошибки. После этих ошибок пошли остальные
  графики. Это исправимо или это в порядке вещей ?

  Notice: Undefined index: rrdfile in /var/www/syweb/class_vars.inc on line 110
graph: cannot load graph template: filename does not yield a graphtype (
Notice: Undefined variable: template in /var/www/syweb/class_graph.inc on line 101

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/syweb/class_graph.inc on line 298

Warning: Invalid argument supplied for foreach() in /var/www/syweb/class_graph.inc on line 302

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/syweb/class_graph.inc on line 309

Warning: Invalid argument supplied for foreach() in /var/www/syweb/class_graph.inc on line 312

 В error.log апача пишет

 [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined index:  rrdfile in /var/www/syweb/class_vars.inc on line 110
[Wed Jul 22 21:30:28 2009] [error] graph: cannot load graph template: filename does not yield a graphtype (
[Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined variable: template in /var/www/syweb/class_graph.inc on line 101
[Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
/syweb/class_graph.inc on line 298
[Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /var/www/syweb/class_graph.inc on line 302
[Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
/syweb/class_graph.inc on line 309
[Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument supplied for foreach() in /var/www/syweb/class_graph.inc on line 312

--
Best regards,
 irix                          mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

Andrey Matveev
hi irix, Thursday, July 23, 2009, 10:00:39 PM, you wrote:
> Hello Openbsd,

>   Всё  сделал как Андрей в Мане написал всё отработало. Но сразу после
>   первого графика высыпались ошибки. После этих ошибок пошли остальные
>   графики. Это исправимо или это в порядке вещей ?

не, это не нормально

скорее всего ты напутал с источниками, либо с путями к rrd-файлам

нужно смотреть конфиги

>   Notice: Undefined index: rrdfile in /var/www/syweb/class_vars.inc on line 110
> graph: cannot load graph template: filename does not yield a graphtype (
> Notice: Undefined variable: template in
> /var/www/syweb/class_graph.inc on line 101

> Warning: reset() [function.reset]: Passed variable is not an array
> or object in /var/www/syweb/class_graph.inc on line 298

> Warning: Invalid argument supplied for foreach() in
> /var/www/syweb/class_graph.inc on line 302

> Warning: reset() [function.reset]: Passed variable is not an array
> or object in /var/www/syweb/class_graph.inc on line 309

> Warning: Invalid argument supplied for foreach() in
> /var/www/syweb/class_graph.inc on line 312

>  В error.log апача пишет

>  [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined index:
> rrdfile in /var/www/syweb/class_vars.inc on line 110
> [Wed Jul 22 21:30:28 2009] [error] graph: cannot load graph
> template: filename does not yield a graphtype (
> [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined variable:
> template in /var/www/syweb/class_graph.inc on line 101
> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
> /syweb/class_graph.inc on line 298
> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
> supplied for foreach() in /var/www/syweb/class_graph.inc on line 302
> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
> /syweb/class_graph.inc on line 309
> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
> supplied for foreach() in /var/www/syweb/class_graph.inc on line 312

--
 Andrey Matveev
 ______________________________________________
 [hidden email] | http://www.vniigim.ru/


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
Hello Andrey,

Когда из статистики убрал модуль pf, ошибки исчезли.

Хотя  когда  этот модуль был и картинка к нему тоже была но она висела
без  статистики. Походу почему-то наверно собрать не мог.  версия 2.78
До 79 обновить не могу (просто не могу).



Thursday, July 23, 2009, 11:59:40 PM, you wrote:

AM> hi irix, Thursday, July 23, 2009, 10:00:39 PM, you wrote:
>> Hello Openbsd,

>>   Всё  сделал как Андрей в Мане написал всё отработало. Но сразу после
>>   первого графика высыпались ошибки. После этих ошибок пошли остальные
>>   графики. Это исправимо или это в порядке вещей ?

AM> не, это не нормально

AM> скорее всего ты напутал с источниками, либо с путями к rrd-файлам

AM> нужно смотреть конфиги

>>   Notice: Undefined index: rrdfile in /var/www/syweb/class_vars.inc on line 110
>> graph: cannot load graph template: filename does not yield a graphtype (
>> Notice: Undefined variable: template in
>> /var/www/syweb/class_graph.inc on line 101

>> Warning: reset() [function.reset]: Passed variable is not an array
>> or object in /var/www/syweb/class_graph.inc on line 298

>> Warning: Invalid argument supplied for foreach() in
>> /var/www/syweb/class_graph.inc on line 302

>> Warning: reset() [function.reset]: Passed variable is not an array
>> or object in /var/www/syweb/class_graph.inc on line 309

>> Warning: Invalid argument supplied for foreach() in
>> /var/www/syweb/class_graph.inc on line 312

>>  В error.log апача пишет

>>  [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined index:
>> rrdfile in /var/www/syweb/class_vars.inc on line 110
>> [Wed Jul 22 21:30:28 2009] [error] graph: cannot load graph
>> template: filename does not yield a graphtype (
>> [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined variable:
>> template in /var/www/syweb/class_graph.inc on line 101
>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
>> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
>> /syweb/class_graph.inc on line 298
>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
>> supplied for foreach() in /var/www/syweb/class_graph.inc on line 302
>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
>> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
>> /syweb/class_graph.inc on line 309
>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
>> supplied for foreach() in /var/www/syweb/class_graph.inc on line 312




--
Best regards,
 irix                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
In reply to this post by Andrey Matveev
Hello Andrey,

Там в 2.78 старанная фишка на 4.5 бзде, она при сборе статистики  mbuf
в лог кидает ошибку symon: mbuf() failed (flag != 3)

Я где-то в рассылке читал что в портах карента при обновке до 2.79 там
ещё патчик добавили чтобы убрать эту каку.

А вот  замороженные пакеты для 4.5 обновить не удосужились :((
--
Best regards,
 irix                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
In reply to this post by irix
Hello Andrey,

  Andrey  можешь  ещё написать как правильно к symon pf прикручивать и
  pfq ну там права всякие и всё такое.

--
Best regards,
 irix                          mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
Hello irix,

symon   через   параметр  pfq  рисует  график  для  каждой  очереди  в
отдельности которая есть в pf.conf или все очереди на одном графике ?

Или там можно задавать для каких очередей рисовать графики ?


--
Best regards,
 irix                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

Stanislav Kruchinin
Зачем эти мучения? Ставьте Munin, он гораздо более подробную информацию может
показывать. У него тонны плагинов на все случаи жизни, в том числе и для
очередей в pf.

http://munin.projects.linpro.no/
http://muninexchange.projects.linpro.no/


Reply | Threaded
Open this post in threaded view
|

Re[2]: syweb (php интерфейс к symon)

Andrey Matveev
In reply to this post by irix
hi irix, Friday, July 24, 2009, 1:36:21 AM, you wrote:
> Hello Andrey,

> Когда из статистики убрал модуль pf, ошибки исчезли.

> Хотя  когда  этот модуль был и картинка к нему тоже была но она висела
> без  статистики. Походу почему-то наверно собрать не мог.  версия 2.78
> До 79 обновить не могу (просто не могу).

а у тебя loginterface установлен в /etc/pf.conf? если нет, тогда добавь
что-то вроде:

set loginterface $ext_if


> Thursday, July 23, 2009, 11:59:40 PM, you wrote:

AM>> hi irix, Thursday, July 23, 2009, 10:00:39 PM, you wrote:
>>> Hello Openbsd,

>>>   Всё  сделал как Андрей в Мане написал всё отработало. Но сразу после
>>>   первого графика высыпались ошибки. После этих ошибок пошли остальные
>>>   графики. Это исправимо или это в порядке вещей ?

AM>> не, это не нормально

AM>> скорее всего ты напутал с источниками, либо с путями к rrd-файлам

AM>> нужно смотреть конфиги

>>>   Notice: Undefined index: rrdfile in /var/www/syweb/class_vars.inc on line 110
>>> graph: cannot load graph template: filename does not yield a graphtype (
>>> Notice: Undefined variable: template in
>>> /var/www/syweb/class_graph.inc on line 101

>>> Warning: reset() [function.reset]: Passed variable is not an array
>>> or object in /var/www/syweb/class_graph.inc on line 298

>>> Warning: Invalid argument supplied for foreach() in
>>> /var/www/syweb/class_graph.inc on line 302

>>> Warning: reset() [function.reset]: Passed variable is not an array
>>> or object in /var/www/syweb/class_graph.inc on line 309

>>> Warning: Invalid argument supplied for foreach() in
>>> /var/www/syweb/class_graph.inc on line 312

>>>  В error.log апача пишет

>>>  [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined index:
>>> rrdfile in /var/www/syweb/class_vars.inc on line 110
>>> [Wed Jul 22 21:30:28 2009] [error] graph: cannot load graph
>>> template: filename does not yield a graphtype (
>>> [Wed Jul 22 21:30:28 2009] [error] PHP Notice:  Undefined variable:
>>> template in /var/www/syweb/class_graph.inc on line 101
>>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
>>> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
>>> /syweb/class_graph.inc on line 298
>>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
>>> supplied for foreach() in /var/www/syweb/class_graph.inc on line 302
>>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  reset() [<a
>>> href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /var/www
>>> /syweb/class_graph.inc on line 309
>>> [Wed Jul 22 21:30:28 2009] [error] PHP Warning:  Invalid argument
>>> supplied for foreach() in /var/www/syweb/class_graph.inc on line 312

--
 Andrey Matveev
 ______________________________________________
 [hidden email] | http://www.vniigim.ru/


Reply | Threaded
Open this post in threaded view
|

Re: syweb (php интерфейс к symon)

irix
Hello Andrey,

Friday, July 24, 2009, 12:32:44 PM, you wrote:

Там  заманэ  в  том  что  в pf.conf можно только один set loginterface
добавлять  и  если  их  поставить  несколько  то  статистику  только с
последнего показывает. Как сделать так чтобы со всех ?


AM> hi irix, Friday, July 24, 2009, 1:36:21 AM, you wrote:
>> Hello Andrey,

>> Когда из статистики убрал модуль pf, ошибки исчезли.

>> Хотя  когда  этот модуль был и картинка к нему тоже была но она висела
>> без  статистики. Походу почему-то наверно собрать не мог.  версия 2.78
>> До 79 обновить не могу (просто не могу).

AM> а у тебя loginterface установлен в /etc/pf.conf? если нет, тогда добавь
AM> что-то вроде:

AM> set loginterface $ext_if





--
Best regards,
 irix                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re[2]: syweb (php интерфейс к symon)

Andrey Matveev
hi irix, Friday, July 24, 2009, 1:41:17 PM, you wrote:
> Hello Andrey,

> Friday, July 24, 2009, 12:32:44 PM, you wrote:

> Там  заманэ  в  том  что  в pf.conf можно только один set loginterface
> добавлять  и  если  их  поставить  несколько  то  статистику  только с
> последнего показывает. Как сделать так чтобы со всех ?

с этим не разбирался, меня интересуют показания только с $ext_if


AM>> hi irix, Friday, July 24, 2009, 1:36:21 AM, you wrote:
>>> Hello Andrey,

>>> Когда из статистики убрал модуль pf, ошибки исчезли.

>>> Хотя  когда  этот модуль был и картинка к нему тоже была но она висела
>>> без  статистики. Походу почему-то наверно собрать не мог.  версия 2.78
>>> До 79 обновить не могу (просто не могу).

AM>> а у тебя loginterface установлен в /etc/pf.conf? если нет, тогда добавь
AM>> что-то вроде:

AM>> set loginterface $ext_if

--
 Andrey Matveev
 ______________________________________________
 [hidden email] | http://www.vniigim.ru/