Skip to content

Execute Bat File on Remote Windows Host with Zabbix Agent

Video Lecture

Execute Bat File on Remote Windows Host with Zabbix Agent Execute Bat File on Remote Windows Host with Zabbix Agent

Description

In this video, I create a .bat file that backups a file. I then execute it and read the response from the remote Zabbix Agent host using the system.run item key.

example.bat

1
2
@echo off
COPY c:\temp\abc.txt c:\temp\123.txt >nul && (echo 1) || (echo 0)

Item

Property Value
Name Backup Example
Type Zabbix agent
Key system.run[C:/temp/example.bat]

Zabbix Agent Items

Restricting Agent Checks

Comments