zabbix agent所支持的所有KEY

zabbix服務器端通過與zabbix agent通信來獲取客戶端服務器的數據,agent分爲兩個版本,其中一個是主動一個是被動,在配置主機我們可以看到一個是agent,另一個是agent(active)。前者爲被動檢測,後者爲主動檢測。那麼主動和被動區別在哪裏呢?
被動:zabbix server向zabbix agent討要數據。
主動:zabbix agent提交數據給zabbix server。
監控項keys列表

以下表格是zabbix agent所支持的所有.請大家一一過目,認識他們就行,不需要背下來。

 

 

Key
功能返回值參數描述
agent.hostname
-
agent.ping
agent.version
zabbix agent版本字符串-例如返回: 1.8.2
kernel.maxfiles
系統支持最大的openfiles整數
kernel.maxproc
系統支持最大的進程數量整數
log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]
監控日誌文件Logfile – 文件詳細路徑regexp – 正則encoding – 編碼

 

maxlines – zabbix agent向server或者proxy發送最大的行數。這個參數覆蓋配置文件zabbxi_agentd.conf中的’MaxLinesPerSecond’

mode – 可選值: all (默認), skip (跳過處理老數據).mode參數從2.0版本開始支持

output – 可選項,輸出格式模板. The \0 escape sequence is replaced with the matched text while an \N(where N=1…9) escape sequence is replaced with Nth matched group (or an empty string if the N exceeds the number of captured groups).

If <output> is left empty

– the whole line containing the matched text is returned. Note that all global regular expression types except ‘Result is TRUE’ always return the whole matched line and the <output> parameter is ignored.

output是2.2中新加入的功能

這個監控項只能設置爲 active check(主動模式).如果文件不存在或者沒有相應的權限,那麼監控項狀態會轉變爲unsupported.示例:

 

log[/var/log/syslog] log[/var/log/syslog,error] log[/home/zabbix/logs/logfile,,,100]

logrt[file_pattern,<regexp>,<encoding>,<maxlines>,<mode>,<output>]
監控支持輪轉的日誌Logfile_pattern – 文件絕對路徑regexp – 正則表達式encoding – 編碼

 

maxlines – 客戶端每秒發送給server的最大行數. 這個參數會覆蓋客戶端配置文件zabbix_agentd.conf中MaxLinesPerSecond的值

mode – 可選值: all (默認), skip (跳過老數據的處理).

Mode參數從2.0開始支持

output – an optional output formatting template. The \0 escape sequence is replaced with the matched text while an \N(where N=1…9) escape sequence is replaced with Nth matched group (or an empty string if the N exceeds the number of captured groups). If <output> is left empty – the whole line containing the matched text is returned. Note that all global regular expression types except ‘Result is TRUE’ always return the whole matched line and the <output> parameter is ignored. The output parameter is supported from version 2.2.

The item must be configured as an active check. Log rotation is based on the last modification time of files.示例:logrt[“/home/zabbix/logs/^logfile[0-9]{1,3}$”,,,100]

 

– will match a file like “logfile1″ (will not match “.logfile1″)

 

logrt[“/home/user/logfile_.*_[0-9]{1,3}”,”pattern_to_match”,”UTF-8″,100]

– will collect data from files such “logfile_abc_1” or “logfile__001”.

net.dns[<ip>,zone,<type>,<timeout>,<count>]
檢測DNS服務是否開啓0 – DNS掛了 1 – DNS運行中ip – DNS服務器的ip地址(留空表示使用本地DNS, ignored on Windows)zone – 需要測試的域名type – 記錄類型 (默認爲 SOA)

 

timeout (ignored on Windows) – 超時時間(默認1秒)

count (ignored on Windows) – 重試次數 (默認值2)

示例key:net.dns[8.8.8.8,zabbix.com,MX,2,1]type可選值: ANY, A, NS, CNAME, MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (除了windows), HINFO, MINFO, TXT, SRV

 

SRV記錄從Zabbix agent versions 1.8.6 (Unix) and 2.0.0 (Windows)開始支持Zabbix 2.0

之前的命名方式: net.tcp.dns(目前依舊支持)

net.dns.record[<ip>,zone,<type>,<timeout>,<count>]
執行一個DNS查詢獲取DNS查詢數據ip – DNS服務器的ip地址(留空表示使用本地DNS, ignored on Windows)zone – 需要測試的域名type – 記錄類型 (默認爲 SOA)

 

timeout (ignored on Windows) – 超時時間(默認1秒)

count (ignored on Windows) – 重試次數 (默認值2)

示例key:net.dns.record[8.8.8.8,ttlsa.com,MX,2,1]type的可選值: ANY, A, NS, CNAME, MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (except for Windows), HINFO, MINFO, TXT, SRV

 

SRV記錄從Zabbix agent versions 1.8.6 (Unix) and 2.0.0 (Windows)開始支持Zabbix 2.0

之前的命名方式: net.tcp.dns(目前依舊支持)

net.if.collisions[if]
Out-of-window collisionNumber of collisions數字if – 網卡
net.if.discovery
列出網卡. 通常用於低級別的discoveryJSON對象Zabbix agent 2.0開始支持 但是操作系統FreeBSD, OpenBSD and NetBSD上的 Zabbix agent 2.2開始支持
net.if.in[if,<mode>]
網卡入口流量整數if – 網卡名稱mode – 可用值:bytes – 字節數 (默認)

 

packets – 包數量

errors – 錯誤數量

dropped – 丟包數量

示例keys: net.if.in[eth0,errors] net.if.in[eth0]請使用增量存儲方式
net.if.out[if,<mode>]
網卡出口流量整數if – 網卡名稱mode – 可用值:bytes – 字節數 (默認)

 

packets – 包數量

errors – 錯誤數量

dropped – 丟包數量

範例keys:net.if.out[eth0,errors] net.if.out[eth0]請使用增量存儲方式
net.if.total[if,<mode>]
網卡進/出流量的總和整數if – 網卡名稱mode – 可用值:bytes – 字節數 (默認)

 

packets – 包數量

errors – 錯誤數量

dropped – 丟包數量

範例keys:net.if.total[eth0,errors] net.if.total[eth0]請使用增量存儲方式
net.tcp.listen[port]
檢測端口是否開啓0 – 未監聽1 – 監聽中port – TCP端口示例:net.tcp.listen[80]linux下的zabbix agent 1.8.4開始支持
net.tcp.port[<ip>,port]
是否可以連接到指定的TCP端口0 – 無法連接1 – 可以連接ip – IP地址(默認是 127.0.0.1)port – 端口範例:net.tcp.port[,80]檢測web服務器端口是否運行中

 

老命名方式: check_port[*]

net.tcp.service[service,<ip>,<port>]
檢測服務是否開啓,並且端口可用0 – 服務掛了1 – 服務運行中service – 如下: ssh, ntp, ldap, smtp, ftp, http, pop, nntp,imap, tcp, https, telnetip – IP地址 (默認127.0.0.1)port – 端口 (默認情況爲標準端口號)示例key:net.tcp.service[ftp,,45] – 檢測45端口上得FTP是否運行中Zabbix 1.8.3 支持的版本請使用service.ntp 代替ntp.

 

https 和telnet 服務從2.0和2.2開始支持

net.tcp.service.perf[service,<ip>,<port>]
檢測服務器性能0 – 服務掛了;seconds – 鏈接到服務器端口消耗的時間service – 如下:ssh, ntp, ldap, smtp, ftp, http, pop, nntp,imap, tcp, https, telnetip – IP地址 (默認127.0.0.1)port – 端口 (默認情況爲標準端口號)示例key:net.tcp.service.perf[ssh] – 檢測SSH服務器響應速度加密協議檢測不被支持 (類似 IMAP端口 993或者POP端口995) .但是我們可以使用net.tcp.service.perf[tcp,<ip>,<port>] 來檢測他們.Windows agent不能檢測LDAP和HTTPS. Note that the telnet check looks for a prompt (‘:’ at the end).老命名方式: check_service_perf[*]注意:that before Zabbix 1.8.3 version service.ntp should be used instead of ntp. Zabbix 2.0支持 https和telnet服務
net.udp.listen[port]
檢測UDP端口是否在監聽0 – 未監聽1 – 監聽中port – udp端口範例:net.udp.listen[68]linux系統的Zabbix agent 1.8.4開始支持
proc.mem[<name>,<user>,<mode>,<cmdline>]
用戶進程消耗的內存內存使用量 (字節單位).name – 進程名 (默認值 “all processes”)user – 用戶名 (默認值“all users”)mode – 可選值: avg, max, min, sum (默認)

 

cmdline – 命令行過濾(正則表達時)

示例keys:proc.mem[,root]– root的進程消耗了多少內存

 

proc.mem[zabbix_server,zabbix]

– zabbix用戶運行的zabbix_server使用了多少內存

proc.mem[,oracle,max,oracleZABBIX] – memory used by the most memory-hungry process running under oracle having oracleZABBIX in its command line

proc.num[<name>,<user>,<state>,<cmdline>]
某用戶某些狀態的進程的數量進程數量name – 進程名稱 (默認“all processes”)user – 用戶名 (默認 “all users”)state – 可用值: all (默認), run,sleep, zomb

 

cmdline – 命令行過濾(正則表達時)

示例keys: proc.num[,mysql]– MySQL用戶運行的進程數量

 

proc.num[apache2,www-data]

– www-data運行了多少個apache2進程proc.num[,oracle,sleep,oracleZABBIX] – number of processes in sleep state running under oracle having oracleZABBIX in its command line

備註:Windows系統只支持name和user兩個參數

sensor[device,sensor,<mode>]
讀取硬件傳感器device – 設備名稱sensor – 傳感器名稱mode – 可選值: avg,

 

max, min (if this parameter is omitted, device and sensor are treated verbatim).

On Linux 2.4, 讀取/proc/sys/dev/sensors.

示例key:sensor[w83781d-i2c-0-2d,temp1] Prior to Zabbix 1.8.4, the sensor[temp1] format was used. On Linux 2.6+, 讀取/sys/class/hwmon. On OpenBSD, 讀取hw.sensors MIB.示例keys:

 

sensor[cpu0,temp0] – CPU0的溫度

sensor[cpu[0-2]$,temp,avg] – cpu平均溫度

Zabbix 1.8.4開始支持OpenBSD

system.boottime
系統啓動的時間鹺整數unix時間戳
system.cpu.intr
設備中斷整數
system.cpu.load[<cpu>,<mode>]
CPU負載浮點數cpu – 可用值: all (默認), percpu (所有在線cpu的負載)mode – 可用值: avg1 (1分鐘 默認值), avg5(5分鐘平均), avg15 (15分鐘平均值)範例key:system.cpu.load[,avg5]老命令方式: system.cpu.loadX

 

參數percpu is Zabbix 2.0.0開始支持

system.cpu.num[<type>]
CPU數量處理器個數type – 可用值: online (默認值), max範例:system.cpu.num
system.cpu.switches
上下文交換交換次數老命名方式: system[switches]
system.cpu.util[<cpu>,<type>,<mode>]
CPU利用率百分比cpu – cpu數量 (默認是所有cpu)type – 可用值: idle, nice, user (默認), system (windows系統默認值), iowait, interrupt, softirq,stealmode – 可用值: avg1 (一分鐘平均,默認值), avg5(5分鐘平均, avg15 (15分鐘平均值)範例key:system.cpu.util[0,user,avg5]老命名方式:

 

system.cpu.idleX, system.cpu.niceX, system.cpu.systemX, system.cpu.userX

system.hostname[<type>]
返回主機名字符串type (僅用於windows系統) – 可用值: netbios(默認) or host例如:on Linux: system.hostname → linux-w7x1 system.hostname → www.zabbix.com on Windows: system.hostname → WIN-SERV2008-I6 system.hostname[host] → Win-Serv2008-I6LonG type參數從zabbix 1.8.6開始支持
system.hw.chassis[<info>]
返回機架信息字符串info – full (默認), model, serial, type 或vendor例如: system.hw.chassis[full] Hewlett-Packard HP Pro 3010 Small Form Factor PC CZXXXXXXXX Desktop] 需要root權限,因爲這些信息是從內存中讀取的。 Zabbix agent version 2.0 開始支持
system.hw.cpu[<cpu>,<info>]
返回CPU信息字符/數字cpu – cpu數量或者all (默認)info – full (默認), curfreq, maxfreq, model 或者vendor例如:system.hw.cpu[0,vendor]AuthenticAMD 從/proc/cpuinfo、/sys/devices/system/cpu/[cpunum]/cpufreq/cpuinfo_max_freq 獲取信息. 如果指定了CPU數量和 curfreq或者maxfreq, 將會返回數值(Hz).

 

Zabbix agent 2.0 開始支持

system.hw.devices[<type>]
列出PCI或者USB文本值type – pci (默認) or usb範例:system.hw.devices[pci]00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge [..] 返回lspci或者lsusb (不帶參數)

 

Zabbix agent 2.0開始支持

system.hw.macaddr[<interface>,<format>]
列出MAC地址字符串interface – all (默認) 或者正則表達式format – full (默認) 、short範例:system.hw.macaddr[“eth0$”,full][eth0] 00:11:22:33:44:55 列出指定接口mac地址 如果format指定爲short,MAC地址相同的將會被忽略掉

 

Zabbix agent 2.0開始支持

system.localtime[<type>]
系統時間數字或者字符串utc – (默認) (00:00:00 UTC, January 1, 1970)local – 本地時間格式 ‘yyyy-mm-dd,hh:mm:ss.nnn,+hh:mm’zabbix 2.0開始支持帶參數
system.run[command,<mode>]
在制定的主機上運行命令文本command – 命令mode – wait (默認值, 執行超時時間), nowait (不等待)       最大可用返回512KB數據,包含空白數據。命令輸出數據必須是文本例如:system.run[ls -l /]– 列出/的文件和目錄.

 

備註: 啓用這個方法, agent配置文件必須配置 EnableRemoteCommands=1選項

system.stat[resource,<type>]
虛擬內存狀態數字ent – number of processor units this partition is entitled to receive (float)kthr,<type> – information about kernel thread states:r – average number of runnable kernel threads (float)

 

b – average number of kernel threads placed in the Virtual Memory Manager wait queue (float)

memory,<type> – information about the usage of virtual and real memory:

avm – active virtual pages (integer)

fre – size of the free list (integer)

page,<type> – information about page faults and paging activity:

fi – file page-ins per second (float)

fo – file page-outs per second (float)

pi – pages paged in from paging space (float)

po – pages paged out to paging space (float)

fr – pages freed (page replacement) (float)

sr – pages scanned by page-replacement algorithm (float)

faults,<type> – trap and interrupt rate:

in – device interrupts (float)

sy – system calls (float)

cs – kernel thread context switches (float)

cpu,<type> – breakdown of percentage usage of processor time:

us – user time (float)

sy – system time (float)

id – idle time (float)

wa – idle time during which the system had outstanding disk/NFS I/O request(s) (float)

pc – number of physical processors consumed (float)

ec – the percentage of entitled capacity consumed (float)

lbusy – indicates the percentage of logical processor(s) utilization that occurred while executing at the user and system level (float)

app – indicates the available physical processors in the shared pool (float)

disk,<type> – disk statistics:

bps – indicates the amount of data transferred (read or written) to the drive in bytes per second (integer)

tps – indicates the number of transfers per second that were issued to the physical disk/tape (float)

This item is supported starting from version 1.8.1.

system.sw.arch
返回軟件信息字符串範例:system.sw.arch i686數據來自uname方法

 

Zabbix agent 2.0.開始支持

system.sw.os[<info>]
返回系統信息字符串info – full (default), short ,name範例:system.sw.os[short]Ubuntu 2.6.35-28.50-generic 2.6.35.11

 

信息來自如下文件

[full] – /proc/version

[short] – /proc/version_signature

[name] – /etc/issue.net

Zabbix agent version 2.0.開始支持

system.sw.packages[<package>,<manager>,<format>]
已安裝軟件列表文本值package – all (默認)或者正則表達式manager – all (默認) or a package managerformat – full (默認) ,short範例:system.sw.packages[mini,dpkg,short] python-minimal, python2.6-minimal, ubuntu-minimal Lists (alphabetically) installed packages whose names match the given package regexp (“all” lists them all).包管理:

 

manager (執行命令)

dpkg (dpkg –get-selections)

pkgtool (ls /var/log/packages)

rpm (rpm -qa)

pacman (pacman -Q)

如果format 爲full, packages are grouped by package managers (each manager on a seperate line beginning with it’s name in square brackets).

如果format爲short, 包不分組,並且都列在一行上.

Zabbix agent 2.0開始支持

system.swap.in[<device>,<type>]
交換分區IN(磁盤交換到內存)數字device – 交換分區設備 (默認all)type – 可選值: count (swapins數量), sectors(sectors swapped in), pages (pages swapped in).示例key:system.swap.in[,pages]數據採集自: Linux 2.4: /proc/swaps, /proc/partitions, /proc/stat

 

Linux 2.6: /proc/swaps, /proc/diskstats, /proc/vmstat

system.swap.out[<device>,<type>]
Swap out (f內存到磁盤)數字device – swap設備 (默認all)type – possible values: count (number of swapouts), sectors(sectors swapped out), pages (pages swapped out). See supported by platformfor details on defaults.示例key:system.swap.out[,pages]數據採集自:

 

Linux 2.4: /proc/swaps, /proc/partitions, /proc/stat

Linux 2.6: /proc/swaps, /proc/diskstats, /proc/vmstat

system.swap.size[<device>,<type>]
交換分區大小字節或者百分比device – 交換分區 (默認值 all)type – possible values: free (free swap space, default), pfree (free swap space, in percent), pused (used swap space, in percent), total (total swap space), used (used swap space)示例 key:system.swap.size[,pfree]– 空閒swap百分比

 

老命名格式:

system.swap.free, system.swap.total

system.uname
返回主機相信信息字符串示例值:FreeBSD localhost 4.2-RELEASEFreeBSD 4.2-RELEASE #0: Mon Nov i386

 

Since Zabbix 2.2.0, the value for this item is obtained by using the uname() system call, whereas previously it was obtained by invoking “uname -a” on Unix systems. Hence, the value of this item might differ from the output of “uname -a” and does not include additional information that “uname -a”

system.uptime
系統運行時長(秒)多少秒使用s/uptime來獲取
system.users.num
登陸用戶數量多少用戶agent使用who命令獲取
vfs.dev.read[<device>,<type>,<mode>]
磁盤讀取狀態整數(如果type爲如下): sectors,operations,bytes 浮點數(如果type爲如下): sps, ops,bpsdevice – 磁盤設備 (默認值 “all”1)type – 可選值: sectors, operations, bytes, sps, ops, bps(必須指定, 不同操作系統下不同). sps, ops, bps stand for: sectors, operations, bytes per second, respectively mode – 可選值: avg1 (一分平均, 默認值), avg5(五分內平均), avg15 (15分內平均值). 備註: 只有type爲sps, ops, bps的時候,第三個參數才被支持。不同操作系統的TYPE參數: FreeBSD – bps

 

Linux – sps

OpenBSD – operations

Solaris – bytes

示例key:vfs.dev.read[,operations]老命名方式: io[*]

 

Usage of the type parameters ops, bps and sps on supported platforms used to be limited to 8 devices (7 individual devices and one “all”).

Starting with Zabbix 2.0.1 this limit has been increased to 1024 (1023 individual devices and one for “all”).

Zabbix 1.8.6開始支持LVM Until Zabbix 1.8.6, only relative device names may be used (for example, sda), since 1.8.6 an optional /dev/ prefix may be used (for example, /dev/sda)

vfs.dev.write[<device>,<type>,<mode>]
磁盤寫入狀態整數(如下類型): sectors,operations,bytes 浮點型(如下類型): sps, ops,bpsdevice – 磁盤設備 (默認值 “all”1)type – sectors, operations, bytes, sps, ops, bps (must specify exactly which parameter to use, since defaults are different under various OSes). sps, ops, bps means: sectors, operations, bytes per second respectively   mode – one of avg1 (default),avg5 (average within 5 minutes), avg15. Note: The third parameter is supported only if the type is in: sps, ops, bps.Default values of ‘type’ parameter for different OSes: FreeBSD – bps Linux – sps OpenBSD – operations Solaris – bytes Example: vfs.dev.write[,operations] Old naming: io[*] The type parameters ops, bps and sps on supported platforms used to be limited to 8 devices (7 individual devices and one “all”). Starting with Zabbix 2.0.1 this limit has been increased to 1024 (1023 individual devices and one for “all”). Supports LVM since Zabbix 1.8.6. Until Zabbix 1.8.6, only relative device names may be used (for example, sda), since 1.8.6 optional /dev/ prefix may be used (for example, /dev/sda)
vfs.file.cksum[file]
計算文件校驗File checksum, calculated by algorithm used by UNIX cksumfile – 文件完整路徑例如,返回值: 1938292000例如:

 

vfs.file.cksum[/etc/passwd]

老命名規範: cksum

vfs.file.contents[file,<encoding>]
獲取文本內容Contents of a file or empty string if it is empty or it contains only LF/CR charactersfile – 文件完整路徑例如:vfs.file.contents[/etc/passwd]文件不可以超過64KB.

 

Zabbix agent 2.0開始支持

vfs.file.exists[file]
檢測文件是否存在1 – 文件/硬鏈接/軟連接文件存在 0 – 不存在file – 文件完整路徑例如:vfs.file.exists[/tmp/application.pid]
vfs.file.md5sum[file]
文件MD5校驗碼文件MD5哈希值file – 完整路徑示例返回值:b5052decb577e0fffd622d6ddc017e82 示例:vfs.file.md5sum[/usr/local/etc/zabbix_agentd.conf]

 

1.8.6移除了64MB文件大小的限制

vfs.file.regexp[file,regexp,<encoding>,<start line>,<end line>,<output>]
文件中搜索字符串包含字符串的行,或者爲空file – 文件完整路徑regexp – GNU正則表達encoding – 編碼

 

start line – 從哪一行開始,默認第一行

end line – 從哪一行結束,默認最後一行

output – an optional output formatting template. The \0 escape sequence is replaced with the matched text while an \N(where N=1…9) escape sequence is replaced with Nth matched group (or an empty string if the N exceeds the number of captured groups). 如果 <output> 爲空, 所有包含搜索字符串的行都會被返回

start line和end line從zabbix 2.0開始支持

僅返回首先匹配的行例如:vfs.file.regexp[/etc/passwd,zabbix]

 

vfs.file.regexp[/path/to/some/file,”([0-9]+)$”,,3,5,\1]

vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]

– getting the ID of user zabbix

vfs.file.regmatch[file,regexp,<encoding>,<start line>,<end line>]
文件中搜索字符串0 – 爲找到1 – 找到file – 文件完整路徑regexp – GNU 正則表達式encoding – 編碼

 

start line – 哪行開始,默認第一行

end line – 哪行結束,默認最後一行 上面兩個參數從

2.0版本開始支持。

例如:vfs.file.regmatch[/var/log/app.log,error]
vfs.file.size[file]
文件大小字節file – 完整路徑zabbix必須有可讀此文件的權限例如:vfs.file.size[/var/log/syslog]
vfs.fs.discovery
列出掛載的文件系統Used for low-level discoveryJSON對象從zabbix agent 2.0開始支持
vfs.fs.inode[fs,<mode>]
inodes數量數字fs – 文件系統mode – total (默認), free, used, pfree (空閒百分比), pused (使用百分比)例如:vfs.fs.inode[/,pfree]老命名規則:

 

vfs.fs.inode.free[*], vfs.fs.inode.pfree[*], vfs.fs.inode.total[*]

vfs.fs.size[fs,<mode>]
磁盤空間字節fs – 文件系統mode – total (默認), free, used, pfree (空閒百分比), pused (使用百分比)返回本地文件系統的使用量.例如: vfs.fs.size[/tmp,free]老命名規則: vfs.fs.free[*], vfs.fs.total[*], vfs.fs.used[*], vfs.fs.pfree[*], vfs.fs.pused[*],*是任意掛載點
vm.memory.size[<mode>]
內存大小字節或者百分比mode – total (默認), active, anon, buffers, cached, exec, file, free, inactive, pinned, shared, wired, used, pused, available, available其中挑一個老命名規則: vm.memory.buffers, vm.memory.cached, vm.memory.free, vm.memory.shared, vm.memory.total監控項vm.memory.size[]允許三種類型的參數

 

第一類:包含total – 總內存

第二類: 系統指定內存類型:active, anon, buffers, cached, exec, file, free, inactive,pinned, shared, wired.

第三類:用戶級別,一共使用了多少內存,還有多少內存可用: used, pused, available,pavailable.

web.page.get[host,<path>,<port>]
獲取網頁內容網頁源代碼host – 主機名/域名path – 文件地址,默認/port – 端口,默認80返回空字符串表示失敗.
例如:web.page.get[www.ttlsa.com,/,80]
web.page.perf[host,<path>,<port>]
獲取完全加載網頁消耗的時長host – 主機名/域名path – html地址,默認是/port – 端口,默認80返回0表示失敗. 例如: web.page.perf[www.ttlsa.com,/,80]
web.page.regexp[host,<path>,<port>,<regexp>,<length>,<output>]
在網頁中搜索字符串The matched string, or as specified by the optional<output>parameter. An empty string if no match was found.host – 主機名path – html文件路徑 (默認值 /)port – 端口 (默認80)

 

regexp – GNU正則表達式

length – 返回的最大的字符串數量

output – 輸出格式模板可選項. The \0 escape sequence is replaced with the matched text while an \N(where N=1…9) escape sequence is replaced with Nth matched group (or an empty string if the N exceeds the number of captured groups). If <output> is left empty – the whole line containing the matched text is returned. The output parameter is supported from version 2.2.

失敗則返回空字符 (不匹配).示例:web.page.regexp[www.zabbix.com,index.php,80,OK,2]
vfs.file.time[file,<mode>]
文件時間Unix時間戳.file – 文件路徑mode – one of modify (default, modification time), access – last access time, change – last change time示例:vfs.file.time[/etc/passwd,modify]

 

The file size limit depends on large f

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章