Системный монитор линукс минт

Монитор системных ресурсов

#1 — 5 сентября 2015 в 08:34

#2 — 5 сентября 2015 в 09:57
mfch:
Читал про conky. Может не то читал, но для меня это сложно.

Странно, я читал что

#3 — 5 сентября 2015 в 12:41

(-p x,y) (-s WxH)
(-n) (-f interval) Выводит указанное изображение используя Imlib2.
-p меняет положение изображения
-s меняет размер
-n отключает кэширование
-f задает интервал кэширования изображения
include path Загружает файл конфигурации, заменяет настройки оригинальной конфигурации и вставляет переменные в место, где указан $include
lua function_name
(function parameters) Выполняет lua-функцию с заданными параметрами и выводит возвращаемую строку.
Смотри lua_load для загрузки скриптов.
Conky добавляет ‘conky_’ перед названием функции для предотвращения вызова не той функции (если только сами не добавите)
lua_bar (height, width)
function_name
(function parameters) Выполняет lua-функцию с заданными параметрами и выводит бар на основе возвращаемого значения.
Результатом выполнения функции должно быть число от 0 до 100
lua_gauge (height, width)
function_name
(function parameters) Выполняет lua-функцию с заданными параметрами и выводит круговой датчик на основе возвращаемого значения.
Результатом выполнения функции должно быть число от 0 до 100
lua_graph function_name
(height),(width)
(gradient colour 1)
(gradient colour 2)
(scale) (-t) (-l) Выполняет lua-функцию и выводит график на основе возвращаемого значения.
Результатом выполнения функции может быть любое число, график масштабируется для отображения всего диапазона значений
lua_parse function_name
(function parameters) Выполняет lua-функцию с заданными параметрами так же, как и $lua, но затем обрабатывает результат как часть секции TEXT
offset (pixels) Изменяет горизонтальное смещение текста. Возможны отрицательные значения.
Смотри так же $offset.
outlinecolor (color) Change outline color
scroll length (step) text Прокручивает ‘text’ с шагом ‘step’, отображая за раз ‘length’ символов.
Текст может содержать переменные conky
step не обязателен и по умолчанию равен 1
shadecolor (color) Изменяет цвет тени
stippled_hr (space) Прерывистая горизонтальная линия
tab (width, (start)) Puts a tab of the specified width, starting from column ‘start’. The unit is pixels for both arguments.
templateN (arg1) Вычисляет значение templateN из настроек (N число от 0 до 9 включительно), подставляя соответствующие аргументы
to_bytes size Если ‘size’ — число с указанными единицами (kilobyte,mb,GiB,…), тогда оно конвертируется в байты и выводится, иначе просто выводится как есть.
updates Количество обновлений окна. Для отладки
voffset (pixels) Изменяет вертикальное смещение текста. Возможны отрицательные значения.
Смотри так же $offset.
Работа с файлами и дисками
Переменная Параметр Описание
disk_protect device Статус защиты диска, если эта функция поддерживается (требуется патч для ядра)
Выводит «frozen» или «free»
diskio (device) Отображает текущую IO диска. Указание устройства не обязательно и принимает вид sda для /dev/sda
допускаются отдельные разделы
diskio_read (device) Отображает текущую IO диска для чтения
Устройства как в diskio
diskio_write (device) Отображает текущую IO диска для записи
Устройства как в diskio
diskiograph (device)
(height),(width)
(gradient colour 1)
(gradient colour 2)
(scale) (-t) (-l) График IO диска
Цвета задаются шестнадцатеричным кодом без #
Масштаб используется для задания максимального значения графика
Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l
Добавление ‘-t’ включает температурный градиент, который меняется в зависимости от значений
diskiograph_read (device)
(height),(width)
(gradient colour 1)
(gradient colour 2)
(scale) (-t) (-l) График IO диска для чтения
Устройства как в diskio
Цвета задаются шестнадцатеричным кодом без #
Масштаб используется для задания максимального значения графика
Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l
Добавление ‘-t’ включает температурный градиент, который меняется в зависимости от значений
diskiograph_write (device)
(height),(width)
(gradient colour 1)
(gradient colour 2)
(scale) (-t) (-l) График IO диска для записи
Устройства как в diskio
Цвета задаются шестнадцатеричным кодом без #
Масштаб используется для задания максимального значения графика
Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l
Добавление ‘-t’ включает температурный градиент, который меняется в зависимости от значений
exec command Выполняет команду оболочки и отображает результат в conky.
Используйте двойные кавычки для комманд с пробелами.
Внимание: эта переменная потребляет довольно много ресурсов
execbar command То же, что и $exec, но если результат — число от 0 до 100, то выводит бар.
Размеры задаются через настройку default_bar_size.
execgauge command То же, что и $exec, но если результат — число от 0 до 100, то выводит круглый датчик.
Размеры задаются через настройку default_gauge_size.
execgraph (-t) (-l) command То же, что и $execbar, но выводит график.
execi interval command То же, что и $exec, но с заданным интервалом выполнения.
Интервал не может быть меньше update_interval
execibar interval command То же, что и $execbar, но с заданным интервалом выполнения.
execigauge interval command То же, что и $execgauge, но с заданным интервалом выполнения.
execigraph interval
(-t) (-l) command То же, что и $execgraph, но с заданным интервалом выполнения.
execp command То же, что и $exec, но результат обрабатывается как текст после TEXT
execpi interval command То же, что и $execp, но с заданным интервалом выполнения.
fs_bar (height),(width) fs Бар использования места по пути ‘fs’
fs_bar_free (height),(width) fs Бар свободного места
fs_free (fs) Свободное место по пути ‘fs’, доступное пользователю
fs_free_perc (fs) Процент свободного места по пути ‘fs’, доступного пользователю
fs_size (fs) Размер ФС
fs_type (fs) Тип ФС
fs_used (fs) Использованное место ФС
fs_used_perc (fs) Процент использования места
head logfile lines
(next_check) Показывает первые N строк указанного файла. Файл проверяется через каждое ‘next_check’ обновление (по умолчанию 2)
Максимум 30 строк может быть показано
iconv_start codeset_from
codeset_to Конвертирует текст из одной кодировки в другую используя GNU iconv.
Необходима остановка с помощью $iconv_stop
iconv_stop Останавливает конвертирование текста
ioscheduler disk Prints the current ioscheduler used for the given disk name (i.e. e.g. «hda» or «sdb»)
lines textfile Показывает количество строк в указанном файле
pre_exec shell command Executes a shell command one time before conky displays anything and puts output as text.
tail logfile lines
(next_check) Показывает последние N строк указанного файла. Файл проверяется через каждое ‘next_check’ обновление (по умолчанию 2)
Максимум 30 строк может быть показано
texeci interval command То же, что и $execi, но команда выполняется внутри потока.
Используйте это, если у вас «тяжелый» скрипт. Поставьте интервал выполнения чуть больше, чем выполняется ваш скрипт
words textfile Выводит количество слов в данном файле
Работа с процессами
Переменная Параметр Описание
cmdline_to_pid string PID первого процесса, содержащего строку
pid_chroot pid Директория, используемая процессом как корень.
Будет ‘/’ пока процесс не сделает системный вызов ‘chroot’
pid_cmdline pid Командна, вызвавшая данный процесс
pid_cwd pid Текущий рабочий каталог процесса
pid_environ pid varname Contents of a environment-var of the process
pid_environ_list pid List of environment-vars that the process can see
pid_exe pid Path to executed command that started the process
pid_nice pid The nice value of the process
pid_openfiles pid Список открытых процессом файлов
pid_parent pid Pid родительского процесса
pid_priority pid Приоритет процесса
pid_read pid Количество байт прочитанных процессом
pid_state pid Состояние процесса
pid_state_short pid Одна буква из «RSDZTW», отображающая состояние процесса
pid_stderr pid Filedescriptor binded to the STDERR of the process
pid_stdin pid Filedescriptor binded to the STDIN of the process
pid_stdout pid Filedescriptor binded to the STDOUT of the process
pid_threads pid Number of threads in process containing this thread
pid_thread_list pid List with pid’s from threads from this process
pid_time_kernelmode pid Amount of time that the process has been scheduled in kernel mode in seconds
pid_time_usermode pid Amount of time that the process has been scheduled in user mode in seconds
pid_time pid Sum of $pid_time_kernelmode and $pid_time_usermode
pid_uid pid The real uid of the process
pid_euid pid The effective uid of the process
pid_suid pid The saved set uid of the process
pid_fsuid pid The file system uid of the process
pid_gid pid The real gid of the process
pid_egid pid The effective gid of the process
pid_sgid pid The saved set gid of the process
pid_fsgid pid The file system gid of the process
pid_vmpeak pid Peak virtual memory size of the process
pid_vmsize pid Virtual memory size of the process
pid_vmlck pid Locked memory size of the process
pid_vmhwm pid Peak resident set size («high water mark») of the process
pid_vmrss pid Resident set size of the process
pid_vmdata pid Data segment size of the process
pid_vmstk pid Stack segment size of the process
pid_vmexe pid Text segment size of the process
pid_vmlib pid Shared library code size of the process
pid_vmpte pid Page table entries size of the process
pid_write pid Количество байт записанных процессом
processes Всего процессов (спящих и запущенных)
running_processes Запущенных процессов (не спящих), требуется ядро 2.6+
running_threads Количество запущенных потоков. Только для Linux
threads Всего потоков
top type num This takes arguments in the form:top (name) (number) Basically, processes are ranked from highest to lowest in terms of cpu usage, which is what (num) represents. The types are: «name», «pid», «cpu», «mem», «mem_res», «mem_vsize», «time», «io_perc», «io_read» and «io_write». There can be a max of 10 processes listed.
top_io type num Same as top, except sorted by the amount of I/O the process has done during the update interval
top_mem type num Same as top, except sorted by mem usage instead of cpu
top_time type num Same as top, except sorted by total CPU time instead of current CPU usage
Сетевое оборудование
Переменная Параметр Описание
addr (interface) Выводит текущий IP адрес для заданного интерфейся или «No Address» если он не назначен
addrs (interface) Выводит текущие IP адреса для заданных интерфейсов. Если интерфейс один — работает как addr. Только для Linux
downspeed (net) Скорость загрузки в соответствующих единицах IEC
downspeedf (net) Скорость загрузки в KiB с одной цифрой после запятой
downspeedgraph (netdev) (height),(width) (gradient colour 1) (gradient colour 2) (scale) (-t) (-l) График скорости загрузки
Цвета задаются шестнадцатеричным кодом без #
Масштаб используется для задания максимального значения графика
Для использования логарифмического масштабирования (для лучшего отображения небольших чисел) добавте -l
Добавление ‘-t’ включает температурный градиент, который меняется в зависимости от значений
gw_iface Displays the default route’s interface or «multiple»/«none» accordingly.
gw_ip Displays the default gateway’s IP or «multiple»/«none» accordingly.
nameserver (index) Print a nameserver from /etc/resolv.conf. Index starts at and defaults to 0.
nodename Hostname
nodename_short Short hostname (same as ‘hostname -s’ shell command).
read_tcp (host) port Connects to a tcp port on a host (default is localhost), reads every char available at the moment and shows them.
tcp_portmon port_begin port_end
item (index) TCP port (both IPv6 and IPv4) monitor for specified local ports. Port numbers must be in the range 1 to 65535. Valid items are:
count — Total number of connections in the range
rip — Remote ip address
rhost — Remote host name
rport — Remote port number
rservice — Remote service name from /etc/services
lip — Local ip address
lhost — Local host name
lport — Local port number
lservice — Local service name from /etc/services
The connection index provides you with access to each connection in the port monitor. The monitor will return information for index values from 0 to n-1 connections. Values higher than n-1 are simply ignored. For the «count» item, the connection index must be omitted. It is required for all other items.
Examples:
$ — Displays the number of connections in the bittorrent port range
$ — Displays the remote host ip of the first sshd connection
$ — Displays the remote host ip of the tenth sshd connection
$ — Displays the remote host name of the first connection on a privileged port
$ — Displays the remote host port of the fifth connection on a privileged port
$ — Displays the local service name of the fifteenth connection in the range of all ports
Note that port monitor variables which share the same port range actually refer to the same monitor, so many references to a single port range for different items and different indexes all use the same monitor internally. In other words, the program avoids creating redundant monitors.
totaldown (net) Всего входящего трафика. Обнуляется на 4 Гб на 32х битных системах.
totalup (net) Всего исходящего трафика. Обнуляется на 4 Гб на 32х битных системах.
upspeed (net) Скорость исходящего трафика в соответствующих единицах IEC
upspeedf (net) Скорость исходящего трафика в KiB с одной цифрой после запятой
upspeedgraph (netdev) (height),(width)
(gradient colour 1)
(gradient colour 2)
(scale) (-t) (-l) График скорости исходящего трафика
wireless_ap (net) MAC адрес беспроводной точки доступа (только для Linux)
wireless_bitrate (net) Скорость передачи данных (например 11 Mb/s) (только для Linux)
wireless_essid (net) ESSID беспроводной точки доступа (только для Linux)
wireless_link_bar (height),(width) (net) Бар качества связи (только для Linux)
wireless_link_qual (net) Качество связи (только для Linux)
wireless_link_qual_max (net) Максимальное значение качества связи (только для Linux)
wireless_link_qual_perc (net) Качество связи в % (только для Linux)
wireless_mode (net) Тип беспроводного соединения (Managed/Ad-Hoc/Master) (только для Linux)
Получение данных из интернета
Переменная Параметр Описание
curl url (interval_in_minutes) Download data from URI using Curl at the specified interval. The interval may be a floating point value greater than 0, otherwise defaults to 15 minutes. Most useful when used in conjunction with Lua and the Lua API. This object is threaded, and once a thread is created it can’t be explicitly destroyed. One thread will run for each URI specified. You can use any protocol that Curl supports.
draft_mails (maildir) Number of mails marked as draft in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1
eve api_userid api_key character_id Получает ваш текущий скилл через api сервера Eve Online
отображает текущий скилл вместе со временем прокачивания
flagged_mails (maildir) Number of mails marked as flagged in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1.
forwarded_mails (maildir) Number of mails marked as forwarded in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1.
imap_messages (args) Displays the number of messages in your global IMAP inbox by default. You can define individual IMAP inboxes separately by passing arguments to this object. Arguments are: «host user pass [-i interval (in seconds)] [-f ‘folder’] [-p port] [-e ‘command’] [-r retries]». Default port is 143, default folder is ‘INBOX’, default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as ‘*’, you will be prompted to enter the password when Conky starts.
imap_unseen (args) Displays the number of unseen messages in your global IMAP inbox by default. You can define individual IMAP inboxes separately by passing arguments to this object. Arguments are: «host user pass [-i interval (in seconds)] [-f ‘folder’] [-p port] [-e ‘command’] [-r retries]». Default port is 143, default folder is ‘INBOX’, default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as ‘*’, you will be prompted to enter the password when Conky starts.
mails (mailbox) Mail count in the specified mailbox or your mail spool if not. Both mbox and maildir type mailboxes are supported. You can use a program like fetchmail to get mails from some server using your favourite protocol. See also new_mails.
mboxscan (-n number of messages to print) (-fw from width) (-sw subject width) mbox Print a summary of recent messages in an mbox format mailbox. mbox parameter is the filename of the mailbox (can be encapsulated using ‘»’, ie. $
new_mails (mailbox) Unread mail count in the specified mailbox or mail spool if not. Both mbox and maildir type mailboxes are supported.
pop3_unseen (args) Displays the number of unseen messages in your global POP3 inbox by default. You can define individual POP3 inboxes separately by passing arguments to this object. Arguments are: «host user pass [-i interval (in seconds)] [-p port] [-e ‘command’] [-r retries]». Default port is 110, default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as ‘*’, you will be prompted to enter the password when Conky starts.
pop3_used (args) Displays the amount of space (in MiB) used in your global POP3 inbox by default. You can define individual POP3 inboxes separately by passing arguments to this object. Arguments are: «host user pass [-i interval (in seconds)] [-p port] [-e ‘command’] [-r retries]». Default port is 110, default interval is 5 minutes, and default number of retries before giving up is 5. If the password is supplied as ‘*’, you will be prompted to enter the password when Conky starts.
replied_mails (maildir) Number of mails marked as replied in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1.
rss uri interval_in_minutes action
(num_par (spaces_in_front)) Download and parse RSS feeds. The interval may be a floating point value greater than 0, otherwise defaults to 15 minutes. Action may be one of the following: feed_title, item_title (with num par), item_desc (with num par) and item_titles (when using this action and spaces_in_front is given conky places that many spaces in front of each item). This object is threaded, and once a thread is created it can’t be explicitly destroyed. One thread will run for each URI specified. You can use any protocol that Curl supports.
seen_mails (maildir) Number of mails marked as seen in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1.
trashed_mails (maildir) Number of mails marked as trashed in the specified mailbox or mail spool if not. Only maildir type mailboxes are supported, mbox type will return -1.
unflagged_mails (maildir) Number of mails not marked as flagged in the specified mailbox or mail spool if not.
Only maildir type mailboxes are supported, mbox type will return -1.
unforwarded_mails (maildir) Number of mails not marked as forwarded in the specified mailbox or mail spool if not.
Only maildir type mailboxes are supported, mbox type will return -1.
unreplied_mails (maildir) Number of mails not marked as replied in the specified mailbox or mail spool if not.
Only maildir type mailboxes are supported, mbox type will return -1.
unseen_mails (maildir) Number of new or unseen mails in the specified mailbox or mail spool if not.
Only maildir type mailboxes are supported, mbox type will return -1.
weather URI locID
data_type
(interval_in_minutes) Download, parse and display METAR data.
Доступны два URI:
http://weather.noaa.gov/pub/data/observations/metar/stations/
http://xoap.weather.com/weather/local/
Первый свободен для использования, а второй требует регистрации и получения partner ID и license key, которые необходимо прописать через пробел в файл

Читайте также:  Активатор windows 10 zen

data_type может принимать значения:
last_update Дата и время получения данных:
Для NOAA это дата в формате (yyyy/mm/dd) и время по UTC
Для weather.com это дата в формате ([m]m/[d]d/yy) и локальное время станции

temperature температура воздуха. Для изменения единиц измерения используйте temperature_unit
cloud_cover The highest cloud cover status

pressure давление в милибарах

wind_speed скорость ветра в км/ч

wind_dir направление ветра

wind_dir_DEG направление ветра по компасу

humidity Relative humidity in %

weather погодные условия (дождь, снег, пр.) Не используеться при запросе к weather.com

icon иконка погоды (только для www.weather.com). Can be used together with the icon kit provided upon registering to their service

delay_in_minutes время между запросами, по умолчанию 30 минут и не может быть меньше

This object is threaded, and once a thread is created it can’t be explicitly destroyed. One thread will run for each URI specified.
Note that these variables are still EXPERIMENTAL and can be subject to many future changes.
weather_forecast URI locID day
data_type
(interval_in_minutes) выводит погоду для заданного дня (только дневные температуры)
В качестве URI доступен только http://xoap.weather.com/weather/local/

locID смотри weather

day число от 0 (сегодня) до 4

data_type может принимать значения:
day день недели
date дата в формате МММ ДД (Jul 14)
low минимальная температура
hi макимальная температура
icon иконка погоды. Can be used together with the icon kit provided upon registering to the weather.com service
forecast погодные условия (солнечно, дождь, пр.)
wind_speed скорость ветра в км/ч
wind_dir направление ветра

wind_dir_DEG направление ветра по компасу

humidity — Relative humidity in %
precipitation — Probability of having a precipitation (in %)

delay_in_minutes время между запросами, по умолчанию 210 минут и не может быть меньше

Читайте также:  1с компонента печать штрихкодов linux

Источник

Оцените статью