zabbix监控windows相关key

https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/zabbix_agent/win_keys

 

proc_info[<process>,<attribute>,<type>]

 

process - process name
attribute - requested processattribute.
type - representation type(meaningful when more than one process with the same name exists)

The following attributes are currentlysupported:
vmsize - Size of processvirtual memory in Kbytes
wkset - Size of process workingset (amount of physical memory used by process) in Kbytes
pf - Number of page faults
ktime - Process kernel time inmilliseconds
utime - Process user time inmilliseconds
io_read_b - Number of bytesread by process during I/O operations
io_read_op - Number of readoperation performed by process
io_write_b - Number of byteswritten by process during I/O operations
io_write_op - Number of writeoperation performed by process
io_other_b - Number of bytestransferred by process during operations other than read and write operations
io_other_op - Number of I/Ooperations performed by process, other than read and write operations
gdiobj - Number of GDI objectsused by process
userobj - Number of USERobjects used by process

Valid types are:
min - minimal value among allprocesses named <process>
max - maximal value among allprocesses named <process>
avg - average value for allprocesses named <process>
sum - sum of values for allprocesses named <process>

Examples:
proc_info[iexplore.exe,wkset,sum] - to get the amount of physical memory takenby all Internet Explorer processes
proc_info[iexplore.exe,pf,avg] - to get the average number of page faults forInternet Explorer processes

Note that on a 64-bit system, a 64-bit Zabbix agent is required for this itemto work correctly.

Note: io_*, gdiobj and userobj attributes are available only on Windows 2000and later versions of Windows, not on Windows NT 4.0.

service_state[*]

 

0 - running
1 - paused
2 - start pending
3 - pause pending
4 - continue pending
5 - stop pending
6 - stopped
7 - unknown
255 - no such service

 

services[<type>,<state>,<exclude>]

 

type - one of all (default), automatic, manual, disabled
state - one of all (default),stopped, started, start_pending, stop_pending, running, continue_pending,pause_pending, paused
exclude - list of services toexclude it from the result.
Excluded services should be written in double quotes, separated by comma,without spaces.
This parameter is supported starting with Zabbix 1.8.1.

Examples:
services[,started] - list of started services
services[automatic, stopped] - list of stopped services, that should be run
services[automatic, stopped, "service1,service2,service3"] - list ofstopped services, that should be run, excluding services with names service1,service2 and service3

wmi.get[<namespace>,<query>]

 

namespace - WMI namespace
query - WMI query returning asingle object

This key is supported starting with Zabbix 2.2.0.

Examples:
wmi.get[root\cimv2,select status from Win32_DiskDrive where Name like‘%PHYSICALDRIVE0%‘] - returns the status of the first physical disk

eventlog[name,<regexp>,<severity>,<source>,<eventid>,<maxlines>,<mode>]

 

name - name of event log
regexp - regular expressiondescribing the required pattern
severity - regular expressiondescribing severity
The parameter accepts the following values:
“Information”, “Warning”, “Error”, “Critical”, “Verbose” (since Zabbix 2.2.0 running on Windows Vistaor newer)
In older Zabbix versions running on any Windows version it would be“Information”, “Warning”, “Error”, “Failure Audit”, “Success Audit”.
source - regular expressiondescribing source identifier (regular expression is supported since Zabbix 2.2.0)
eventid - regular expressiondescribing the event identifier(s)
maxlines - maximum number ofnew lines per second the agent will send to Zabbix server or proxy. Thisparameter overrides the value of ‘MaxLinesPerSecond‘ in zabbix_agentd.win.conf
mode - possible values:
all (default), skip (skip processing of olderdata).
The mode parameter is supportedsince Zabbix 2.0.0.

The item must be configured as an active check.

Examples:
eventlog[Application]
eventlog[Security,,"Failure Audit",,^(529|680)$]
eventlog[System,,"Warning|Error"]
eventlog[System,,,,^1$]
eventlog[System,,,,@TWOSHORT] - here a custom regular expression named TWOSHORT is referenced (definedas a Result is TRUE type, theexpression itself being ^1$|^70$).

“Windows Eventing 6.0” is supported since Zabbix 2.2.0.

Monitoring Windows services

This tutorial provides step-by-step instructions for setting up themonitoring of Windows services. It is assumed that Zabbix server and agent areconfigured and operational.

To monitor the up/down status of a service you need to perform thefollowing steps:

Step 1

Get the service name.

You can get that name by going to the services mmc and bringing up theproperties of the service. In the General tab you should see a field called‘Service name‘. The value that follows is the name you will use when setting upan item for monitoring.

For example, if you wanted to monitor the “workstation” service then yourservice might be: lanmanworkstation.

Step 2

Configure an item for monitoring the service, with:

  • Key: service_state[lanmanworkstation]
  • Type of     information: Numeric (unsigned)
  • Show value: select the Windows service state value     mapping
时间: 2024-10-09 05:33:33

zabbix监控windows相关key的相关文章

Zabbix监控之使用Zabbix监控windows主机【7】

Zabbix监控 之使用Zabbix监控windows主机[7] 我们前面介绍了Zabbix3.0监控linux主机,今天我们使用Zabbix监控windows主机,其实操作都是一样的:具体见下:我们首先下载windows zabbix agent安装服务:我们第一个url是下载链接,第二个第三个是最新的3.0和2.2.9的下载链接:http://www.zabbix.com/download.phphttp://www.zabbix.com/downloads/3.0.0/zabbix_age

zabbix监控windows服务器上进程的内存使用情况

zabbix监控windows服务器上进程的内存使用情况 由于在windows服务器上不能像linux上一样使用top,或者类似于/pro目录下的数据信息,所以在在windows服务器上获得一个进程的内存或者CPU的使用情况不是很容易. 这里通过在windows服务器上使用python脚本获得进程的内存使用值,通过key传递给zabbix客户端,也就是本机上安装的zabbix客户端. windows上安装zabbix客户端网上的文章很多,这里不再记录. 1,首先安装python环境: 点击这里下

zabbix监控windows日志脚本

zabbix监控windows日志脚本     脚本用于监控windows服务器上日志,查看日志文件的末尾N行,如果N行中包含某字段,则输出0,否则输出1,然后再zabbix的配置文件空定义kye,进行监控. 文本文件的换行符是"\n" 编辑脚本log.py import sys import re def last_lines(filename, lines = 1):     lines = int(lines)     block_size = 1024     block = 

zabbix 监控windows 主机和华为交换机

#监控windows server 2003 #windows 只能安装zabbix-agent #下载地址:http://www.zabbix.com/downloads/3.0.4/zabbix_agents_3.0.4.win.zip #下载解压到win server 2003中 如图所示 #修改配置文件 zabbix_agent.win.conf (如果用记事本打开,会出现排版问题,所以我这里是上传到linux服务器中 用vim 修改,当然你也可以用记事本打开) #修改为如下所示 [[e

Zabbix监控windows客户端

Zabbix agent 在windows上安装部署 1.  下载与解压 地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.win.zip 解压zabbix_agents_2.4.0.win.zip conf目录存放是agent配置文件 bin文件存放windows下32位和64位安装程序.程序截图如下: 2.  配置与安装 1 配置zabbix agent相关配置. 找到conf下的配置文件,清空全部内容,添加以下信息:

Zabbix监控Windows进程重启

前段时间,一个朋友咨询我怎么监控Windows进程的重启.生产环境有监控进程的启动和关闭,但重启还没想过.经过一番思考和摸索后成功完成了监控,下面把监控思路和方法分享给大家. 我首先想到的是通过Zabbix自带的进程数监控(proc.num)来做,但有两个难点:一.进程数从1变为0再变为1,算是一次重启.触发器要判断三次连续的监控数据,不太好做:二.进程从关闭到下次启动,中间间隔多长时间算是一次重启呢? 然后想到了zabbix监控操作系统的重启,比如Windows系统重启的触发器:{Templa

zabbix监控windows tcp连接数

windows: 监控windows tcp的连接数有两种方式,一种是利用性能监视器,另一种方式是写个脚本. 在windows server2008上查看性能监视器: 利用下面这些做zabbix的监控项: 在zabbix页面添加监控项.注意key是从上面获取的. perf_counter["\TCPv4\Connections Established"] perf_counter["\TCPv4\Connections Active"] 用脚本监控windows t

zabbix监控windows服务器

1.下载zabbix的windows客户端zabbix-agent http://www.zabbix.com/downloads/2.2.0/zabbix_agents_2.2.0.win.zip 2.解压下载的文件,拷贝bin目录下的*.exe到c:\zabbix目录下,conf下的配置文件agent.conf拷贝到c盘的根目录. 3.修改配置文件agent.conf: 修改服务端的ip地址server=10.1.1.51 修改本地的hostname=计算机的机器名 4.安装zabbix w

zabbix监控windows(03,08)

监控windows主机: 下载zabbix_agents_2.2.3.win.zip (zabbix官网下载) 解压文件,把对应的文件(32位或者64位)考到C盘根目录(对应目录就OK)并带配置文件: 编辑配置文件:zabbix_agentd.win.conf LogFile=c:\zabbix_agentd.log Server=192.158.4.250   #zabbix服务端IP Hostname=Win7_x64_192.158.4.203#本机主机名 添加主机的时候主机名要对应一致