Ставке Zabbix агента за Windows су представљене у две листе:
Имајте на уму да све кључеве ставки које подржава Zabbix агент на Windows-у такође подржава Zabbix агент нове генерације 2. Погледајте кључеве додатних ставки које можете користити само са агентом 2.
Такође погледајте: Минималне дозволе за Windows ставке
The table below lists Zabbix agent items that are supported on Windows and are shared with the UNIX Zabbix agent:
Item key | Description | Item group |
---|---|---|
log | The monitoring of a log file. This item is not supported for Windows Event Log. The persistent_dir parameter is not supported on Windows. |
Log monitoring |
log.count | The count of matched lines in a monitored log file. This item is not supported for Windows Event Log. The persistent_dir parameter is not supported on Windows. |
|
logrt | The monitoring of a log file that is rotated. This item is not supported for Windows Event Log. The persistent_dir parameter is not supported on Windows. |
|
logrt.count | The count of matched lines in a monitored log file that is rotated. This item is not supported for Windows Event Log. The persistent_dir parameter is not supported on Windows. |
|
modbus.get | Reads Modbus data. | Modbus |
net.dns | Checks if the DNS service is up. The ip , timeout and count parameters are ignored on Windows unless using Zabbix agent 2. |
Network |
net.dns.perf | Checks the performance of a DNS service. The ip , timeout and count parameters are ignored on Windows unless using Zabbix agent 2. |
|
net.dns.record | Performs a DNS query. The ip , timeout and count parameters are ignored on Windows unless using Zabbix agent 2. |
|
net.if.discovery | The list of network interfaces. Some Windows versions (for example, Server 2008) might require the latest updates installed to support non-ASCII characters in interface names. |
|
net.if.in | The incoming traffic statistics on a network interface. On Windows, the item gets values from 64-bit counters if available. 64-bit interface statistic counters were introduced in Windows Vista and Windows Server 2008. If 64-bit counters are not available, the agent uses 32-bit counters. Multi-byte interface names on Windows are supported. You may obtain network interface descriptions on Windows with net.if.discovery or net.if.list items. |
|
net.if.out | The outgoing traffic statistics on a network interface. On Windows, the item gets values from 64-bit counters if available. 64-bit interface statistic counters were introduced in Windows Vista and Windows Server 2008. If 64-bit counters are not available, the agent uses 32-bit counters. Multi-byte interface names on Windows are supported. You may obtain network interface descriptions on Windows with net.if.discovery or net.if.list items. |
|
net.if.total | The sum of incoming and outgoing traffic statistics on a network interface. On Windows, the item gets values from 64-bit counters if available. 64-bit interface statistic counters were introduced in Windows Vista and Windows Server 2008. If 64-bit counters are not available, the agent uses 32-bit counters. You may obtain network interface descriptions on Windows with net.if.discovery or net.if.list items. |
|
net.tcp.listen | Checks if this TCP port is in LISTEN state. | |
net.tcp.port | Checks if it is possible to make a TCP connection to the specified port. | |
net.tcp.service | Checks if a service is running and accepting TCP connections. Checking of LDAP and HTTPS on Windows is only supported by Zabbix agent 2. |
|
net.tcp.service.perf | Checks the performance of a TCP service. Checking of LDAP and HTTPS on Windows is only supported by Zabbix agent 2. |
|
net.tcp.socket.count | Returns the number of TCP sockets that match parameters. This item is supported on Linux by Zabbix agent, but on Windows it is supported only by Zabbix agent 2 on 64-bit Windows. |
|
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. | |
net.udp.socket.count | Returns the number of UDP sockets that match parameters. This item is supported on Linux by Zabbix agent, but on Windows it is supported only by Zabbix agent 2 on 64-bit Windows. |
|
proc.num | The number of processes. On Windows, only the name and user parameters are supported. |
Processes |
system.cpu.discovery | The list of detected CPUs/CPU cores. | System |
system.cpu.load | The CPU load. | |
system.cpu.num | The number of CPUs. | |
system.cpu.util | The CPU utilization percentage. The value is acquired using the Processor Time performance counter. Note that since Windows 8 its Task Manager shows CPU utilization based on the Processor Utility performance counter, while in previous versions it was the Processor Time counter. system is the only type parameter supported on Windows. |
|
system.hostname | The system host name. The value is acquired by either GetComputerName() (for netbios), GetComputerNameExA() (for fqdn), or gethostname() (for host) functions on Windows. See also a more detailed description. |
|
system.localtime | The system time. | |
system.run | Run the specified command on the host. | |
system.sw.arch | The software architecture information. | |
system.swap.size | The swap space size in bytes or in percentage from total. The pused type parameter is supported on Linux by Zabbix agent, but on Windows it is supported only by Zabbix agent 2.Note that this key might report incorrect swap space size/percentage on virtualized (VMware ESXi, VirtualBox) Windows platforms. In this case you may use the perf_counter[\700(_Total)\702] key to obtain correct swap space percentage. |
|
system.uname | Identification of the system. On Windows the value for this item is obtained from Win32_OperatingSystem and Win32_Processor WMI classes. The OS name (including edition) might be translated to the user's display language. On some versions of Windows it contains trademark symbols and extra spaces. |
|
system.uptime | The system uptime in seconds. | |
vfs.dir.count | The directory entry count. On Windows, directory symlinks are skipped and hard links are counted only once. |
Virtual file systems |
vfs.dir.get | The directory entry list. On Windows, directory symlinks are skipped and hard links are counted only once. |
|
vfs.dir.size | The directory size. On Windows any symlink is skipped and hard links are taken into account only once. |
|
vfs.file.cksum | The file checksum, calculated by the UNIX cksum algorithm. | |
vfs.file.contents | Retrieving the contents of a file. | |
vfs.file.exists | Checks if the file exists. On Windows the double quotes have to be backslash '\' escaped and the whole item key enclosed in double quotes when using the command line utility for calling zabbix_get.exe or agent2. Note that the item may turn unsupported on Windows if a directory is searched within a non-existing directory, e.g. vfs.file.exists[C:\no\dir,dir] (where 'no' does not exist). |
|
vfs.file.get | Returns information about a file. Supported file types on Windows: regular file, directory, symbolic link |
|
vfs.file.md5sum | The MD5 checksum of file. | |
vfs.file.owner | Retrieves the owner of a file. | |
vfs.file.regexp | Retrieve a string in the file. | |
vfs.file.regmatch | Find a string in the file. | |
vfs.file.size | The file size. | |
vfs.file.time | The file time information. On Windows XP vfs.file.time[file,change] may be equal to vfs.file.time[file,access] . |
|
vfs.fs.discovery | The list of mounted filesystems with their type and mount options. The {#FSLABEL} macro is supported on Windows. |
|
vfs.fs.get | The list of mounted filesystems with their type, available disk space, inode statistics and mount options. The {#FSLABEL} macro is supported on Windows. |
|
vfs.fs.size | The disk space in bytes or in percentage from total. | |
vm.memory.size | The memory size in bytes or in percentage from total. | Virtual memory |
web.page.get | Get the content of a web page. | Web monitoring |
web.page.perf | The loading time of a full web page. | |
web.page.regexp | Find a string on the web page. | |
agent.hostmetadata | The agent host metadata. | Zabbix |
agent.hostname | The agent host name. | |
agent.ping | The agent availability check. | |
agent.variant | The variant of Zabbix agent (Zabbix agent or Zabbix agent 2). | |
agent.version | The version of Zabbix agent. | |
zabbix.stats | Returns a set of Zabbix server or proxy internal metrics remotely. | |
zabbix.stats | Returns the number of monitored items in the queue which are delayed on Zabbix server or proxy remotely. |
The table provides details on the item keys that are supported only by the Windows Zabbix agent.
Windows-specific items sometimes are an approximate counterpart of a similar agent item, for example proc_info
, supported on Windows, roughly corresponds to the proc.mem
item, not supported on Windows.
The item key is a link to full item key details.
Item key | Description | Item group |
---|---|---|
eventlog | The Windows event log monitoring. | Log monitoring |
eventlog.count | The count of lines in the Windows event log. | |
net.if.list | The network interface list (includes interface type, status, IPv4 address, description). | Network |
perf_counter | The value of any Windows performance counter. | Performance counters |
perf_counter_en | The value of any Windows performance counter in English. | |
perf_instance.discovery | The list of object instances of Windows performance counters. | |
perf_instance_en.discovery | The list of object instances of Windows performance counters, discovered using the object names in English. | |
proc_info | Various information about specific process(es). | Processes |
registry.data | Return data for the specified value name in the Windows Registry key. | Registry |
registry.get | The list of Windows Registry values or keys located at given key. | |
service.discovery | The list of Windows services. | Services |
service.info | Information about a service. | |
services | The listing of services. | |
vm.vmemory.size | The virtual memory size in bytes or in percentage from the total. | Virtual memory |
wmi.get | Execute a WMI query and return the first selected object. | WMI |
wmi.getall | Execute a WMI query and return the whole response. |
Параметри без угластих заграда су обавезни. Параметри означени угластим заградама < > су опциони.
Праћење дневника догађаја.
Враћена вредност: Log.
Параметри:
Коментари:
Примери:
eventlog[Application] eventlog[Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant] eventlog[Security,,"Failure Audit",,^(529|680)$] eventlog[System,,"Warning|Error"] eventlog[System,,,,^1$] eventlog[Windows PowerShell,,,,,,skip] eventlog[System,,,,@TWOSHORT] #here a custom regular expression named TWOSHORT
is referenced (defined as a Result is TRUE type, the expression itself being ^1$|^70$
).
Број редова у дневнику догађаја система Windows.
Враћена вредност: Цео број.
Параметри:
Коментари:
Примери:
eventlog.count[System,,"Warning|Error"] eventlog.count[Windows PowerShell,,,,,,skip]
Листа мрежног интерфејса (укључује тип интерфејса, статус, IPv4 адресу, опис).
Повратна вредност: Текст.
Коментари:
Вредност било ког Windows бројача перформанси.
Повратна вредност: **Integer, float, string* или text (у зависности од захтева).
Параметри:
interval
мора да буде између 1 и 900 секунди (укључено), а подразумевана вредност је 1.Коментари:
interval
се користи за бројаче који захтевају више од једног узорка (као што је коришћење CPU-а), тако да провера сваки пут враћа просечну вредност за последњи "интервал" секунди;
Вредност било ког Windows бројача перформанси на енглеском.
Повратна вредност: Integer, float, string или text (у зависности од захтева).
Параметри:
interval
мора да буде између 1 и 900 секунди (укључено), а подразумевана вредност је 1.Коментари:
interval
се користи за бројаче који захтевају више од једног узорка (као што је коришћење CPU-а), тако да провера сваки пут враћа просечну вредност за последњи "интервал" секунди;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009
.
Листа инстанци објеката Windows бројача перформанси. Користи се за откривање ниског нивоа.
Повратна вредност: JSON објекат.
Параметар:
Листа инстанци објеката Windows бројача перформанси, откривених коришћењем назива објеката на енглеском. Користи се за откривање ниског нивоа.
Повратна вредност: * JSON објекат*.
Параметар:
Различите информације о одређеном процесу/процесима.
Враћена вредност: Float.
Параметри:
Коментари:
attributes
:типови
су:Примери:
proc_info[iexplore.exe,wkset,sum] #преузимање количине физичке меморије коју заузимају сви процеси Internet Explorer-а proc_info[iexplore.exe,pf,avg] #преузимање просечног броја грешака страница за процесе Internet Explorer-а
Враћа податке за наведено име вредности у кључу регистра Windows-а.
Враћена вредност: Цео број, стринг или текст (у зависности од типа вредности)
Параметри:
Коментари:
Примери:
registry.data["HKEY_LOCAL_MACHINEError Reporting"] #врати податке подразумеване вредности овог кључа registry.data["HKLMError Reporting","EnableZip"] #врати податке вредности под називом "Enable Zip" у овом кључу
Листа вредности или кључева Windows регистра који се налазе на датом кључу.
Враћена вредност: JSON објекат.
Параметри:
mode
.Кључеви са размацима морају бити под двоструким наводницима.
Примери:
registry.get[HKLM,values,"^DisplayName|DisplayVersion$"] #врати податке вредности под називом "DisplayName" или "DisplayValue" у овом кључу. JSON ће садржати детаље о кључу, последњем подкључу, називу вредности, типу вредности и подацима о вредности. registry.get[HKLM,values] #врати податке свих вредности у овом кључу. JSON ће садржати детаље о кључу, последњем подкључу, називу вредности, типу вредности и подацима о вредности. registry.get[HKLM,keys] #врати све подкључеве овог кључа. JSON ће садржати детаље о кључу и последњем подкључу.
Листа Windows услуга. Користи се за откривање ниског нивоа.
Повратна вредност: * JSON објекат*.
Информације о услузи.
Враћена вредност: Цео број - са param
као state, startup; String - са param
као displayname, path, user; Text - са param
као description
Конкретно за state: 0 - покрећено, 1 - паузирано, 2 - почетак на чекању, 3 - пауза на чекању, 4 - наставак на чекању, 5 - заустављање на чекању, 6 - заустављено, 7 - непознато, 255 - нема такве услуге
Конкретно за startup: 0 - аутоматски, 1 - аутоматски одложено, 2 - ручно, 3 - онемогућено, 4 - непознато, 5 - аутоматски покретање окидача, 6 - аутоматски одложено покретање окидача, 7 - ручно покретање окидача
Параметри:
Коментари:
service.info[service,state]
и service.info[service]
вратиће исте информације;param
као state ова ставка враћа вредност за непостојеће сервисе (255).Примери:
service.info[SNMPTRAP] - стање SNMPTRAP сервиса; service.info[SNMP Trap] - стање истог сервиса, али са наведеним приказаним именом; service.info[EventLog,startup] - тип покретања сервиса EventLog
Списак услуга.
Повратна вредност: 0 - ако је празно; Текст - листа услуга одвојена новим редом.
Параметри:
Примери:
services[,started] #returns the list of started services;
services[automatic, stopped] #returns the list of stopped services that should be running;
services[automatic, stopped, "service1,service2,service3"] #returns the list of stopped services that should be running, excluding services named "service1", "service2" and "service3"
Величина виртуелне меморије у бајтовима или у процентима од укупне.
Повратна вредност: Integer - за бајтове; float - за проценат.
Параметар:
Коментари:
Пример:
Извршите WMI упит и вратите први изабрани објекат.
Повратна вредност: nteger, float, string ili text (у зависности од захтева).
Параметри:
WMI упити се изводе помоћу WQL.
Пример:
wmi.get[root\cimv2,select status from Win32_DiskDrive where Name like '%PHYSICALDRIVE0%'] #returns the status of the first physical disk
Извршите WMI упит и вратите цео одговор. Може се користити за откривање ниског нивоа.
предобрада Повратна вредност: * JSON објекат*
Параметри:
Коментари:
Пример:
wmi.getall[root\cimv2,select * from Win32_DiskDrive where Name like '%PHYSICALDRIVE%'] #returns status information of physical disks
Овај водич пружа упутства корак по корак за подешавање праћења Windows услуга. Претпоставља се да су Zabbix сервер и агенти конфигурисани и оперативни.
Добијање имена услуге.
Назив услуге можете добити тако што ћете отворити MMC додатак за услуге и приказати својства услуге. На картици Опште требало би да видите поље под називом "Име услуге". Вредност која следи је име које ћете користити приликом постављања ставке за праћење. На пример, ако желите да надгледате услугу "workstation", онда би ваша услуга могла бити: lanmanworkstation.
Конфигуришите ставку за праћење сервиса.
Ставка service.info[service,<param>]
преузима информације о одређеном сервису. У зависности од информација које су вам потребне, наведите опцију param
која прихвата следеће вредности: displayname, state, path, user, startup или description. Подразумевана вредност је state ако param
није наведен (service.info[service]
).
Тип враћене вредности зависи од изабраног param
: цео број за state и startup; низ карактера за displayname, path и user; текст за description.
Пример:
service.info[lanmanworkstation]
Ставка service.info[lanmanworkstation]
ће преузети информације о стању сервиса као нумеричку вредност. Да бисте мапирали нумеричку вредност у текстуални приказ у фронтенду ("0" као "Покреће се", "1" као "Паузирано" итд.), можете конфигурисати мапирање вредности на домаћину на којем је ставка конфигурисана. Да бисте то урадили, или повежите шаблон Windows services by Zabbix agent или Windows services by Zabbix agent active са домаћином, или конфигуришите на домаћину нову мапу вредности која је заснована на мапи вредности Windows service state конфигурисаној на поменутим шаблонима.
Имајте на уму да оба поменута шаблона имају конфигурисано правило откривања које ће аутоматски откривати сервисе. Ако ово не желите, можете онемогућити правило откривања на нивоу домаћина након што је шаблон повезан са домаћином.
Откривање ниског нивоа пружа начин за аутоматско креирање ставки, окидача и графикона за различите ентитета на рачунару. Zabbix може аутоматски да почне надгледање Windows услуга на вашој машини, без потребе да знате тачно назив услуге или ручно креирајте ставке за сваку услугу. Филтер се може користити за генерисање стварних ставки, окидача и графикона само за услуге од интереса.