User Tools

Site Tools


doc:uci:system

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:uci:system [2014/08/08 12:29]
valentt
doc:uci:system [2015/08/23 18:07] (current)
andzik [System] log_proto missing in luci and log-hostname missing in init.d script
Line 14: Line 14:
  
 ^ Name ^ Type ^ Required ^ Default ^ Description ^ ^ Name ^ Type ^ Required ^ Default ^ Description ^
-| ''​hostname''​ | string | no | ''​OpenWrt''​ | The hostname for this system. |+| ''​hostname''​ | string | no | ''​OpenWrt''​ | The hostname for this system. ​Avoid points, even if they are within single7double quotes. For example ''​ '​my.hostname'​ ''​ will show only the ''​ '​my'​ ''​ part |
 | ''​buffersize''​ | integer | no | kernel specific | Size of the kernel message buffer. | | ''​buffersize''​ | integer | no | kernel specific | Size of the kernel message buffer. |
-| ''​conloglevel''​ | integer | no | ''​7''​ | Number between ​0-8. The maximum [[http://​www.kernel.org/​doc/​man-pages/​online/​pages/​man2/​syslog.2.html|log level]] for kernel messages to be logged to the console. Only messages with a level lower than this will be printed to the console. Higher level messages have lower log level number. Highest level messages are ones with log level 0. If you want more verbous messages in console put conloglevel to 8 if you want less messages lower conloglevel to 4 or even less.|+| ''​conloglevel''​ | integer | no | ''​7''​ | Number between ​1-8. The maximum [[http://​www.kernel.org/​doc/​man-pages/​online/​pages/​man2/​syslog.2.html|log level]] for kernel messages to be logged to the console. Only messages with a level lower than this will be printed to the console. Higher level messages have lower log level number. Highest level messages are ones with log level 0. If you want more verbous messages in console put conloglevel to 8 if you want less messages lower conloglevel to 4 or even less.|
 | ''​cronloglevel''​ | integer | no | ''​5''​ | The minimul level for cron messages to be logged to syslog. ''​0''​ will print all debug messages, ''​8''​ will log command executions, and ''​9''​ or higher will only log error messages. | | ''​cronloglevel''​ | integer | no | ''​5''​ | The minimul level for cron messages to be logged to syslog. ''​0''​ will print all debug messages, ''​8''​ will log command executions, and ''​9''​ or higher will only log error messages. |
 | ''​klogconloglevel''​ | integer | no | ''​7''​ | The maximum [[http://​www.kernel.org/​doc/​man-pages/​online/​pages/​man2/​syslog.2.html|log level]] for kernel messages to be logged to the console. Only messages with a level lower than this will be printed to the console. Identical to ''​conloglevel''​ and will override it. | | ''​klogconloglevel''​ | integer | no | ''​7''​ | The maximum [[http://​www.kernel.org/​doc/​man-pages/​online/​pages/​man2/​syslog.2.html|log level]] for kernel messages to be logged to the console. Only messages with a level lower than this will be printed to the console. Identical to ''​conloglevel''​ and will override it. |
Line 23: Line 23:
 | ''​log_port''​ | integer | no | ''​514''​ | Port number of the remote syslog server specified with ''​log_ip''​. | | ''​log_port''​ | integer | no | ''​514''​ | Port number of the remote syslog server specified with ''​log_ip''​. |
 | ''​log_prefix''​ | string | no |//​(none)//​| Adds a prefix to all log messages send over network. | | ''​log_prefix''​ | string | no |//​(none)//​| Adds a prefix to all log messages send over network. |
 +| ''​log_proto''​ | string | no | ''​udp''​| Sets the protocol to use for the connection, either '​tcp'​ or '​udp'​. |
 +| ''​log_remote''​ | bool | no | ''​1''​ | Enables remote logging. |
 | ''​log_size''​ | integer | no | ''​16''​ | Size of the file or circular memory buffer in KiB. | | ''​log_size''​ | integer | no | ''​16''​ | Size of the file or circular memory buffer in KiB. |
 +| ''​log_trailer_null''​ | bool | no | ''​0''​ | Use \0 instead of \n as trailer when using TCP. |
 | ''​log_type''​ | string | no | ''​circular''​ | Either ''​circular''​ or ''​file''​. | | ''​log_type''​ | string | no | ''​circular''​ | Either ''​circular''​ or ''​file''​. |
-| ''​timezone''​ | string | no | ''​UTC''​ | The time zone that date and time should be rendered in by default. A list of possible values is in the ''​TZ string''​ column of the [[.:system#time.zones|Time Zones]] table. |+| ''​timezone''​ | string | no | ''​UTC''​ | The time zone that date and time should be rendered in by default. A list of possible values is in the ''​TZ string''​ column of the [[.:system#time_zones|Time Zones]] table. |
 | ''​zonename''​ | string | no | ''​UTC''​ | Only useful when using eglibc and zoneinfo! (''​LIBC_USE_EGLIBC'',​ ''​PACKAGE_zoneinfo-*''​) The time zone that date and time should be rendered in by default. Suppose you want to use Brussels'​ timezone, set this value to ''​Europe/​Brussels''​. Possible values can be found by running ''​(cd /​usr/​share/​zoneinfo;​ find *)''​ | | ''​zonename''​ | string | no | ''​UTC''​ | Only useful when using eglibc and zoneinfo! (''​LIBC_USE_EGLIBC'',​ ''​PACKAGE_zoneinfo-*''​) The time zone that date and time should be rendered in by default. Suppose you want to use Brussels'​ timezone, set this value to ''​Europe/​Brussels''​. Possible values can be found by running ''​(cd /​usr/​share/​zoneinfo;​ find *)''​ |
  
 +  * FIXME If you want to change '​hostname'​ instead of //​localhost.localdomain//​ in remote syslog, you have to add -h <​hostname>​ parameter in /​etc/​init.d/​log start parameters. It should be read from system config, but it's not (yet) - remove after fix.
 +  * FIXME There should be tcp/udp field in LuCI syslog settings. Now it's hard to tell if OpenWRT supports TCP syslog.
 ==== Remote Time (ntp) ==== ==== Remote Time (ntp) ====
  
Line 108: Line 113:
 === Heartbeat === === Heartbeat ===
  
-The LED flashes to simulate actual heart beat //​thump-thump-pause//​. The frequency is in direct proportion to 1-minute average CPU load.(([[http://​git.kernel.org/​?p=linux/​kernel/​git/​stable/​linux-stable.git;​a=blob_plain;​f=drivers/​leds/​ledtrig-heartbeat.c;hb=HEAD|Source file of heartbeat trigger]]))+The LED flashes to simulate actual heart beat //​thump-thump-pause//​. The frequency is in direct proportion to 1-minute average CPU load.(([[https://​git.kernel.org/​cgit/linux/​kernel/​git/​stable/​linux-stable.git/tree/drivers/​leds/trigger/​ledtrig-heartbeat.c|Source file of heartbeat trigger]]))
 <code bash>​opkg install kmod-ledtrig-heartbeat</​code>​ <code bash>​opkg install kmod-ledtrig-heartbeat</​code>​
 ^ Name ^ Type ^ Required ^ Default ^ Description ^ ^ Name ^ Type ^ Required ^ Default ^ Description ^
Line 503: Line 508:
 | Asia/​Tashkent | UZT-5 | | Asia/​Tashkent | UZT-5 |
 | Asia/​Tbilisi | GET-4 | | Asia/​Tbilisi | GET-4 |
 +| Asia/Tehran | IRST-3:​30IRDT,​80/​0,​264/​0 |
 | Asia/​Thimphu | BTT-6 | | Asia/​Thimphu | BTT-6 |
 | Asia/Tokyo | JST-9 | | Asia/Tokyo | JST-9 |
doc/uci/system.1407493780.txt.bz2 · Last modified: 2014/08/08 12:29 (external edit)