LinuxForum.Fans
Тема

Symon

Автор: mitsumotox 1 сообщений 5150 просмотров
#3967

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

text

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).

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

text

monitor { if(rl0),
          cpu(0), mem } stream to 127.0.0.1 2100
Войдите или зарегистрируйтесь, чтобы ответить.