FreeBSD - symon

Ответить
Аватара пользователя
mitsumoto

FreeBSD - symon

Сообщение mitsumoto »

Народ, если кто-то юзал 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

Re: FreeBSD - symon

Сообщение Flainth »

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



monitor { if(rl0),

cpu(0), mem } time 60 seconds stream to 127.0.0.1 2100
Ответить

Вернуться в «Общий по FreeBSD»