【文章內(nèi)容簡介】
is 2)Example key:[,MX,2,1]type可選的值有:ANY, A, NS, CNAME,MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (非windows), HINFO, MINFO, TXT, SRVSRV record type is supported since Zabbix agent version .不支持國際域名, please use IDNA encoded names instead.Zabbix (任然支持):[if]Outofwindow collision.Number of collisions.Integer.if interface網(wǎng)絡接口列表. 用于 lowlevel discovery.JSON object[if,mode]網(wǎng)絡接口輸入統(tǒng)計Integer.if–接口名稱mode–可選值:bytes–字節(jié)數(shù) (default)packets–數(shù)據(jù)包數(shù)errors 錯誤數(shù)dropped–丟包數(shù)Multibyte interface names on Windows are supported since Zabbix agent version .Example keys:[eth0,errors][eth0]You may use this key with aDelta (speed per second)store value in order to get bytes per second statistics.[if,mode]網(wǎng)絡接口輸出統(tǒng)計Integer.if–接口名稱mode–可選值:bytes–字節(jié)數(shù) (default)packets–數(shù)據(jù)包數(shù)errors 錯誤數(shù)dropped–丟包數(shù)Multibyte interface names on Windows are supported since Zabbix agent version.Example keys:[eth0,errors][eth0]You may use this key with aDelta (speed per second)store value in order to get bytes per second statistics.[if,mode]網(wǎng)絡接口的I/O流量統(tǒng)計Integer.if–接口名稱mode–可選值:bytes–字節(jié)數(shù) (default)packets–數(shù)據(jù)包數(shù)errors 錯誤數(shù)dropped–丟包數(shù)Example keys:[eth0,errors][eth0]You may use this key with aDelta (speed per second)store value in order to get bytes per second statistics.Note that dropped packets are supported only if both and work for dropped packets on your platform.[port]檢查端口監(jiān)聽狀態(tài)0 –沒有監(jiān)聽1 –監(jiān)聽狀態(tài)port–tcp端口Example:[80]On Linux supported since Zabbix agent version [ip,port]檢查端口是否可用,如果可用嘗試TCP連接0 – 連接失敗1 –可用連接ip (default is )port– 端口Example:[,80] 可用檢查web服務器80端口是否可用.舊名稱: check_port[*]對于簡單的TCP性能測試可以用 [tcp,ip,port]注意:這些檢查可能會導致額外的守護進程的日志信息(SMTP和SSH會話通常記錄)。[service,ip,port]檢查服務,如果在運行則接受tcp連接0 –服務掛了1 – 服務在運行service–以下任意值:ssh,ntp,ldap,smtp,ftp,pop,nntp,imap,tcp,,telnetip (default is )port (默認將使用服務的默認端口)Example key:[ftp,45] –可以測試端口為45的FTP服務測試.注意:這些檢查可能會導致額外的守護進程的日志信息(SMTP和SSH會話通常記錄)。該方法目前不支持加密協(xié)議(如IMAP端口 993 orPOP端口995),.windows 版本的agent目前不支持檢查LDAP和HTTPS.Note that the telnet check looks for a prompt (39。:39。 at the end).舊名稱: check_service[*]Note that before Zabbix versionshould be used instead ofntp.andtelnetservices are supported since Zabbix .[service,ip,port]檢查服務性能0 –服務掛了。如果服務可用,則返回連接到服務的秒數(shù)service–以下任意值:ssh,ntp,ldap,smtp,ftp,pop,nntp,imap,tcp,,telnetip (default is )port (默認將使用服務的默認端口)Example key:[ssh] –可用于測試從SSH服務器的初始響應速度.該方法目前不支持加密協(xié)議(如IMAP端口 993 orPOP端口995). 可以用 [tcp,ip,port] 替代.windows 版本的agent目前不支持檢查LDAP和HTTPS..Note that the telnet check looks for a prompt (39。:39。 at the end).就名稱: check_service_perf[*]Note that before Zabbix versionshould be used instead ofntp.andtelnetservices are supported since Zabbix .[port]檢查UDP端口狀態(tài).0 –不可用1 –監(jiān)聽狀態(tài)port–UDP端口號Example:[68]On Linux supported since Zabbix agent version Proc進程[name,user,mode,cmdline]指定用戶的指定進程內(nèi)存使用情況.內(nèi)存使用量(單位: bytes).name–進程名稱 (默認是所有進程)user– 用戶名 (默認為所有用戶)mode– 可選值:avg,max,min,sum(default)cmdline–附加的過濾命令Example keys:[,root] “root”用戶的所有進程占用內(nèi)存情況[zabbix_server,zabbix] 行在 zabbix 用戶下的zabbix_server所有進程的占用[,oracle,max,oracleZABBIX] –oracle進程含有oracleZABBIX命令時在內(nèi)存最緊張的情況下的內(nèi)存用量[name,user,state,cmdline]某用戶的指定狀態(tài)下的進程數(shù).Number of processes.name–進程名稱 (默認是所有名稱)user–用戶名 (默認是所有用戶的)state–可選值:all(default),run,sleep,zombcmdline附加的過濾命令Example keys:[,mysql] –mysql用戶的進程數(shù)[apache2,data] –data用戶下apache2的進程數(shù)[,oracle,sleep,oracleZABBIX] oracle用戶含有oracleZABBIX命令的狀態(tài)為sleep的進程數(shù)在 Windows上,僅支持name和user參數(shù)Sensor傳感器sensor[device,sensor,mode]硬件傳感器讀數(shù)device–設備名稱 (如果使用了mode參數(shù), 這是一個正則)sensor–傳感器名稱(如果使用了mode參數(shù), 這是一個正則)mode–可選值:avg,max,min.On Linux , reads/proc/sys/dev/sensors.Example key:sensor[w83781di2c02d,temp1]Prior to Zabbix , the sensor[temp1] format was used.On OpenBSD, reads theMIB.Example keys:sensor[cpu0,temp0] one temperature of oneCPUsensor[cpu[02]$,temp,avg] average temperature of the first threeCPU39。sSupported on OpenBSD since Zabbix .System系統(tǒng)系統(tǒng)啟動時的時間Integer.返回的是UNIX 時間戳設備中斷.Integer.[cpu,mode]CPU 負載.Processor load.Float.cpu–可選值:all(default),percpu(總載荷/CPU個數(shù))mode–可選值:avg1(1分鐘平均值),avg5(5分鐘平均值),avg15(15分鐘平均值)Example key:[,avg5]Old naming: Parameterpercpuis supported since Zabbix .[type]CPU個數(shù)可用的CPU個數(shù).type–可選值:online(default),maxExample key:Context switches.Switches count.Old naming: system[switches][cpu,type,mode]CPU(s) 使用情況.處理器使用率的百分比.cpuCPU號 (default is all CPUs)type–可選值:idle,nice,user(default),system(default for Windows),iowait,interrupt,softirq,stealmode–可選值:avg1(1分鐘平均值),avg5(5分鐘平均值),avg15(15分鐘平均值)Example key:[0,user,avg5]Old naming: , , , [type]系統(tǒng)主機名稱String valuetype(僅Windows,其它系統(tǒng)忽略) 可選值:netbios(default) orhostThe value is acquired by either GetComputerName() (fornetbios) or gethostname() (forhost) functions on Windows and by “hostname” mand on other systems.Thetypeparameter for this item is supported since version.Examples of returned values:on Linux:→ linuxw7x1→ on Windows:→ WINSERV2008I6[host]→ WinServ2008I6LonGSee also amore detailed description.[info]機架信息String valueinfo one of full (default), model, serial, type or vendorExample: [full]HewlettPackard HP Pro 3010 Small Form Factor PC CZXXXXXXXX Desktop]應為該值需要從內(nèi)存中讀取所以需要Root 權限.Supported since Zabbix agent version .[cpu,info]CPU信息String or numeric valuecpu1