Zabbix agent (UNIX) Configuration file

The default values reflect daemon defaults, not the values in the shipped configuration files.

The parameters supported in a Zabbix agent configuration file (zabbix_agentd.conf):
Parameter
Mandatory
Range
Default
Description

Alias
no

Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.Different Alias keys may reference the same item key.For example, to retrieve the ID of user 'zabbix':Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]Now shorthand key zabbix.userid may be used to retrieve data.Aliases can be used in HostMetadataItem but not in HostnameItem parameters.

AllowRoot
no

0
Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent will try to switch to user 'zabbix' instead. Has no effect if started under a regular user.0 - do not allow1 - allow

BufferSend
no
1-3600
5
Do not keep data longer than N seconds in buffer.

BufferSize
no
2-65535
100
Maximum number of values in a memory buffer. The agent will sendall collected data to Zabbix server or proxy if the buffer is full.

DebugLevel
no
0-5
3
Specifies debug level:0 - basic information about starting and stopping of Zabbix processes1 - critical information2 - error information3 - warnings4 - for debugging (produces lots of information)5 - extended debugging (produces even more information)

EnableRemoteCommands
no

0
Whether remote commands from Zabbix server are allowed.0 - not allowed1 - allowed

HostMetadata
no
0-255 characters

Optional parameter that defines host metadata. Host metadata is used only at host auto-registration process (active agent).If not defined, the value will be acquired from HostMetadataItem.An agent will issue an error and not start if the specified value is over the limit or a non-UTF-8 string.This option is supported in version 2.2.0 and higher.

HostMetadataItem
no

Optional parameter that defines a Zabbix agent item used for getting host metadata. This option is only used when HostMetadata is not defined.Supports UserParameters and aliases. Supports system.run[]regardless of EnableRemoteCommands value.Host metadata is used only at host auto-registration process (active agent).During an auto-registration request an agent will log a warning message if the value returned by the specified item is over the limit of 255 characters.The value returned by the item must be a UTF-8 string otherwise it will be ignored.This option is supported in version 2.2.0 and higher.

Hostname
no

Set by HostnameItem
Unique, case sensitive hostname.Required for active checks and must match hostname as configured on the server.Allowed characters: alphanumeric, '.', ' ', '_' and '-'.Maximum length: 64

HostnameItem
no

system.hostname
Optional parameter that defines a Zabbix agent item used for getting host name. This option is only used when Hostname is not defined.Does not support UserParameters or aliases, but does support system.run[] regardless of EnableRemoteCommandsvalue.This option is supported in version 1.8.6 and higher.

Include
no

You may include individual files or all files in a directory in the configuration file.To only include relevant files in the specified directory, the asterisk wildcard character is supported for pattern matching. For example: /absolute/path/to/config/files/*.conf
. Pattern matching is supported since Zabbix 2.4.0.See special notes about limitations.

ListenIP
no

0.0.0.0
List of comma delimited IP addresses that the agent should listen on.Multiple IP addresses are supported in version 1.8.3 and higher.

ListenPort
no
1024-32767
10050
Agent will listen on this port for connections from the server.

LoadModule
no

Module to load at agent startup. Modules are used to extend functionality of the agent.Format: LoadModule=<module.so>The modules must be located in directory specified by LoadModulePath.It is allowed to include multiple LoadModule parameters.

LoadModulePath
no

Full path to location of agent modules.Default depends on compilation options.

LogFile
yes, if LogType is set to file, otherwiseno

Name of log file.

LogFileSize
no
0-1024
1
Maximum size of log file in MB
.0 - disable automatic log rotation.Note: If the log file size limit is reached and file rotation fails, for whatever reason, the existing log file is truncated and started anew.

LogType
no

file
Log output type:file - write log to file specified by LogFile parameter,system - write log to syslog,console - write log to standard output.This parameter is supported since Zabbix 3.0.0.

LogRemoteCommands
no

0
Enable logging of executed shell commands as warnings.0 - disabled1 - enabled

MaxLinesPerSecond
no
1-1000
20
Maximum number of new lines the agent will send per second to Zabbix server or proxy when processing 'log' and 'eventlog' active checks.The provided value will be overridden by the parameter 'maxlines',provided in 'log' or 'eventlog' item key.Note: Zabbix will process 4 times more new lines than set in MaxLinesPerSecond to seek the required string in log items.

PidFile
no

/tmp/zabbix_agentd.pid
Name of PID file.

RefreshActiveChecks
no
60-3600
120
How often list of active checks is refreshed, in seconds.Note that after failing to refresh active checks the next refresh will be attempted after 60 seconds.

Server
no

List of comma delimited IP addresses (or hostnames) of Zabbix servers. Spaces are allowed since the Zabbix 2.2 version.Incoming connections will be accepted only from the hosts listed here.Note that hostnames must resolve hostname→IP address and IP address→hostname.If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.

ServerActive
no

IP:port (or hostname:port) of Zabbix server or Zabbix proxy for active checks.Multiple comma-delimited addresses can be provided to use several independent Zabbix servers in parallel. No spaces allowed.If port is not specified, default port is used.IPv6 addresses must be enclosed in square brackets if port for that host is specified.If port is not specified, square brackets for IPv6 addresses are optional.If this parameter is not specified, active checks are disabled.

SourceIP
no

Source IP address for outgoing connections.

StartAgents
no
0-100
3
Number of pre-forked instances of zabbix_agentd that process passive checks.If set to 0, disables passive checks and the agent will not listen on any TCP port.The upper limit used to be 16 before version 1.8.5.

Timeout
no
1-30
3
Spend no more than Timeout seconds on processing

TLSAccept
yes, if TLS certificate or PSK parameters are defined (even for unencryptedconnection), otherwise no

What incoming connections to accept. Used for a passive checks. Multiple values can be specified, separated by comma: unencrypted - accept connections without encryption (default) psk - accept connections with TLS and a pre-shared key (PSK) cert - accept connections with TLS and a certificateThis parameter is supported since Zabbix 3.0.0.

TLSCAFile
no

Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification, used for encrypted communications between Zabbix components.This parameter is supported since Zabbix 3.0.0.

TLSCertFile
no

Full pathname of a file containing the agent certificate or certificate chain, used for encrypted communications with Zabbix components.This parameter is supported since Zabbix 3.0.0.

TLSConnect
yes, if TLS certificate or PSK parameters are defined (even for unencryptedconnection), otherwise no

How the agent should connect to Zabbix server or proxy. Used for active checks. Only one value can be specified: unencrypted - connect without encryption (default) psk - connect using TLS and a pre-shared key (PSK) cert - connect using TLS and a certificateThis parameter is supported since Zabbix 3.0.0.

TLSCRLFile
no

Full pathname of a file containing revoked certificates. This parameter is used for encrypted communications with Zabbix components.This parameter is supported since Zabbix 3.0.0.

TLSKeyFile
no

Full pathname of a file containing the agent private key used for encrypted communications with Zabbix components.This parameter is supported since Zabbix 3.0.0.

TLSPSKFile
no

Full pathname of a file containing the agent pre-shared key used for encrypted communications with Zabbix components.This parameter is supported since Zabbix 3.0.0.

TLSPSKIdentity
no

Pre-shared key identity string, used for encrypted communications with Zabbix server.This parameter is supported since Zabbix 3.0.0.

TLSServerCertIssuer
no

Allowed server (proxy) certificate issuer.This parameter is supported since Zabbix 3.0.0.

TLSServerCertSubject
no

Allowed server (proxy) certificate subject.This parameter is supported since Zabbix 3.0.0.

UnsafeUserParameters
no
0,1
0
Allow all characters to be passed in arguments to user-defined parameters. Supported since Zabbix 1.8.2.The following characters are not allowed:\ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @Additionally, newline characters are not allowed.

User
no

zabbix
Drop privileges to a specific, existing user on the system.Only has effect if run as 'root' and AllowRoot is disabled.This parameter is supported since Zabbix 2.4.0.

UserParameter
no

User-defined parameter to monitor. There can be several user-defined parameters.Format: UserParameter=<key>,<shell command>Note that shell command must not return empty string or EOL
only.Example: UserParameter=system.test,who|wc -l

In Zabbix agent 2.0.0 version configuration parameters related to active and passive checks have been changed.See the "See also" section at the bottom of this page to read more details about these changes.

Zabbix supports configuration files only in UTF-8 encoding without BOM.Comments starting with “#” are only supported in the beginning of the line.

See also
Differences in the Zabbix agent configuration for active and passive checks starting from version 2.0.0

最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市块攒,隨后出現(xiàn)的幾起案子励稳,更是在濱河造成了極大的恐慌,老刑警劉巖囱井,帶你破解...
    沈念sama閱讀 206,311評論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件驹尼,死亡現(xiàn)場離奇詭異,居然都是意外死亡庞呕,警方通過查閱死者的電腦和手機新翎,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,339評論 2 382
  • 文/潘曉璐 我一進店門程帕,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人地啰,你說我怎么就攤上這事愁拭。” “怎么了亏吝?”我有些...
    開封第一講書人閱讀 152,671評論 0 342
  • 文/不壞的土叔 我叫張陵岭埠,是天一觀的道長。 經(jīng)常有香客問我蔚鸥,道長惜论,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 55,252評論 1 279
  • 正文 為了忘掉前任株茶,我火速辦了婚禮来涨,結果婚禮上,老公的妹妹穿的比我還像新娘启盛。我一直安慰自己,他們只是感情好技羔,可當我...
    茶點故事閱讀 64,253評論 5 371
  • 文/花漫 我一把揭開白布僵闯。 她就那樣靜靜地躺著,像睡著了一般藤滥。 火紅的嫁衣襯著肌膚如雪鳖粟。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,031評論 1 285
  • 那天拙绊,我揣著相機與錄音向图,去河邊找鬼。 笑死标沪,一個胖子當著我的面吹牛榄攀,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播金句,決...
    沈念sama閱讀 38,340評論 3 399
  • 文/蒼蘭香墨 我猛地睜開眼檩赢,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了违寞?” 一聲冷哼從身側(cè)響起贞瞒,我...
    開封第一講書人閱讀 36,973評論 0 259
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎趁曼,沒想到半個月后军浆,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 43,466評論 1 300
  • 正文 獨居荒郊野嶺守林人離奇死亡挡闰,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 35,937評論 2 323
  • 正文 我和宋清朗相戀三年乒融,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,039評論 1 333
  • 序言:一個原本活蹦亂跳的男人離奇死亡簇抵,死狀恐怖庆杜,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情碟摆,我是刑警寧澤晃财,帶...
    沈念sama閱讀 33,701評論 4 323
  • 正文 年R本政府宣布,位于F島的核電站典蜕,受9級特大地震影響断盛,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜愉舔,卻給世界環(huán)境...
    茶點故事閱讀 39,254評論 3 307
  • 文/蒙蒙 一钢猛、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧轩缤,春花似錦命迈、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,259評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至馏鹤,卻和暖如春征椒,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背湃累。 一陣腳步聲響...
    開封第一講書人閱讀 31,485評論 1 262
  • 我被黑心中介騙來泰國打工勃救, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人治力。 一個月前我還...
    沈念sama閱讀 45,497評論 2 354
  • 正文 我出身青樓蒙秒,卻偏偏與公主長得像,于是被迫代替她去往敵國和親琴许。 傳聞我的和親對象是個殘疾皇子税肪,可洞房花燭夜當晚...
    茶點故事閱讀 42,786評論 2 345

推薦閱讀更多精彩內(nèi)容

  • 過去的時光化作蝴蝶飛走了,我們也就各自走開榜田,絕口不提悲傷益兄。——題記 首先箭券,我想跟大家分享兩個故事净捅。 第一個故事,是...
    殳涘i閱讀 427評論 0 0
  • 2015最后一天了荆永,寫點啥呢?這一年碌碌無為的国章,真不知能寫啥具钥,不寫吧又對自己沒法交代。頭疼……硬著頭皮回想這一年...
    狂妄的烏鴉閱讀 295評論 0 0