×

扫描二维码登录本站

QQ登录

只需一步,快速开始

标签: 暂无标签
Key


描述
返回值
参数
说明



system.hw.chassis[<info>]


机架信息
字符串
info -  可用值: full (默认), model, serial, typevendor
示例:
⇒ system.hw.chassis[full] → Hewlett-Packard HP  Pro 3010 Small Form Factor PC CZXXXXXXXX Desktop]

这个值的数据取决于内存中的SMBIOS表

获取该值需要root权限,因为信息是从内存中读取的.



system.hw.cpu[<cpu>,<info>]


CPU 信息
字符串/整数
cpu - <CPU  number>all (默认)
info - 可用值:
full (默认), curfreq, maxfreq, modelvendor
示例:
⇒ system.hw.cpu[0,vendor] → AuthenticAMD

获取信息来自/proc/cpuinfo 和  /sys/devices/system/cpu/[cpunum]/cpufreq/cpuinfo_max_freq.

如果指定了CPU number 和 curfreqmaxfreq , a numeric 将会返回数值(Hz).



system.hw.devices[<type>]


列出PCI或USB设备
文本
type - pci (默认) 或 usb
示例:
⇒ system.hw.devices[pci] → 00:00.0 Host bridge:  Advanced Micro Devices [AMD] RS780 Host Bridge
[..]

返回lspci或lsusb的输出(不加任何参数)



system.hw.macaddr[<interface>,<format>]


列出MAC地址
字符串
interface - all (默认)或正则表达式
format - full (默认)或 short
列出符合表达式的网络接口MAC地址(所有接口的列表).

Example:
⇒  system.hw.macaddr["eth0$",full] → [eth0]  00:11:22:33:44:55

如果format指定为short,MAC地址相同的接口将被忽略掉.



system.localtime[<type>]


系统时间
整数 - utc类型

字符串- 系统类型
type -  可用值:
utc - (默认) 使用epoch时间 (00:00:00 UTC,  January 1, 1970),以秒为单位.
local - 使用  'yyyy-mm-dd,hh:mm:ss.nnn,+hh:mm' 格式
-



system.run[command,<mode>]


在主机运行指定的命令
命令执行结果文本

1 - nowait模式(无论命令执行结果如何)
command - 执行的命令
mode - 可用值:
wait - 等待执行结束(默认),
nowait - 不等待执行结束
最大可返回512KB 数据,包括行尾的空格

确保正确处理,命令的输出必须是文本

示例:
⇒ system.run[ls -l /] → “/”目录的详细文件列表.

注意: 使用这个功能必须在agent的配置文件中配置  EnableRemoteCommands=1 选项.
注意: 该item的返回值是由执行命令产生的标准输出和错误输出.
注意: 空结果在Zabbix 2.4.0版本被支持.



system.stat[resource,<type>]


系统统计(AIX专用).
整数或浮点
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)



system.sw.arch


软件架构信息
字符串
示例:
⇒ system.sw.arch → i686

信息来自 uname() 函数.



system.sw.os[<info>]


操作系统信息.
字符串
info -  可用值:
full (默认), shortname
示例:
⇒ system.sw.os[short]→ Ubuntu 2.6.35-28.50-generic  2.6.35.11

信息来自 (注意并非所有文件存在于现有发行版):
/proc/version (full)
/proc/version_signature (short)
/etc/  (name)



system.sw.packages[<package>,<manager>,<format>]


已安装软件列表.
文本
package - all (默认)或正则表达式
manager - all (默认) 或包管理器名称
format - full (默认)或 short
列出 (按字母顺序) 匹配包名正则的安装包名(all代表列出所有)。
示例:
⇒ system.sw.packages[mini,dpkg,short]  →  python-minimal, python2.6-minimal, ubuntu-minimal

支持的包管理器 (执行的命令):
dpkg (dpkg --get-selections)
pkgtool (ls /var/log/packages)
rpm (rpm -qa)
pacman (pacman -Q)

如果format被指定为 full,  安装包会被包管理器分组(会在单独的一行以方括号开头的方式命名).
如果format被指定为short安装包不会分组,并在单独的一行显示.



system.swap.in[<device>,<type>]


统计交换回内存的信息 (从设备到内存)
整数
device - 交换设备(默认为 all)
type - 可用值:
count (次数), sectors (扇区数), pages (页面数).
示例:
⇒ system.swap.in[,pages]

信息来自:
/proc/swaps, /proc/partitions, /proc/stat (Linux 2.4)
/proc/swaps, /proc/diskstats, /proc/vmstat (Linux 2.6)



system.swap.out[<device>,<type>]


统计交换出内存的信息 (从内存到设备)
整数
device - 交换设备(默认为 all)
type - 可用值:
count (次数), sectors (扇区数), pages (页面数).
示例:
⇒ system.swap.out[,pages]

信息来自:
/proc/swaps, /proc/partitions, /proc/stat (Linux 2.4)
/proc/swaps, /proc/diskstats, /proc/vmstat (Linux 2.6)



system.swap.size[<device>,<type>]


交换分区大小(字节或百分比)
整数 -字节

浮点 -百分比
device - 交换设备(默认为 all)
type - 可用值:
free (可用交换空间,默认), pfree (可用交换空间百分比), pused (已用交换空间百分比), total (交换空间总大小), used (已用交换空间)
示例:
⇒ system.swap.size[,pfree] →可用交换空间百分比

旧命名: system.swap.free, system.swap.total



system.uname


主机名信息
字符串
返回值示例:
FreeBSD localhost 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov i386

从zabbix2.2.0起,通过使用uname()系统调用获取键值,而以前是通过调用”uname -a”命令在Unix系统中获得。因此,这个item的数据可能与”uname -a”不同,不包括其他”uname -a”输出的附加信息.



system.uptime


系统启动时间(秒)
整数
在item配置项中使用”s”或”uptime”获取可读数值



system.users.num


登录用户数
整数
通过agent调用who命令获取数据



vfs.dev.read[<device>,<type>,<mode>]


磁盘读取状态
整数 - type为sectors, operations, bytes

浮点 - type为 sps,ops, bps
device - 磁盘设备(默认为all)
type - possible values: sectors, operations, bytes, sps, ops, bps
这个选项必须指定,不同的系统有不用的默认值.
sps, ops, bps 分别代表: sectors, operations, bytes per second.
mode - 可用值: avg1 (平均一分钟, 默认), avg5, avg15.
这个选项只支持type为: sps, ops, bps.
不同的操作系统使用的不同type默认值为:
AIX - operations
FreeBSD - bps
Linux - sps
OpenBSD - operations
Solaris - bytes

示例:
⇒ vfs.dev.read[,operations]

sps, ops and bps 在支持的平台通常被限制在 8 个设备 (7个独立和1个 all)以内. 从Zabbix 2.0.1起这个限制为1024 个设备 (1023个独立的和一个 all).

自Zabbix 1.8.6起支持LVM逻辑卷.

只有相对的设备名称可以被使用(例如, sda) 直到Zabbix 1.8.6. 可以加入 /dev/前缀一起使用(例如, /dev/sda).

旧命名: io



  • vfs.dev.write[<device>,<type>,<mode>]


    磁盘写入状态
    整数 - type为sectors, operations, bytes

    浮点 - type为 sps,ops, bps
    device - 磁盘设备(默认为all)
    type - possible values: sectors, operations, bytes, sps, ops, bps
    这个选项必须指定,不同的系统有不用的默认值.
    sps, ops, bps 分别代表: sectors, operations, bytes per second.
    mode - 可用值: avg1 (平均一分钟, 默认), avg5, avg15.
    这个选项只支持type为: sps, ops, bps.
    不同的操作系统使用的不同type默认值为:
    AIX - operations
    FreeBSD - bps
    Linux - sps
    OpenBSD - operations
    Solaris - bytes

    示例:
    ⇒ vfs.dev.write[,operations]

    sps, ops and bps 在支持的平台通常被限制在 8 个设备 (7个独立和1个 all)以内. 从Zabbix 2.0.1起这个限制为1024 个设备 (1023个独立的和一个 all).

    自Zabbix 1.8.6起支持LVM逻辑卷.

    只有相对的设备名称可以被使用(例如, sda) 直到Zabbix 1.8.6. 可以加入 /dev/前缀一起使用(例如, /dev/sda).

    旧命名: io
  • 原创:开源联盟




    上一篇:zabbix再爆可获操作系统权限的高危SQL注入漏洞
    下一篇:Zabbix Agent类型支持所有的item key - (3)?
    monicazhang

    写了 2297 篇文章,拥有财富 12859,被 21 人关注

    您需要登录后才可以回帖 登录 | 立即注册
    B Color Link Quote Code Smilies

    成为第一个吐槽的人

    手机版|小黑屋|最新100贴|论坛版块|ITIL先锋论坛 |粤ICP备11099876号|网站地图
    Powered by Discuz! X3.4 Licensed  © 2001-2017 Comsenz Inc.
    返回顶部