1 不同平台支持的监控项

下表列出了不同平台支持的Zabbix agent监控项目:

  • 标记为 “X” 的监控项代表支持, 标记为“-” 的监控项代表不支持.

  • 如果监控项标记为 “?”, 不确定是否被支持.

  • 如果监控项标记为 “r”, 代表该监控项需要 root 权限.

  • 中括号 <like_this>中的参数为可选项.

只支持Windows Zabbix agent items 不在该表中.

NetBSD
OpenBSD▼▼
Mac OS X▼▼
Tru64▼▼
AIX▼▼
HP-UX▼▼
Solaris▼▼
FreeBSD▼▼
Linux 2.6 (and later)▼▼
Linux 2.4▼▼
Windows▼▼
Parameter / system▼▼
▼▼1234567891011
agent.hostnameXXXXXXXXXXX
agent.pingXXXXXXXXXXX
agent.versionXXXXXXXXXXX
kernel.maxfiles-XXX---?XXX
kernel.maxproc--XXX--?XXX
log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]XXXXXXXXXXX
logrt[file_format,<regexp>,<encoding>,<maxlines>,<mode>,<output>]XXXXXXXXXXX
net.dns[<ip>,zone,<type>,<timeout>,<count>]XXXXXXXXXXX
net.dns.record[<ip>,zone,<type>,<timeout>,<count>]XXXXXXXXXXX
net.if.collisions[if]-XXXX-X-XXr
net.if.discoveryXXXXXXX--XX
net.if.in[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXXX-X--XXr
net.if.out[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXX--X-----
net.if.total[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXX--X-----
net.tcp.listen[port]XXXXX---X--
net.tcp.port[<ip>,port]XXXXXXXXXXX
net.tcp.service[service,<ip>,<port>]XXXXXXXXXXX
net.tcp.service.perf[service,<ip>,<port>]XXXXXXXXXXX
net.udp.listen[port]-XXXX---X--
net.udp.service[service,<ip>,<port>]XXXXXXXXXXX
net.udp.service.perf[service,<ip>,<port>]XXXXXXXXXXX
1234567891011
proc.cpu.util[<name>,<user>,<type>,<cmdline>,<mode>,<zone>]-XX-X 3------
typetotal (default)-XX-X------
user-XX-X------
system-XX-X------
modeavg1 (default)-XX-X------
avg5-XX-X------
avg15-XX-X------
zonecurrent (default)----X------
all----X------
proc.mem[<name>,<user>,<mode>,<cmdline><memtype>]-XXXX 3-XX-XX
modesum (default)-XXXX-XX-XX
avg-XXXX-XX-XX
max-XXXX-XX-XX
min-XXXX-XX-XX
memtype-XXXX-X----
proc.num[<name>,<user>,<state>,<cmdline>]XXXXX 3XXX-XX
stateall (default)-XXXXXXX-XX
sleep-XXXXXXX-XX
zomb-XXXXXXX-XX
run-XXXXXXX-XX
cmdline-XXXXXXX-XX
sensor[device,sensor,<mode>]-XX------X-
system.boottime-XXXX---XXX
system.cpu.discoveryXXXXXXXXXXX
system.cpu.intr-XXXX-X--XX
system.cpu.load[<cpu>,<mode>]XXXXXXXXXXX
cpuall (default)XXXXXXXXXXX
percpuXXXXXXX-XXX
modeavg1 (default)XXXXXXXXXXX
avg5XXXXXXXXXXX
avg15XXXXXXXXXXX
system.cpu.num[<type>]XXXXXXX-XXX
typeonline (default)XXXXXXX-XXX
max-XXXX---X--
system.cpu.switches-XXXX-X--XX
system.cpu.util[<cpu>,<type>,<mode>]XXXXXXXX-XX
typeuser (default)-XXXXXXX-XX
nice-XXX-X-X-XX
idle-XXXXXXX-XX
systemXXXXXXXX-XX
iowait--X-X-X----
interrupt--XX-----X-
softirq--X--------
steal--X--------
guest--X--------
guest_nice--X--------
modeavg1 (default)XXXXXXXX-XX
avg5XXXXXXX--XX
avg15XXXXXXX--XX
1234567891011
system.hostname[<type>]XXXXXXXXXXX
system.hw.chassis[<info>]-XX--------
system.hw.cpu[<cpu>,<info>]-XX--------
system.hw.devices[<type>]-XX--------
system.hw.macaddr[<interface>,<format>]-XX--------
system.localtime[<type>]XXXXXXXXXXX
typeutc (default)XXXXXXXXXXX
localXXXXXXXXXXX
system.run[command,<mode>]XXXXXXXXXXX
modewait (default)XXXXXXXXXXX
nowaitXXXXXXXXXXX
system.stat[resource,<type>]------X----
system.sw.archXXXXXXXXXXX
system.sw.os[<info>]-XX--------
system.sw.packages[<package>,<manager>,<format>]-XX--------
system.swap.in[<device>,<type>]
(specifying a device is only supported under Linux)
-XX-X----X-
type
(pages will only work if
device was not specified)
count (default under all except Linux)-XX-X----X-
sectors-XX--------
pages (default under Linux)-XX-X----X-
system.swap.out[<device>,<type>]
(specifying a device is only supported under Linux)
-XX-X----X-
type
(pages will only work if
device was not specified)
count (default under all except Linux)-XX-X----X-
sectors-XX--------
pages (default under Linux)-XX-X----X-
system.swap.size[<device>,<type>]
(specifying a device is only supported under FreeBSD, for other platforms must be empty or “all”)
XXXXX-XX-X-
typefree (default)XXXXX-XX-X-
totalXXXXX-XX-X-
usedXXXXX-XX-X-
pfreeXXXXX-XX-X-
pused-XXXX-XX-X-
system.unameXXXXXXXXXXX
system.uptimeXXXXX-X?XXX
system.users.num-XXXXXXXXXX
1234567891011
vfs.dev.read[<device>,<type>,<mode>]-XXXX-X--X-
type

(defaults are different
under various OSes)
sectors-XX--------
operations-XXXX-X--X-
bytes---XX-X--X-
sps-XX--------
ops-XXX-------
bps---X-------
mode
(compatible only with
type in: sps, ops, bps)
avg1 (default)-XXX-------
avg5-XXX-------
avg15-XXX-------
vfs.dev.write[<device>,<type>,<mode>]-XXXX-X--X-
type

(defaults are different
under various OSes)
sectors-XX--------
operations-XXXX-X--X-
bytes---XX-X--X-
sps-XX--------
ops-XXX-------
bps---X-------
mode
(compatible only with
type in: sps, ops, bps)
avg1 (default)-XXX-------
avg5-XXX-------
avg15-XXX-------
vfs.file.cksum[file]XXXXXXXXXXX
vfs.file.contents[file,<encoding>]XXXXXXXXXXX
vfs.file.exists[file]XXXXXXXXXXX
vfs.file.md5sum[file]XXXXXXXXXXX
vfs.file.regexp[file,regexp,<encoding>,<output>]XXXXXXXXXXX
vfs.file.regmatch[file,regexp,<encoding>]XXXXXXXXXXX
vfs.file.size[file]XXXXXXXXXXX
1234567891011
vfs.file.time[file,<mode>]XXXXXXXXXXX
modemodify (default)XXXXXXXXXXX
accessXXXXXXXXXXX
changeXXXXXXXXXXX
vfs.fs.discoveryXXXXXXX-XXX
vfs.fs.inode[fs,<mode>]-XXXXXXXXXX
modetotal (default)-XXXXXXXXXX
free-XXXXXXXXXX
used-XXXXXXXXXX
pfree-XXXXXXXXXX
pused-XXXXXXXXXX
vfs.fs.size[fs,<mode>]XXXXXXXXXXX
modetotal (default)XXXXXXXXXXX
freeXXXXXXXXXXX
usedXXXXXXXXXXX
pfreeXXXXXXXXXXX
pusedXXXXXXXXXXX
vm.memory.size[<mode>]XXXXXXXXXXX
modetotal (default)XXXXXXXXXXX
active---X-X--XXX
anon----------X
buffers-XXX-----XX
cachedXXXX--X--XX
exec----------X
file----------X
freeXXXXXXXXXXX
inactive---X----XXX
pinned------X----
shared-X-X-----XX
wired---X----XXX
usedXXXXXXXXXXX
pusedXXXXXXXXXXX
availableXXXXXXXXXXX
pavailableXXXXXXXXXXX
web.page.get[host,<path>,<port>]XXXXXXXXXXX
web.page.perf[host,<path>,<port>]XXXXXXXXXXX
web.page.regexp[host,<path>,<port>,<regexp>,<length>,<output>]XXXXXXXXXXX
1234567891011

另请参见vm.memory.size参数说明.

脚注

1 net.if.in,net.if.out和net.if.total项目不提供环回接口的统计信息 (e.g. lo0).

2 这些项目的这些值不支持Solaris系统上的环回接口(包括Solaris 10 6/06)作为字节,错误和利用率统计信息不会由内核存储和/或报告。 但是,如果您通过net snmp监视Solaris系统,返回值可能是 net-snmp携带遗留代码,但是,如果要通过net-snmp监视Solaris系统,则可能会返回net-snmp携带从1997年开始的cmu-snmp的旧代码,即在读取接口统计信息字节值之后,返回后分组计数器(它存在于环回接口上)乘以任意值308。 这假设分组的平均长度为308个八位字节,这是非常粗略的估计,因为用于环回接口的Solaris系统上的MTU限制为8892字节。 这些值不应该被认为是正确的,更不应该被认为是非常准确的。 他们是推测值。 Zabbix agent 不会做任何猜测的工作, 但是 net-snmp 会返回这些字段的一个值。

3 Solaris系统中, /proc/pid/psinfo 获得的命令行限制为80 字节 而且在进程启动时包含命令行。

1 Items supported by platform

The table displays support for Zabbix agent items on various platforms:

  • Items marked with “X” are supported, the ones marked with “-” are not supported.

  • If an item is marked with “?”, it is not known whether it is supported or not.

  • If an item is marked with “r”, it means that it requires root privileges.

  • Parameters that are included in angle brackets <like_this> are optional.

Windows-only Zabbix agent items are not included in this table.

NetBSD
OpenBSD▼▼
Mac OS X▼▼
Tru64▼▼
AIX▼▼
HP-UX▼▼
Solaris▼▼
FreeBSD▼▼
Linux 2.6 (and later)▼▼
Linux 2.4▼▼
Windows▼▼
Parameter / system▼▼
▼▼1234567891011
agent.hostnameXXXXXXXXXXX
agent.pingXXXXXXXXXXX
agent.versionXXXXXXXXXXX
kernel.maxfiles-XXX---?XXX
kernel.maxproc--XXX--?XXX
log[file,<regexp>,<encoding>,<maxlines>,<mode>,<output>]XXXXXXXXXXX
logrt[file_format,<regexp>,<encoding>,<maxlines>,<mode>,<output>]XXXXXXXXXXX
net.dns[<ip>,zone,<type>,<timeout>,<count>]XXXXXXXXXXX
net.dns.record[<ip>,zone,<type>,<timeout>,<count>]XXXXXXXXXXX
net.if.collisions[if]-XXXX-X-XXr
net.if.discoveryXXXXXXX--XX
net.if.in[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXXX-X--XXr
net.if.out[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXX--X-----
net.if.total[if,<mode>]XXXXXX 1X-XXr
modebytes (default)XXXXX 2XX-XXr
packetsXXXXXXX-XXr
errorsXXXXX 2XX-XXr
droppedXXX--X-----
net.tcp.listen[port]XXXXX---X--
net.tcp.port[<ip>,port]XXXXXXXXXXX
net.tcp.service[service,<ip>,<port>]XXXXXXXXXXX
net.tcp.service.perf[service,<ip>,<port>]XXXXXXXXXXX
net.udp.listen[port]-XXXX---X--
net.udp.service[service,<ip>,<port>]XXXXXXXXXXX
net.udp.service.perf[service,<ip>,<port>]XXXXXXXXXXX
1234567891011
proc.cpu.util[<name>,<user>,<type>,<cmdline>,<mode>,<zone>]-XX-X 3------
typetotal (default)-XX-X------
user-XX-X------
system-XX-X------
modeavg1 (default)-XX-X------
avg5-XX-X------
avg15-XX-X------
zonecurrent (default)----X------
all----X------
proc.mem[<name>,<user>,<mode>,<cmdline><memtype>]-XXXX 3-XX-XX
modesum (default)-XXXX-XX-XX
avg-XXXX-XX-XX
max-XXXX-XX-XX
min-XXXX-XX-XX
memtype-XXXX-X----
proc.num[<name>,<user>,<state>,<cmdline>]XXXXX 3XXX-XX
stateall (default)-XXXXXXX-XX
disk-XXX-----XX
sleep-XXXXXXX-XX
zomb-XXXXXXX-XX
run-XXXXXXX-XX
trace-XXX-----XX
cmdline-XXXXXXX-XX
sensor[device,sensor,<mode>]-XX------X-
system.boottime-XXXX---XXX
system.cpu.discoveryXXXXXXXXXXX
system.cpu.intr-XXXX-X--XX
system.cpu.load[<cpu>,<mode>]XXXXXXXXXXX
cpuall (default)XXXXXXXXXXX
percpuXXXXXXX-XXX
modeavg1 (default)XXXXXXXXXXX
avg5XXXXXXXXXXX
avg15XXXXXXXXXXX
system.cpu.num[<type>]XXXXXXX-XXX
typeonline (default)XXXXXXX-XXX
max-XXXX---X--
system.cpu.switches-XXXX-X--XX
system.cpu.util[<cpu>,<type>,<mode>]XXXXXXXX-XX
typeuser (default)-XXXXXXX-XX
nice-XXX-X-X-XX
idle-XXXXXXX-XX
systemXXXXXXXX-XX
iowait--X-X-X----
interrupt--XX-----X-
softirq--X--------
steal--X--------
guest--X--------
guest_nice--X--------
modeavg1 (default)XXXXXXXX-XX
avg5XXXXXXX--XX
avg15XXXXXXX--XX
1234567891011
system.hostname[<type>]XXXXXXXXXXX
system.hw.chassis[<info>]-XX--------
system.hw.cpu[<cpu>,<info>]-XX--------
system.hw.devices[<type>]-XX--------
system.hw.macaddr[<interface>,<format>]-XX--------
system.localtime[<type>]XXXXXXXXXXX
typeutc (default)XXXXXXXXXXX
localXXXXXXXXXXX
system.run[command,<mode>]XXXXXXXXXXX
modewait (default)XXXXXXXXXXX
nowaitXXXXXXXXXXX
system.stat[resource,<type>]------X----
system.sw.archXXXXXXXXXXX
system.sw.os[<info>]-XX--------
system.sw.packages[<package>,<manager>,<format>]-XX--------
system.swap.in[<device>,<type>]
(specifying a device is only supported under Linux)
-XX-X----X-
type
(pages will only work if
device was not specified)
count (default under all except Linux)-XX-X----X-
sectors-XX--------
pages (default under Linux)-XX-X----X-
system.swap.out[<device>,<type>]
(specifying a device is only supported under Linux)
-XX-X----X-
type
(pages will only work if
device was not specified)
count (default under all except Linux)-XX-X----X-
sectors-XX--------
pages (default under Linux)-XX-X----X-
system.swap.size[<device>,<type>]
(specifying a device is only supported under FreeBSD, for other platforms must be empty or “all”)
XXXXX-XX-X-
typefree (default)XXXXX-XX-X-
totalXXXXX-XX-X-
usedXXXXX-XX-X-
pfreeXXXXX-XX-X-
pused-XXXX-XX-X-
system.unameXXXXXXXXXXX
system.uptimeXXXXX-X?XXX
system.users.num-XXXXXXXXXX
1234567891011
vfs.dev.read[<device>,<type>,<mode>]-XXXX-X--X-
type

(defaults are different
under various OSes)
sectors-XX--------
operations-XXXX-X--X-
bytes---XX-X--X-
sps-XX--------
ops-XXX-------
bps---X-------
mode
(compatible only with
type in: sps, ops, bps)
avg1 (default)-XXX-------
avg5-XXX-------
avg15-XXX-------
vfs.dev.write[<device>,<type>,<mode>]-XXXX-X--X-
type

(defaults are different
under various OSes)
sectors-XX--------
operations-XXXX-X--X-
bytes---XX-X--X-
sps-XX--------
ops-XXX-------
bps---X-------
mode
(compatible only with
type in: sps, ops, bps)
avg1 (default)-XXX-------
avg5-XXX-------
avg15-XXX-------
vfs.dir.size[dir,<regex_incl>,<regex_excl>,<mode>,<max_depth>]XXX????????
vfs.file.cksum[file]XXXXXXXXXXX
vfs.file.contents[file,<encoding>]XXXXXXXXXXX
vfs.file.exists[file]XXXXXXXXXXX
vfs.file.md5sum[file]XXXXXXXXXXX
vfs.file.regexp[file,regexp,<encoding>,<output>]XXXXXXXXXXX
vfs.file.regmatch[file,regexp,<encoding>]XXXXXXXXXXX
vfs.file.size[file]XXXXXXXXXXX
1234567891011
vfs.file.time[file,<mode>]XXXXXXXXXXX
modemodify (default)XXXXXXXXXXX
accessXXXXXXXXXXX
changeXXXXXXXXXXX
vfs.fs.discoveryXXXXXXX-XXX
vfs.fs.inode[fs,<mode>]-XXXXXXXXXX
modetotal (default)-XXXXXXXXXX
free-XXXXXXXXXX
used-XXXXXXXXXX
pfree-XXXXXXXXXX
pused-XXXXXXXXXX
vfs.fs.size[fs,<mode>]XXXXXXXXXXX
modetotal (default)XXXXXXXXXXX
freeXXXXXXXXXXX
usedXXXXXXXXXXX
pfreeXXXXXXXXXXX
pusedXXXXXXXXXXX
vm.memory.size[<mode>]XXXXXXXXXXX
modetotal (default)XXXXXXXXXXX
active---X-X--XXX
anon----------X
buffers-XXX-----XX
cachedXXXX--X--XX
exec----------X
file----------X
freeXXXXXXXXXXX
inactive---X----XXX
pinned------X----
shared-X-X-----XX
wired---X----XXX
usedXXXXXXXXXXX
pusedXXXXXXXXXXX
availableXXXXXXXXXXX
pavailableXXXXXXXXXXX
web.page.get[host,<path>,<port>]XXXXXXXXXXX
web.page.perf[host,<path>,<port>]XXXXXXXXXXX
web.page.regexp[host,<path>,<port>,<regexp>,<length>,<output>]XXXXXXXXXXX
1234567891011

See also a description of vm.memory.size parameters.

Footnotes

1 net.if.in, net.if.out and net.if.total items do not provide statistics of loopback interfaces (e.g. lo0).

2 These values for these items are not supported for loopback interfaces on Solaris systems up to and including Solaris 10 6/06 as byte, error and utilisation statistics are not stored and/or reported by the kernel. However, if you’re monitoring a Solaris system via net-snmp, values may be returned as net-snmp carries legacy code from the cmu-snmp dated as old as 1997 that, upon failing to read byte values from the interface statistics returns the packet counter (which does exist on loopback interfaces) multiplied by an arbitrary value of 308. This makes the assumption that the average length of a packet is 308 octets, which is a very rough estimation as the MTU limit on Solaris systems for loopback interfaces is 8892 bytes.

These values should not be assumed to be correct or even closely accurate. They are guestimates. The Zabbix agent does not do any guess work, but net-snmp will return a value for these fields.

3 The command line on Solaris, obtained from /proc/pid/psinfo, is limited to 80 bytes and contains the command line as it was when the process was started.