Re: настройка System Health monitor

Serge Matveenko serge на matveenko.ru
Вт Янв 29 13:07:30 GMT 2008


if not os.path.isdir(rrd_path):
    sys.stderr.write("ERROR: RRD log directory is missing - %s\n" % (rrd_path))
    sys.exit(-1)

On 1/29/08, sergicus s <sergicus на gmail.com> wrote:
> Поставил я себе программу System Health monitor
> http://www.linux.org.ru/view-message.jsp?msgid=2431914&lastmod=1201182796399
>
> делал по инструкции
> добавил в кронтаб для пользователя healt
>
> */5 * * * *     /home/health/bin/system_health.py --log
> --graph 2> /dev/null >/dev/null
>
> смотрю  - html файлы, в директории ,  не меняются т.е. не работает скрипт
>
> ввожу в командной строке под пользователем health
> /home/health/bin/system_health.py --log --graph
>
> выводится вот такая ошибка
>
> Traceback (most recent call last):
>    File "/home/healt/bin/system_health.py", line 2166, in
> <module>
>     sys.stderr.write("ERROR: RRD log directory is missing - %s\n"
> (rrd_path))
>  TypeError: 'str' object is not callable
>
>
> Вот строка в скрипте на которую руется (2166 первая сверху)
> if not os.path.isdir(rrd_path):
>      sys.stderr.write("ERROR: RRD log directory is missing - %s\n"
> (rrd_path))
>     sys.exit(-1)
>
>
>  никто не посоветует - может чего то в системе не хватает
>
> rrdtools я поставил
>
>
>
> --
> С уважением
> Сергей
> --
> ubuntu-ru mailing list
> ubuntu-ru на lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ru
>
>


-- 
Serge Matveenko
+7 905 22 44 386
http://serge.matveenko.ru/


Подробная информация о списке рассылки ubuntu-ru