Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Общий по FreeBSD (http://forum.oszone.net/forumdisplay.php?f=10)
-   -   symon (http://forum.oszone.net/showthread.php?t=168708)

mitsumoto 27-02-2010 15:04 1357409

symon
 
Народ, если кто-то юзал symon (вот ссылка: http://www.xs4all.nl/~wpd/symon/documentation.html)
Помогите пожалуйста разобраться. По умолчанию он собирает статистику каждые 5 секунд, надо изменить интервал до 60 секунд.
в манах прописано следующее:

Код:

CONFIGURATION
    symon obtains configuration data from /etc/symon.conf.  The configuration
    file contains monitor stanzas that define what resources should be moni-
    tored and to which symux(8) the information should be streamed to.

    Multiple monitor statements to different muxes are allowed. Whitespace,
    newlines and text behind '#' are ignored. The format in BNF:

    monitor-rule = "monitor" "{" resources "}" [every]
                    "stream" ["from" host] ["to"] host [ port ]
    resources    = resource [ version ] ["(" argument ")"]
                    [ ","|" " resources ]
    resource    = "cpu" | "cpuiow" | "debug" | "df" | "if" | "io"
                    "mbuf" | "mem" | "pf" | "pfq" | "proc" |
                    "sensor" | "smart"
    version      = number
    argument    = number | name
    every        = "every" time
    time        = "second" | number "seconds"
    host        = ip4addr | ip6addr | hostname
    port        = [ "port" | "," ] portnumber

    Note that symux(8) data files default to receiving data every 5 seconds.
    Adjusting the monitoring interval will also require adjusting every
    symux(8) datafile.

    The pf probe will return data that is collected for the loginterface set
    in /etc/pf.conf(5).


Но как только я не пробовал так, и не получилось...Если кто-то знает покажите пример пожалуйста.
Вот мой конфиг:

Код:

monitor { if(rl0),
          cpu(0), mem } stream to 127.0.0.1 2100


Flainth 28-02-2010 19:06 1358238

попробуйте так

monitor { if(rl0),
cpu(0), mem } time 60 seconds stream to 127.0.0.1 2100


Время: 17:42.

Время: 17:42.
© OSzone.net 2001-