您的位置:首页 > 运维架构

zabbix 监控端口和进程

2015-05-27 16:04 441 查看
zabbix 监控端口和进程用的是zabbix 自带的键值

进程用的是 proc.mem[<name>,<user>,<mode>,<cmdline>]      
 

proc.mem[<name>,<user>,<mode>,<cmdline>]
Memory used by a process. <name> process name (default: "all processes"). <user> user name (default: "all users"). <mode> possible values: avg, max, min, sum (default). <cmdline> filter by command line (supports regex). Example: proc.mem[,root].

监控进程占用的内存,不支持windows
proc.num[<name>,<user>,<state>,<cmdline>]
Number of processes. <name>进程名字 and <user>运行进程的用户名  same as in proc.mem item. <state> 进程的状态 all (default), run, sleep, zomb. <cmdline>进程名中包含的字符  filter by command line (supports regex). Example: proc.num[apache2,www-data]. On Windows, only <name> and <user> are supported.

windows只能使用<name> and <user>
proc_info[<process>,<attribute>,<type>]
Different information abo
 如果你监控的是widnows 主机进程是否存活
如监控cmd.exe 进程

则在新建监控项中填写如下,这里监控的进程意思是,windows 中有几个cmd.exe 进程在运行

监控linux 主机

name:是进程名

user:运行该进程的用户

state:进程状态包括run,sleep,zomb

cmdline:该项内容是模糊匹配,即用ps aux看到的最后一列中包含该字段则匹配上。

注:name匹配可能不是很准,一般根据cmdline来匹配进程

下面则介绍监控端口

端口用的键值是 net.tcp.listen[port]   ,监控windows 和linux 都按下图这种方式

监听端口状态,返回结果为1,则运行;返回结果为0,则没有运行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  zabbix 监控工具 linux