Page 14 of 17 FirstFirst ... 41213141516 ... LastLast
Results 196 to 210 of 242

Thread: Заменяем стандартный syslogd на syslog-ng

  1. #196
    Join Date
    May 2009
    Location
    Russia, Orenburg st, Orsk
    Posts
    8
    Как-то странно, но kallsyms у меня нет.. но есть ksyms
    Code:
    [root@hackvan /proc]$ cat /proc/ksyms | grep 8015
    80150e48 ip_rcv
    8015b0b0 tcp_read_sock
    80151854 ip_defrag
    8015642c ip_cmsg_recv
    801540dc ip_finish_output
    801551f0 ip_fragment
    80153b80 ip_send_check
    80153540 ip_options_undo
    80152fa0 ip_options_compile
    8015042c inet_del_protocol
    80150380 inet_add_protocol
    [/QUOTE]
    
    Установленное ПО:
    [QUOTE]
    [root@hackvan /proc]$ ipkg list_installed
    apr - 1.3.12-1 - Apache Portable Runtime library
    apr-util - 1.3.9-1 - Apache Portable Runtime utilities library
    autoconf - 2.67-1 - Creating scripts to configure source code packages using templates
    automake - 1.10-2 - Creates GNU standards-compliant Makefiles from template files
    bash - 3.2.49-1 - A bourne style shell
    bip - 0.8.4-1 - multi user irc proxy
    bison - 2.4.1-1 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm
    bzip2 - 1.0.6-1 - Very high-quality data compression program
    coreutils - 8.4-1 - Bunch of heavyweight *nix core utilities
    cron - 4.1-7 - Standard vixie cron, with cron.d addition
    cyrus-sasl-libs - 2.1.23-1 - Provides client or server side authentication (see RFC 2222).
    diffutils - 3.0-1 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
    e2fslibs - 1.41.9-1 - Ext2 Filesystem Libraries
    expat - 2.0.1-1 - XML Parser library
    file - 5.04-1 - Ubiquitous file identification utility.
    findutils - 4.2.32-1 - File finding utilities
    flex - 2.5.35-1 - Generates programs that perform pattern-matching on text.
    freetype - 2.3.6-1 - Free truetype library
    gawk - 3.1.8-1 - Gnu AWK interpreter
    gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
    glib - 2.20.4-1 - The GLib library of C routines.
    groff - 1.19.2-2 - front-end for the groff document formatting system
    gzip - 1.2.4a-4 - GNU Zip data compression program
    ipkg-opt - 0.99.163-10 - The Itsy Package Manager
    libart - 2.3.17-2 - 2-d graphics library.
    libdb - 4.2.52-3 - Berkeley DB Libraries
    libpng - 1.2.44-1 - Portable Network Graphics Libraries
    libtool - 1.5.26-1 - Library tools.
    libuclibc++ - 0.2.2-9 - C++ standard library designed for use in embedded systems
    libxml2 - 2.7.7-2 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
    libxslt - 1.1.26-1 - An XML Stylesheet processor based on libxml2
    lighttpd - 1.4.28-1 - A fast webserver with minimal memory footprint.
    m4 - 1.4.13-1 - gnu macro processor and compiler front end
    make - 3.82-1 - examines files and runs commands necessary for compilation
    mc - 4.7.0.9-1 - Midnight Commander File Manager
    nano - 2.2.5-1 - A pico like editor
    ncurses - 5.7-1 - NCurses libraries
    ncursesw - 5.7-1 - NCurses libraries with wide char support
    neon - 0.29.3-1 - an HTTP and WebDAV client library, with a C interface
    net-tools - 1.60-6 - Network Config and Debug tools (route, arp, netstat etc.)
    openldap-libs - 2.3.43-1 - Open Lightweight Directory Access Protocol
    openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
    patch - 2.6.1-1 - applies a diff to produce a patched file
    pcre - 8.10-1 - Perl-compatible regular expression library
    perl - 5.8.8-23 - Practical Extraction and Report Language.
    php - 5.2.14-1 - The php scripting language
    php-fcgi - 5.2.14-1 - The php scripting language, built as an fcgi module
    pkgconfig - 0.15.0-2 - Package configuration tool
    poptop - 1.2.1-1 - Poptop is the PPTP server solution for Linux.
    python25 - 2.5.5-2 - Python is an interpreted, interactive, object-oriented programming language.
    readline - 6.1-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
    rrdtool - 1.2.30-1 - Round-Robin Database tool. Database collator and plotter
    rsync - 3.0.7-1 - fast remote file copy program (like rcp)
    sed - 4.2.1-1 - Stream editor.
    slang - 2.1.4-1 - S-Lang is a multi-platform library designed to allow a developer to create robust multi-platform software.
    spawn-fcgi - 1.6.3-1 - spawn-fcgi is used to spawn fastcgi applications
    sqlite - 3.7.2-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
    svn - 1.6.12-1 - a compelling replacement for CVS
    tar - 1.23-1 - heavyweight version of the Tape ARchiver
    tcl - 8.4.19-2 - The Tool Command Language
    uclibc-opt - 0.9.28-13 - micro C library for embedded Linux systems
    unrar - 3.9.8-1 - unrar is an application that can decompress files and archives created using the RAR compression scheme
    unzip - 6.0-2 - A (de)compression library for the ZIP format
    wget - 1.12-2 - A network utility to retrieve files from the Web
    zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system.
    Successfully terminated.
    На роутере также постонно работает poptop и 3proxy
    Last edited by vectorm; 15-10-2010 at 17:36. Reason: Учимся использовать правильные теги.

  2. #197
    Join Date
    May 2009
    Location
    Russia, Orenburg st, Orsk
    Posts
    8
    Флешка на 8 Gb Kingston.

    [root@hackvan /]$ df -h
    Filesystem Size Used Avail Use% Mounted on
    rootfs 3.0M 3.0M 0 100% /
    /dev/root 3.0M 3.0M 0 100% /
    tmpfs 15M 440K 15M 3% /tmp
    /dev/scsi/host0/bus0/target0/lun0/part2
    7.4G 621M 6.4G 9% /opt
    хмм... cat /proc/ksyms | grep 8015cc - ничего не возвращает
    Last edited by HackVan; 15-10-2010 at 09:30.

  3. #198
    Join Date
    May 2009
    Location
    Russia, Orenburg st, Orsk
    Posts
    8
    Настройки приватности вообще не трогал с момента регистрации на форуме. См выше.. ответ написал
    cat /proc/ksyms | grep 8015cc - ничего не возвращает

  4. #199
    В логе адрес возникновения ошибки всегда один и тот же?
    Если да, то стоит перегрузить роутер и ДО возникновения ошибки посмотреть по cat /proc/ksyms | grep ХХХХХХ какая функция загружена по адресу возникновения ошибки.
    Last edited by ryzhov_al; 15-10-2010 at 10:02.

  5. #200
    Join Date
    May 2009
    Location
    Russia, Orenburg st, Orsk
    Posts
    8
    Как-то забил я на это дело, времени не было. Щас руки дошли и методом постепенного отключения работающего ПО. Выяснил что проблема была из-за 3proxy-0.6. Из-за него kernel срет в лог. Попробую другую билд прокси или вернусь обратно на squid.

  6. #201
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Проблема, скорее всего, обоюдная - 3proxy передаёт отрицательное число, а ядро не проверяет.
    Аналогичную багу чинили в 2.6
    http://git.kernel.org/?p=linux/kerne...21ce72832245ec
    http://git.kernel.org/?p=linux/kerne...901d7c8736cfbc
    если есть желание экспериментировать - напиши, соберем отладочную версию

  7. #202

    logger vs job

    Есть скрипт, который вызывает процесс как фоновую задачу job:
    Code:
    echo -n start
    $DAEMON &
    echo done
    Я же вызываю этот скрипт и хочу логировать все что он выдаст в системный журнал.
    Code:
    script.sh | logger
    Все это почемуто приводит к зависанию logger-а.
    Когда сдесь зависает это могу понять:
    Code:
    sleep 10 | logger
    Но зачем идет ожидание вывода от процесса ушедшего в bg непонятно или это баг loggera?
    Прошивка последняя rtn

    Как мне правильно запустить скрипт, чтобы в логе у меня было start done и не зависало все?
    Last edited by Lit; 25-10-2010 at 20:55.

  8. #203
    похоже есть два способа:
    1)
    Code:
    script.sh | logger &
    и будут висеть в памяти script.sh и logger, пока у оболочки скрипта job не закончится, хотя скрипт будет обработан весь до конца сразу же после запуска.

    2)
    Code:
    script.sh &> script.log
    cat script.log | logger
    Я сделал вторым способом.

  9. #204
    А как заставить syslog-ng собирать вообще все логи? а то чет ни варнингов и нет ничего подобного...

    filter f_ni_syslog-ng { not ( level(info) and program(syslog-ng) ); };

    не тут что то поправить нужно?

  10. #205
    Quote Originally Posted by Nolik View Post
    А как заставить syslog-ng собирать вообще все логи? а то чет ни варнингов и нет ничего подобного...

    filter f_ni_syslog-ng { not ( level(info) and program(syslog-ng) ); };

    не тут что то поправить нужно?
    чтобы собирать вообще все логи - надо отключить все фильтры

  11. #206
    Quote Originally Posted by brain-ripper View Post
    чтобы собирать вообще все логи - надо отключить все фильтры
    log { source(src);
    # filter(f_ni_vsftpd);
    # filter(f_ni_thttpd);
    # filter(f_ni_syslog-ng);
    # filter(f_ni_cron);
    destination(mysyslog); };

    типа так?

  12. #207

    Как сделать сохранение логов в файл?

    Если роутер случайно перезагрузится, то логи потеряются. Как сохранять лог в файл на жестком диске? Например в файл C:\Logs\wl500gp.txt

    WL500gP
    1.9.2.7-d-r2381

  13. #208
    Можно с помощью моей проги или любой другой, принимающей логи по протоколу syslog.

  14. #209
    Join Date
    Mar 2009
    Location
    Minsk, Belarus
    Posts
    71
    самый простой способ кинуть в /opt/etc/cron.5mins/bla-bla.sh
    и не забыть chmod a+x bla-bla.sh
    Code:
    #!/bin/sh
    cat /tmp/syslog.log >> /opt/system.log
    echo "" > /tmp/syslog.log
    каждые 5мин лог будет копироваться в файлик... =)
    Только "Ленивый" админ настроит всё раз и на всегда!

  15. #210
    Quote Originally Posted by lsd_wiz View Post
    самый простой способ кинуть в /opt/etc/cron.5mins/bla-bla.sh
    и не забыть chmod a+x bla-bla.sh
    Code:
    #!/bin/sh
    cat /tmp/syslog.log >> /opt/system.log
    echo "" > /tmp/syslog.log
    каждые 5мин лог будет копироваться в файлик... =)

    Я в линуксе не очень понимаю, но до подключения телнетом к роутеру дохожу.
    Можно пожалуйста по пунктам - что вводить в консоль?
    Last edited by nikita800; 15-01-2011 at 14:06.

Page 14 of 17 FirstFirst ... 41213141516 ... LastLast

Similar Threads

  1. Подскажите, что этот лог значит? (syslog)
    By VadimVB in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 479
    Last Post: 23-05-2013, 07:47

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •