Zabbix agent type comes with a key

Source: Internet
Author: User

Zabbix Server side through the communication with the Zabbix agent to obtain the client server data, the agent is divided into two versions, in the configuration host we can see one is the agent, the other is the agent (active).

Agent:zabbix Server begs the Zabbix agent for data.
Agent (Active): Zabbix agent submits data to Zabbix server.


Monitoring Items Keys List

The following table is a list of all the keys supported by the Zabbix agent, and the first thing to think about is whether the Zabbix agent already has the relevant key present, rather than writing the script to get the key.

Agent.hostnameReturns the monitored End name (string)

agent.pingDetects if the monitored side is alive (1: Running other: not running)-using function nodata () detectionwhether the client is running

agent.versionZabbix Agent Version string

Kernel.maxfilesThe system supports the largest open files integers

Kernel.maxprocMaximum number of processes supported by the system integer

Log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]Monitoring log FilesFILE-Verbose path regexp-Regular encoding-coded Maxlines-zabbix agent tothe maximum number of rows that the server or proxy sends. This parameter overrides the ' Maxlinespersecond ' mode in the config file zabbxi_agentd.conf-the optional value: All (default), skip (skip processing old data). The mode parameter supports output-selectable from version 2.0, Output format template. Example: 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.file_pattern-file absolute path net.dns[<ip>,zone,<type>,<timeout& Gt;,<count>] detects if the DNS service is turned on 0–dns hangs the IP address of the IP-DNS server in 1-dns run (leave blank for local DNS, ignored onwindows) zone-the domain name to be tested-type-record class Type (default is SOA), type selectable value: Any, A, NS, CNAME, MB, MG, MR, PTR, MD, MF, MX, SOA, NULL, WKS (exceptwindows), HINFO, MINFO, TXT, SRV srvTimeout (ignored on Windows) – Time-out (default 1 seconds) count (ignored on Windows) – Retry count (default 2) example key:net.dns[8.8.8.8,zabbix.com,mx,2,1]



Net.dns.record[<ip>,zone,<type>,<timeout>,<count>] Executes a DNS query to obtain DNS query data. The IP address of the IP-DNS server ( Leave blank means use local DNS, ignored on Windows zone-the domain name to be tested type-record type (default SOA, optional value same as Net.dns) timeout (ignored on Windows) – timeout (default 1 seconds) Coun T (ignored on Windows) – Retry count (default 2) example key:net.dns.record[8.8.8.8,ttlsa.com,mx,2,1]



Net.if.collisions[if]out-of-window collision. Number of collisions. Integer.if-Nic



Net.if.discovery lists the NIC. Typically used for low-level Discovery.json objects



Net.if.in[if,<mode>] Nic ingress traffic integer. If-network card name mode-available values: bytes-bytes (default) packets-Number of packages errors-number of errors dropped-example of packet loss Keys:ne T.if.in[eth0,errors] Net.if.in[eth0]

Net.if.out[if,<mode>] Network card egress flow (parameters see net.if.in)

Net.if.total[if,<mode>] The sum of the NIC's In/out traffic (parameters see net.if.in)



Net.tcp.listen[port] Detect if the port is turned on 0– (not listen) 1–in Listen Stateport example: net.tcp.listen[80]



Net.tcp.port[<ip>,port] can connect to the specified TCP port 0–cannot connect 1–can Connect IP-IP address (default is 127.0.0.1) port-port example: N ET.TCP.PORT[,80] detects if the Web server port is running



Net.tcp.service[service,<ip>,<port>] Detect if the service is on and the port is available 0 – the service hangs up in the service run in the services-as follows: SSH, NTP, LDAP, SMTP, FT P, HTTP, pop, nntp,imap, TCP, HTTPS, Telnet ip-ip address (default 127.0.0.1) port-port (default is standard port number) example Key:net.tcp.service[ftp ,, 45]

Net.tcp.service.perf[service,<ip>,<port>] Detection of server performance 0– service hangs; seconds– link to server port consumes time service-as follows: SSH, NTP, LDAP, SMTP, FTP, HTTP, pop, nntp,imap, TCP, HTTPS, TELNETIP-IP address (default 127.0. 0.1) Port-port (default to standard port number) example KEY:NET.TCP.SERVICE.PERF[SSH]

Net.udp.listen[port]



Proc.mem[<name>,<user>,<mode>,<cmdline>] The amount of memory memory usage (in bytes) consumed by the user process. Name-process name (default value "All Processes ") User-username (default" all users ") mode-selectable values: AVG, max, min, sum (default) cmdline-command-line filtering (regular expression) example Keys:proc.mem[,root]–root process consumes How much memory proc.mem[zabbix_Server,zabbix]–zabbix How much memory is used by the user running Zabbix_serverProc.mem[,oracle,max,oraclezabbix]



Proc.num[<name>,<user>,<state>,<cmdline>] Number of processes in certain States of a user process number name-process name (default "All Processes") User-username (default ' all users ') state-available values: All (default), Run,sleep, zombcmdline-command-line filtering (regular expression) example keys:proc.num[,mysql]–mysql Number of processes the user is runningProc.num[apache2,www-data]–www-data How many apache2 processes are running Proc.num[,oracle,sleep,oraclezabbix] Note: Windows system only supports name and user two parameters



SENSOR[DEVICE,SENSOR,&LT;MODE&GT;] Read hardware sensor device-device name sensors-sensor name mode-selectable values: AVG, max, min example key:sensor[w83781d-i2c- 0-2D,TEMP1] Prior to Zabbix 1.8.4, the SENSOR[TEMP1] format was used. On Linux 2.6+, read/sys/class/hwmon. On OpenBSD, read hw.sensors MIB. Example Keys:sensor[cpu0,temp0]–cpu0 temperature sensor[cpu[0-2]$,temp,avg]–cpu average temperature Zabbix 1.8.4 started to support OpenBSD

System.boottime the timestamp integer of the system startup. Unix Timestamp

System.cpu.intr Device Interrupt Integer

SYSTEM.CPU.LOAD[&LT;CPU&GT;,&LT;MODE&GT;]CPU load floating point CPU-available values: All (Default), PERCPU (load of all online CPUs) mode-Available values: AVG1 (1 minutes default), Avg5 ( 5-minute average), Avg15 (15-minute average) example Key:system.cpu.load[,avg5]

Number of SYSTEM.CPU.NUM[&LT;TYPE&GT;]CPU processors type-available values: Online (default), max example: System.cpu.num

System.cpu.switches Context Exchange Interchange number old name: System[switches]

SYSTEM.CPU.UTIL[&LT;CPU&GT;,&LT;TYPE&GT;,&LT;MODE&GT;]CPU Utilization percent CPU-CPU Quantity (default is all CPUs) type-available values: Idle, nice, user (default), System (Windows system default), Iowait, Interrupt, Softirq,stealmode-Available values: AVG1 (one-minute average, default), Avg5 (5-minute average, avg15 (15-minute average) example Key:sys TEM.CPU.UTIL[0,USER,AVG5]

System.hostname[<type>] returns the hostname string type (used only forWindows systems) – Available values: NetBIOS (default) or host

System.hw.chassis[<info>] Returns the rack information string info-full (default), model, serial, type, or vendor for example: System.hw.chassishewlett-packard HP Pro 3010 Small Form Factor PC czxxxxxxxx Desktop] Note: To root, because this information is read from memory.

System.hw.cpu[<cpu>,<info>] Returns the number of CPU information characters/digits CPU-CPU or all (default) info-full (default), Curfreq, maxfreq, model Or vendor for example: System.hw.cpu[0,vendor] authenticamd from/proc/cpuinfo,/sys/devices/system/cpu/[cpunum]/cpufreq/cpuinfo_ Max_freq get information. If the number of CPUs and Curfreq or maxfreq are specified, the value (HZ) will be returned.

SYSTEM.HW.DEVICES[&LT;TYPE&GT;] List PCI or USB text value TYPE-PCI (default) or USB example: System.hw.devices[pci] 00:00.0 Host Bridge: Advanced Micro Devices [AMD] RS780 Host Bridge [...] return LSPCI or LSUSB (without parameters)

System.hw.macaddr[<interface>,<format>] Lists the MAC address string Interface-all (default) or the regular expression format-full (default), short example: system.hw.macaddr["eth0$", full] [eth0] 00:11:22:33:44:55 list specified interface MAC address if format is specified as Short,mac address, it will be ignored.

System.localtime[<type>] system time. Numbers or strings

System.run[command,<mode>] Run command text commands on the established host-command mode-wait (default, Execution time-out), nowait (do not wait) maximum usable return 512KB data, including blank data. The command output data must be text such as: system.run[ls-l/]– lists/files and directories. Note: To enable this method, the agent configuration file must be configured with the Enableremotecommands=1 option

System.stat[resource,<type>] Virtual memory status Digital ENT



Example of System.sw.arch return software information string: System.sw.arch i686



System.sw.os[<info>] Returns the system Information string info-full (default), short, name example: System.sw.os[short] Ubuntu 2.6.35-28.50- Generic 2.6.35.11 information from the following files:/proc/version [short]/proc/version_signature [Name]/etc/issue.net



SYSTEM.SW.PACKAGES[&LT;PACKAGE&GT;,&LT;MANAGER&GT;,&LT;FORMAT&GT;] Installed software list text value Package-all (default) or regular expression Manager-all ( Default) or a package managerformat-full (default), short example: System.sw.packages[mini,dpkg,short]



System.swap.in[<device>,<type>] Swap partition in (disk swap to memory) digital device-swap partition device (default all) type-optional value: Count (swapins quantity), Sectors (sectors swapped in), pages (pages swapped in). Example Key:system.swap.in[,pages] Data acquisition from: Linux 2.4:/proc/swaps,/proc/p Artitions,/proc/stat Linux 2.6:/proc/swaps,/proc/diskstats,/proc/vmstat



System.swap.out[<device>,<type>]swap out (f memory to disk). Digital Device-swap Device (default All) Type-count (number of swapouts) , sectors (sectors swapped out), pages (pages swapped out). Example Key:system.swap.out[,pages] Data acquisition from: Linux 2.4:/proc/swaps,/proc/partitions,/proc/stat Linux 2.6:/proc/swap S,/proc/diskstats,/proc/vmstat



System.swap.size[<device>,<type>] Swap partition size byte or Percent device-swap partition (default all) Type-free (free swap space, defaults), Pfree (free swap space, in percent), pused (used swap space, in percent), total (total swap space), used (used swap space) Example system.swap.size[,pfree]– Idle swap percentage



System.uname returns the host trust information. String



System.uptime system Runtime (seconds) How many seconds to use S/uptime to get



System.users.num number of logged-on users how many user agents use the WHO command to obtain



VFS.DEV.READ[&LT;DEVICE&GT;,&LT;TYPE&GT;,&LT;MODE&GT;] Disk read status integer, floating point number (if type is as follows) device-disk device (default "all") type-optional value:  Sectors, operations, Bytes, SPS, OPS, bps (must be specified, different under different operating systems).  SPS, OPS, bps stand for:sectors, operations, bytes per second, Respectivelymode-selectable values: AVG1, Avg5, Avg15. Note: The third parameter is supported only when the type is SPS, OPS, bps. Type parameters for different operating systems: freebsd–bps Linux–sps openbsd–operations solaris–bytes Example Key:vfs.dev.read[,operations]



VFS.DEV.WRITE[&LT;DEVICE&GT;,&LT;TYPE&GT;,&LT;MODE&GT;] Disk write status integer, device-disk device (default all) Type-sectors, operations, Bytes, SPS, OPS, Bpsmode-one of AVG1 (default), Avg5, avg15.example:vfs.dev.write[,operations] Old Naming:io
Vfs.file.cksum[file] Calculate file checksum UNIX cksum.file-File full path



Vfs.file.contents[file,<encoding>] Gets the text content if empty, only returns LF/CR Characters.file-file full path for example: vfs.file.contents[/etc/ PASSWD] file can not exceed 64KB.



Vfs.file.exists[file] Detecting the existence of a file 1 – presence 0– does not exist file-full path



Vfs.file.md5sum[file] File MD5 checksum files MD5 hash value file-full path

Vfs.file.regexp[file,regexp,<encoding>,<start line>,<end Line>,<output>] The search string in the file contains the line of the string, or null file-full path REGEXP-GNU Regular expression encoding-encode start line-starting from which line, default first row end lines-%??? Eo*?j7?aq?jl?jk??? /?

Vfs.file.regmatch[file,regexp,<encoding>,<start line>,<end Line>] search string in file 0– not found-- File full path REGEXP-GNU regular expression encoding-encode start line-which row starts, default first line end lines-which line ends, default last row for example: Vfs.file.regmatch[/var/log/app.log,e Rror]



Vfs.file.size[file] File size byte Fzabbix must have permission to read this file



Vfs.file.time[file,<mode>] File time information Unix timestamp. Mode-modify (default, Modified time), access– last access time, change– last change time for example: Vfs.file.tim E[/etc/passwd,modify] Note: File size is limited

Vfs.fs.discovery lists the mounted file system for LLD. JSON object



Vfs.fs.inode[fs,<mode>]inodes Number of Digital FS-file system Mode-total (default), free, used, pfree (idle percent), pused (percent used) for example: Vfs.fs.inod E[/,pfree]



VFS.FS.SIZE[FS,&LT;MODE&GT;] disk space, returns the local file system usage byte FS-file system Mode-total (default), free, used, pfree (idle percent), pused (Percent used). For example: V Fs.fs.size[/tmp,free]



Vm.memory.size[<mode>] memory size byte or percent mode-total (default), active, anon, buffers, cached, exec, file, free, inactive, pinned , GKFX, Wired, used, pused, availablemonitoring item vm.memory.size[] allows three types of parameters:First Class: Contains total-General Memory Class II: System-specified memory type: Active, anon, buffers, cached, exec, file, free, inactive,pinned, GKFX, Wired. Class III: User level, how much memory is used altogether, and how much memory is available: Used, pused, available,pavailable.



Web.page.get[host,<path>,<port>] Get page content pageSource CodeHost-hostname/domain name path-file address, default/port-port, default 80 returns an empty string indicating failure. Example: web.page.get[



Web.page.perf[host,<path>,<port>] Gets the full load of the Web page consumed by the length of the second, returning 0 indicates failure of host-hostname/domain path-html address, default is/port-port, default 80



Web.page.regexp[host,<path>,<port>,<regexp>,<length>,<output>] Searching for a string in a Web page fails to return a null character ( mismatch). Host-hostname path-html file path (default/) port-ports (default) REGEXP-GNU regular expression length-the maximum number of strings returned

Output-The format template can be selected.

Zabbix agent type comes with a key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.