In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/zabbix_agent
Agentd.hostname comment
Proxy hostname. Returns the actual value of the agent hostname from the configuration file.
Agentd.ping
Agent availability check uses the function nodata () to check for host unavailability.
Agent.version
The version of the Zabbix agent. Example of return value: 1.8.2
Kernel.maxfiles
Maximum number of open files supported by the operating system
Net.if.discovery
The list of network interfaces is used for low-level discovery.
1. Monitoring key of network card traffic
Default parameters bytes, packets, errors, dropped
Net.if.in [if,], where if represents the Nic interface, in is received, and the default parameter of mode is bytes
Net.of,out [if,] out to issue
Net.if.total [if,] total is the sum of received and outgoing traffic
Example:
The amount of stream received by the net.if.in [eth0,bytes] Nic eth0
Number of packets received by net.if.if [eth0,packets] Nic eth0
Note: for all the default parameters mentioned in the document, do not fill in the parameters and separate them with commas, even if the default parameters are used.
2. Monitor the key of the port
Net.tcp.listen [port] checks whether this TCP port is in the LISTEN state.
Example:
Lqdg Tencent Game 1:net.tcp.listen [9901] .max (# 3)} = 0 is considered a fault if the maximum value obtained in the last three times is 0
Net.tcp.port [, 80] can be used to test the availability of Web servers running on port 80
0-it is not in the LISTEN state, 1-in the LISTEN state
Net.udp.listen [port] checks whether this UDP port is in the LISTEN state. 0-it is not in the LISTEN state, 1-in the LISTEN state
Net.tcp.listen [, port] checks if TCP can be connected to the port number, IP-IP address (default is 127.0.0.1) 0-cannot be connected, 1-can be connected, and net.tcp.port [, 80] can be used to test the availability of Web servers running on port 80.
Http://www.ttlsa.com/zabbix/zabbix-simple-checks/
Net.tcp.listen [service,port] checks whether the service is running and accepts TCP connections, service-ssh,ntp,ldap,smtp,ftp,http,pop,nntp,imap,tcp,https,telnet,IP-IP address (default is 127.0.0.1) 0-service is interrupted, 1-service is running
Example:
Net.tcp.service [ftp, 45]-can be used to test the availability of the FTP server on TCP port 45.
Note that these checks may generate additional messages in the system daemon log file (SMTP and SSH sessions are usually being logged).
Checking encryption protocols (such as IMAP on port 993 or POP on port 995) is not currently supported. As a workaround, use net.tcp.port to perform these checks.
Currently, Windows agents are not supported to check LDAP and HTTPS.
Net.tcp.service.perf [service,] net.tcp.service.perf [ssh] checks the performance of the service-it can be used to test the speed of the initial response of the SSH server. For simple TCP performance testing, use net.tcp.service.perf [tcp,]
Note that these checks may result in other messages in the system daemon log file (usually SMTP and SSH sessions are logged).
Services-ssh,ntp,ldap,smtp,ftp,http,pop,nntp,imap,tcp,https,telnet
Checking encryption protocols (such as IMAP on port 993 or POP on port 995) is not currently supported. As a workaround, use net.tcp.service.perf [tcp,] to check as follows.
Currently, Windows agents are not supported to check LDAP and HTTPS.
3. Monitor the key of the process
Proc.mem [,]
The memory usage process is in bytes. Integer number
Name-process name (default is all processes)
User name (default is all users)
Mode-possible values:
Avg,max,min,sum (default)
Cmdline-filter by command line (it is a regular expression)
Sample key:
Proc.mem [, root]-memory used by all processes running under the "root" user
Proc.mem [zabbix_server,zabbix]-memory used by all zabbix_server processes running under the zabbix user
Proc.mem [, oracle, max,oracleZABBIX]-under the oracleZABBIX command line of oracleZABBIX, the memory usage of the process running under oracleZABBIX with the most memory
Note: when multiple processes use shared memory, the sum of memory used by processes can result in large unrealistic values.
Proc.num [,]
Number of processes. Integer number
Name-process name (default is all processes)
User-user name (default is all users)
Status-possible values: all (default), run,sleep,zomb
Cmdline-
Sample key:
Proc.num [, mysql]-number of processes running under the mysql user
Proc.num [apache2,www-data]-number of apache2 processes running under www data user
Proc.num [, oracle,sleep, oracleZABBIX]-the number of sleep processes running under oracle running oracleZABBIX under the command line of oracleZABBIX
On Windows, only name and user parameters are supported.
Kernel.maxfiles
The maximum number of open files supported by the operating system. Integer number
Kernel.maxproc
The maximum number of processes supported by the operating system.
4. Monitor the key of CPU and memory
System.cpu.load [,]
CPU load. Float
Cpu-possible values:
All (default), percpu (total load divided by online CPU)
Mode-possible values:
Avg1 (one minute average, default), avg5 (5 minute average), avg15 (15 minute average)
Sample key:
System.cpu.load [, avg5]
Old naming: system.cpu.loadX has been supported since Zabbix 2.0.0
Percpu parameter.
System.cpu.num []
Number of CPU. Integer number
Type-possible values:
Online (default), maximum
Online (default), maximum sample key:
System.cpu.num
System.cpu.switch
The number of context switches. Integer number
System.cpu.util [,]
CPU utilization fluctuates as a percentage
Cpu-CPU number (default is all CPU)
Type-possible values:
Idle, good, user (default), system (Windows default), iowait, interrupt, softirq, steal
Mode-possible values:
Avg1 (average for one minute, default), avg5 (average for 5 minutes), avg15 (average for 15 minutes)
Sample key:
System.cpu.util [0,user,avg5]
Vm.memory.size []
Memory size (in bytes) or as a percentage. Integer-byte
Integer-byte
Floating point number-percentage
Mode-one (default), active, anon, buffer, cache, exec, file, idle, inactive, fixed, shared, wired, used, pused, available, available
Item vm.memory.size [] accepts three types of parameters.
The first category includes the total amount of memory.
The second category contains a platform-specific memory type: active,anon,buffers,cached,exec,file,free,inactive,pinned,shared,wired.
The third category is how much memory is used and provides user-level estimates: usage, pused, available, pavailable.
System.swap.in [,]
Swap statistics (from device to memory). Integer number
Devices-Devices used for switching (default is all)
Type-possible values:
Count (number of swaps), sectors (swapped sectors), pages (swapped pages). For more information about default values, see platform support.
Device-device used for swapping (default is all)
Type-possible values:
Count (number of swapins), sectors (sectors swapped in), pages (pages swapped in). Seesupported by platform for details on defaults.
Example key:
System.swap.in [, pages]
The source of this information is:
Linux 2.4:
/ proc/swaps, / proc/partitions, / proc/stat
Linux 2.6:
/ proc/swaps, / proc/diskstats, / proc/vmstat
System.swap.out [,]
Swap statistics (from memory to device). Integer number
Device-device used for swapping (default is all)
Type-possible values:
Count (number of swapouts), sectors (sectors swapped out), pages (pages swapped out). See supported by platform for details on defaults.
Example key:
System.swap.out [, pages]
The source of this information is:
Linux 2.4:
/ proc/swaps, / proc/partitions, / proc/stat
Linux 2.6:
/ proc/swaps, / proc/diskstats, / proc/vmstat
System.swap.size [,]
The size of the swap space in bytes or the percentage (total). String
Device-device used for swapping (default is all)
Type-possible values:
Free (free swap space, default), pfree (free swap space, percentage), pused (use swap space, percentage), total (total swap space), used (use swap space)
Example key:
System.swap.size [, pfree]-free swap space percentage
If no device is specified, the Zabbix agent will only consider swapping devices (files) and physical memory will be ignored. For example, on Solaris systems, the swap-s command contains a portion of physical memory and swapping devices (unlike swap-l).
4. Monitoring system information
System.hw.macaddr [,]
List the MAC address. String
Interface-all (default) or regular expression
Format-full (default) or short
Format-full (default) or short example: system.hw.macaddr ["eth0 $", full]
[eth0] 00:11:22:33:44:55
Lists the MAC address of the interface whose name matches the given interface regexp (all lists of all interfaces).
If the format is specified as short, the interface name and the same MAC address are not listed.
System.boottime
System startup time. Integer (Unix timestamp)
System.uptime
System uptime (seconds) integer
System.localtime []
System time. Integers-and typeas utc strings-and type as local
Utc-(default) time since Epoch (00:00:00 UTC on January 1st, 1970), in seconds.
Local-'yyyy-mm-dd,hh:mm:ss.nnn,+ hh:mm' format
Parameters for this project supported by time version 2.0.
Example:
System.localtime [local]-use this key to create a project and then use it to display the host time in the clock screen element.
System.run [command,]
Run the specified command on the host
The text result of the command
1-with modeasnowait (regardless of the command result)
Command-Command execution
Mode-wait (default, wait for execution to finish), nowait (don't wait)
You can return up to 512KB data, including truncated trailing spaces.
To be handled correctly, the output of the command must be text.
Example:
System.run [ls-l /]-A detailed list of files for the root directory.
Note: to enable this feature, the agent profile must have the option EnableRemoteCommands = 1.
See also: command execution.
System.users.num
Number of logged-in users is an integer
System.uname
Detailed host information.
System.sw.os []
Operating system information. String
Information-complete (default), short or one of the names
Example: system.sw.os [short]
Ubuntu 2.6.35-28.50-generic 2.6.35.11
The information comes from (please note that not all
All files exist in the distribution): [full]-/ proc / version
[short]-/ proc / version_signature
[name]-
System.sw.packages [,]
A list of installed packages. Text
Package-all (default) or regular expression
Manager-all (default) or package manager
Format-complete (default) or short
Example: system.sw.packages [mini,dpkg,short]
Python-minimal,python2.6-minimal,ubuntu-minimal
The names of the lists (in alphabetical order) match the given package regexp (list them all).
Supported package managers:
Manager (execute command)
Dpkg (dpkg-- get-choices)
Pkgtool (ls / var / log / packages)
Rpm (rpm-qa)
Pacman (pacman-Q)
If the format is specified as full, through the package manager (each manager begins with square brackets on a separate line).
If the format is specified as short, the package is not grouped and is listed side by line.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.