Simple checks are normally used for remote agent-less checks of services.
Note that Zabbix agent is not needed for simple checks. Zabbix server/proxy is responsible for the processing of simple checks (making external connections, etc).
Examples of using simple checks:
net.tcp.service[ftp,,155]
net.tcp.service[http]
net.tcp.service.perf[http,,8080]
net.udp.service.perf[ntp]
User name and Password fields in simple check item configuration are used for VMware monitoring items; ignored otherwise.
The item keys are listed without optional parameters and additional information. Click on the item key to see the full details.
See also VMware monitoring item keys.
Item key | Description |
---|---|
icmpping | The host accessibility by ICMP ping. |
icmppingloss | The percentage of lost packets. |
icmppingsec | The ICMP ping response time. |
net.tcp.service | Checks if a service is running and accepting TCP connections. |
net.tcp.service.perf | Checks the performance of a TCP service. |
net.udp.service | Checks if a service is running and responding to UDP requests. |
net.udp.service.perf | Checks the performance of a UDP service. |
The host accessibility by ICMP ping.
Return value: 0 - ICMP ping fails; 1 - ICMP ping successful.
Parameters:
See also the table of default values.
Example:
The percentage of lost packets.
Return value: Float.
Parameters:
See also the table of default values.
The ICMP ping response time (in seconds).
Return value: Float.
Parameters:
Comments:
Checks if a service is running and accepting TCP connections.
Return value: 0 - the service is down; 1 - the service is running.
Parameters:
Comments:
net.tcp.service[tcp,<ip>,port]
for checks like these.Example:
net.tcp.service[ftp,,45] #This item can be used to test the availability of FTP server on TCP port 45.
Checks the performance of a TCP service.
Return value: Float: 0.000000 - the service is down; seconds - the number of seconds spent while connecting to the service.
Parameters:
Comments:
net.tcp.service[tcp,<ip>,port]
for checks like these.Example:
net.tcp.service.perf[ssh] #This item can be used to test the speed of initial response from SSH server.
Checks if a service is running and responding to UDP requests.
Return value: 0 - the service is down; 1 - the service is running.
Parameters:
Example:
net.udp.service[ntp,,45] #This item can be used to test the availability of NTP service on UDP port 45.
Checks the performance of a UDP service.
Return value: Float: 0.000000 - the service is down; seconds - the number of seconds spent waiting for response from the service.
Parameters:
Example:
For SourceIP support in LDAP simple checks (e.g. net.tcp.service[ldap]
), OpenLDAP version 2.6.1 or above is required.
Zabbix will not process a simple check longer than the Timeout seconds defined in the Zabbix server/proxy configuration file.
Zabbix uses an external utility fping to process ICMP pings (icmpping, icmppingloss, icmppingsec).
fping is not included with Zabbix and needs to be installed separately:
Various Unix-based platforms have the fping package in their default repositories, but it is not pre-installed. In this case you can use the package manager to install fping.
Zabbix provides fping packages for RHEL. Please note that these packages are provided without official support.
fping can also be compiled from source.
Specify fping location in the FpingLocation parameter of Zabbix server/proxy configuration file (or Fping6Location parameter for using IPv6 addresses).
fping should be executable by the user Zabbix server/proxy run as and this user should have sufficient rights.
See also: Known issues for processing simple checks with fping versions below 3.10.
Defaults, limits and description of values for ICMP check parameters:
Parameter | Unit | Description | Fping's flag | Defaults set by | Allowed limits by Zabbix |
||
---|---|---|---|---|---|---|---|
fping | Zabbix | min | max | ||||
packets | number | number of request packets sent to a target | -C | 3 | 1 | 10000 | |
interval | milliseconds | time to wait between successive packets to an individual target | -p | 1000 | 20 | unlimited | |
size | bytes | packet size in bytes 56 bytes on x86, 68 bytes on x86_64 |
-b | 56 or 68 | 24 | 65507 | |
timeout | milliseconds | fping v3.x - timeout to wait after last packet sent, affected by -C flag fping v4.x - individual timeout for each packet |
-t | fping v3.x - 500 fping v4.x and newer - inherited from -p flag, but not more than 2000 |
50 | unlimited |
The defaults may differ slightly depending on the platform and version.
In addition, Zabbix uses fping options -i interval ms (do not mix up with the item parameter interval mentioned in the table above, which corresponds to fping option -p) and -S source IP address (or -I in older fping versions). These options are auto-detected by running checks with different option combinations. Zabbix tries to detect the minimal value in milliseconds that fping allows to use with -i by trying 3 values: 0, 1 and 10. The value that first succeeds is then used for subsequent ICMP checks. This process is done by each ICMP pinger process individually.
Auto-detected fping options are invalidated every hour and detected again on the next attempt to perform ICMP check. Set DebugLevel>=4 in order to view details of this process in the server or proxy log file.
Zabbix writes IP addresses to be checked by any of the three icmpping* keys to a temporary file, which is then passed to fping. If items have different key parameters, only the ones with identical key parameters are written to a single file. All IP addresses written to the single file will be checked by fping in parallel, so Zabbix ICMP pinger process will spend fixed amount of time disregarding the number of IP addresses in the file.