1. 程式人生 > >zabbix 監控項(key)

zabbix 監控項(key)

分鐘 xxxxx ldap cached zabbix用戶 written was not in cpuinfo

Key
描述 返回值 參數 詳細說明
agent.hostname
返回被監控端名稱 字符串 - 返回配置文件中配置的被監控端的名稱
agent.ping
檢測被監控端是否存活 1 - 運行中 其他 - 未運行 - 使用函數 nodata()檢測客戶端是否正在運行
agent.version
zabbix agent版本 字符串 - 例如返回: 1.8.2
kernel.maxfiles
系統支持最大的open files 整數
kernel.maxproc
系統支持最大的進程數量 整數
log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]
監控日誌文件 Log. file - 文件詳細路徑 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>]
Monitoring of log file with log rotation support. Log. file_pattern - 文件絕對路徑 regexp - regular expression describing the required content pattern encoding - code page identifier maxlines - maximum number of new lines per second the agent will send to Zabbix server or proxy. This parameter overrides the value of ‘MaxLinesPerSecond‘ inzabbix_agentd.conf mode - possible values: all (default), skip (skip processing of older data). The mode parameter is supported from version 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 collision. Number of collisions. Integer. if - 網卡
net.if.discovery
列出網卡. 通常用於低級別的discovery. JSON對象 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 - it is not 1 - it is in LISTEN state port - TCP port number 示例: net.tcp.listen[80] linux下得zabbix agent 1.8.4開始支持
net.tcp.port[<ip>,port]
是否可以連接到指定的TCP端口 0 - cannot connect 1 - can connect ip - IP地址(默認是 127.0.0.1) port - 端口 範例: net.tcp.port[,80] 檢測web服務器端口是否運行中 老命名方式: check_port[*]簡單的TCP性能檢測: net.tcp.service.perf[tcp,<ip>,<port>]不同的服務檢測會有不同的響應數據
net.tcp.service[service,<ip>,<port>]
檢測服務是否開啟,並且端口可用 0 - 服務掛了 1 - 服務運行中 service - 如下: ssh, ntp, ldap, smtp, ftp, http, pop, nntp,imap, tcp, https, telnet ip - IP地址 (默認127.0.0.1) port - 端口 (默認情況為標準端口號) 示例key: net.tcp.service[ftp,,45] - 檢測45端口上得FTP是否運行中 Zabbix 1.8.3 支持的版本請使用service.ntp 代替ntp. httpstelnet 服務從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支持 httpstelnet服務
net.udp.listen[port]
檢測UDP端口是否在監聽 0 - it is not 1 - it is in LISTEN state port - udp端口 範例: net.udp.listen[68] linux系統的Zabbix agent version 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 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 version 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 version 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 version 2.0開始支持
system.localtime[<type>]
系統時間. 數字或者字符串 utc - (默認) (00:00:00 UTC, January 1, 1970) local - 本地時間格式 ‘yyyy-mm-dd,hh:mm:ss.nnn,+hh:mm‘ supported from version 2.0開始支持帶參數
system.run[command,<mode>]
在制定的主機上運行命令 文本 command - 命令 mode - wait (默認值, 執行超時時間), nowait (不等待) 最大可用返回512KB數據,包含空白數據。 命令輸出數據必須是文本 例如: system.run[ls -l /] - 列出/的文件和目錄. Note: 啟用這個方法, 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 version 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 信息來自如下文件 - /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 manager format - 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) 如果formatfull, packages are grouped by package managers (each manager on a seperate line beginning with it‘s name in square brackets).如果formatshort, 包不分組,並且都列在一行上. 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-RELEASE FreeBSD 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” prints based on other sources.
system.uptime
系統運行時長(秒) 多少秒 使用s/uptime來獲取
system.users.num
登陸用戶數量 多少用戶 agent使用who命令獲取
vfs.dev.read[<device>,<type>,<mode>]
磁盤讀取狀態 整數(如果type為如下): sectors,operations,bytes 浮點數(如果type為如下): sps, ops,bps device - 磁盤設備 (默認值 “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,bps device - 磁盤設備 (默認值 “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 cksum. file - 文件完整路徑 例如,返回值: 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 characters. file - 文件完整路徑 例如: vfs.file.contents[/etc/passwd] 文件不可以超過64KB. Zabbix agent version 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.file.time[file,<mode>]
文件時間信息 Unix 時間戳. file - 文件完整路徑 mode - modify (默認, 修改時間), access - 最後訪問時間, change - 最後改變時間 例如: vfs.file.time[/etc/passwd,modify] 備註:文件大小有限制
vfs.fs.discovery
列出掛載的文件系統 Used for low-level discovery. JSON對象 從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]
0

zabbix 監控項(key)