欢迎来到天天文库
浏览记录
ID:27018723
大小:31.12 KB
页数:18页
时间:2018-11-30
《以下表格是zabbix agent所支持的所有.docx》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、以下表格是zabbixagent所支持的所有.请大家一一过目,认识他们就行,不需要背下来。Key描述返回值参数详细说明agent.hostname返回被监控端名称字符串-返回配置文件中配置的被监控端的名称agent.ping检测被监控端是否存活1–运行中其他–未运行-使用函数nodata()检测客户端是否正在运行agent.versionzabbixagent版本字符串-例如返回:1.8.2kernel.maxfiles系统支持最大的openfiles整数kernel.maxproc系统支持最大的进程数量整数log[file,
2、,,,,]监控日志文件Log.file–文件详细路径regexp–正则encoding–编码maxlines–zabbixagent向server或者proxy发送最大的行数。这个参数覆盖配置文件zabbxi_agentd.conf中的’MaxLinesPerSecond’ mode–可选值:all(默认),skip(跳过处理老数据).mode参数从2.0版本开始支持output–可选项,输出格式模板.The escapesequencei
3、sreplacedwiththematchedtextwhileanN(whereN=1…9)escapesequenceisreplacedwithNthmatchedgroup(oranemptystringiftheNexceedsthenumberofcapturedgroups). Ifisleftempty–thewholelinecontainingthematchedtextisreturned.Notethatallglobalregularexpressiontypesexcept‘Re
4、sultisTRUE’alwaysreturnthewholematchedlineandtheparameterisignored.output是2.2中新加入的功能这个监控项只能设置为activecheck(主动模式).如果文件不存在或者没有相应的权限,那么监控项状态会转变为unsupported.示例:log[/var/log/syslog]log[/var/log/syslog,error]log[/home/zabbix/logs/logfile,,,100]logrt[file_pattern,5、egexp>,,,,]MonitoringoflogfilewithlogLog.file_pattern–文件绝对路径regexp–regularexpressiondescribingtherequiredcontentTheitemmustbeconfiguredasanactivecheck.Logrotationisbasedonthelastmodificationtimeoffiles.示例:logrt[“/home/zabbix/logs/^l6、ogfile[0-9]{1,3}$”,,,100]–willmatcharotationsupport.patternencoding–codepageidentifiermaxlines–maximumnumberofnewlinespersecondtheagentwillsendtoZabbixserverorproxy.Thisparameteroverridesthevalueof‘MaxLinesPerSecond’inzabbix_agentd.confmode–possiblevalues:all(defaul7、t),skip(skipprocessingofolderdata).Themodeparameterissupportedfromversion2.0.output–anoptionaloutputformattingtemplate.The escapesequenceisreplacedwiththematchedtextwhileanN(whereN=1…9)escapesequenceisreplacedwithNthmatchedgroup(oranemptystringiftheNexceedsthenumb8、erofcapturedgroups). Ifisleftempty–thewholelinecontainingthematchedtextisreturned.Notethatallglobalregularexpressiontypesexcept‘R
5、egexp>,,,,]MonitoringoflogfilewithlogLog.file_pattern–文件绝对路径regexp–regularexpressiondescribingtherequiredcontentTheitemmustbeconfiguredasanactivecheck.Logrotationisbasedonthelastmodificationtimeoffiles.示例:logrt[“/home/zabbix/logs/^l
6、ogfile[0-9]{1,3}$”,,,100]–willmatcharotationsupport.patternencoding–codepageidentifiermaxlines–maximumnumberofnewlinespersecondtheagentwillsendtoZabbixserverorproxy.Thisparameteroverridesthevalueof‘MaxLinesPerSecond’inzabbix_agentd.confmode–possiblevalues:all(defaul
7、t),skip(skipprocessingofolderdata).Themodeparameterissupportedfromversion2.0.output–anoptionaloutputformattingtemplate.The escapesequenceisreplacedwiththematchedtextwhileanN(whereN=1…9)escapesequenceisreplacedwithNthmatchedgroup(oranemptystringiftheNexceedsthenumb
8、erofcapturedgroups). Ifisleftempty–thewholelinecontainingthematchedtextisreturned.Notethatallglobalregularexpressiontypesexcept‘R
此文档下载收益归作者所有