📄 watchdog.conf.5
字号:
.TH WATCHDOG.CONF 5 "January 2005".UC 4.SH NAMEwatchdog.conf \- configuration file for the watchdog daemon.SH DESCRIPTIONThis file carries all configuration options for the Linux watchdog daemon.Each option has to be written on a line for itself. Comments start with '#'.Blanks are ignored except after the '=' sign. An empty text after the '='sign disables the feature as long as that makes sense..SH OPTIONS.TPinterval = <interval>Set the interval between two writes to the watchdog device. The kerneldrivers expects a write command every minute. Otherwise the system will berebooted. Default value is 10 seconds. An interval of more than a minute canonly be used with the \-f command-line option..TPlogtick = <logtick>If you enable verbose logging, a message is written into the syslog or alogfile. While this is nice, it is not necessary to get a message every10 seconds which really fills up disk and needs CPU. logtick allows adjustmentof the number of intervals skipped before a log message is written. If youuse logtick = 60 and interval = 10, only every 10 minutes (600 seconds) amessage is written. This may make the exact time of a crash harder to find butgreatly reduces disk usage and administrator nerves if you're looking for aparticular syslog entry in between of watchdog messages..TPmax-load-1 = <load1>Set the maximal allowed load average for a 1 minute span. Once this loadaverage is reached the system is rebooted. Default value is 0. That meansthe load average check is disabled. Be careful not to this parameter toolow. To set a value less then the predefined minimal value of 2, you have touse the \-f commandline option..TPmax-load-5 = <load5>Set the maximal allowed load average for a 5 minute span. Once this loadaverage is reached the system is rebooted. Default value is 3/4*max-load-1.Be careful not to this parameter too low. To set a value less then thepredefined minimal value of 2, you have to use the \-f commandline option..TPmax-load-15 = <load15>Set the maximal allowed load average for a 15 minute span. Once this loadaverage is reached the system is rebooted. Default value is 1/2*max-load-1.Be careful not to this parameter too low. To set a value less then thepredefined minimal value of 2, you have to use the \-f commandline option..TPmin-memory = <minpage>Set the minimal amount of virtual memory that has to stay free. Note thatthis is in pages. Default value is 0 pages which means this test isdisabled. The page size is taken from the system include files..TPmax-temperature = <temp>Set the maximal allowed temperature. Once this temperature is reached thesystem is halted. Default value is 120. There is no unit conversion, so makesure you use the same unit as your hardware. Watchdog will issue warningsonce the temperature increases 90%, 95% and 98% of this temperature..TPwatchdog-device = <device>Set the watchdog device name. Default is to disable keep alive support..TPtemperature-device = <temp-dev>Set the temperature device name. Default is to disable temperature checking..TPfile = <filename>Set file name for file mode. This option can be given as often as you like to check several files..TPchange = <mtime> Set the change interval time for file mode. This optionsalways belongs to the active filename, that is when finding a 'change ='line watchdog assumes it belongs to the most recently read 'file =' line.They don't neccessarily have to follow each other directly. But you cannotspecify a 'change =' before a 'file ='.The default is to only stat the file and don't look for changes..TPpidfile = <pidfilename>Set pidfile name for server test mode.This option can be given as often as you like to check several servers..TPping = <ip-addr>Set IP address for ping mode.This option can be used more than once to check differentconnections..TPinterface = <if-name>Set interface name for network mode.This option can be used more than once to check differentinterfaces..TPtest-binary = <testbin>Execute the given binary to do some user defined tests..TPtest-timeout = <timeout in seconds>User defined tests may only run for <timeout> seconds. Set to 0 for unlimited..TPrepair-binary = <repbin>Execute the given binary in case of a problem instead of shutting down thesystem..TPadmin = <mail-address>Email address to send admin mail to. That is, who shall be notified that themachine is being halted or rebooted. Default is 'root'. If you want to disablenotification via email just set admin to en empty string..TPrealtime = <yes|no>If set to yes watchdog will lock itself into memory so it is never swappedout..TPpriority = <schedule priority>Set the schedule priority for realtime mode..SH FILES.TP.I /etc/watchdog.conf The watchdog configuration file.SH "SEE ALSO".BR watchdog (8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -