@echo off
echo ****************************************
echo *****Zabbix Agentd Operation************
echo ****************************************
echo ** a. start Zabbix Agentd********
echo ** b. stop Zabbix Agentd********
echo ** c. restart Zabbix Agentd********
echo ** d. install Zabbix Agentd********
echo ** e. uninstall Zabbix Agentd********
echo ****************************************
choice /c:abcd /M [a]start,[b]stop,[c]install,[d]uninstall
if errorlevel 5 goto uninstall
if errorlevel 4 goto install
if errorlevel 3 goto restart
if errorlevel 2 goto stop
if errorlevel 1 goto start
:start
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -s
goto end
:stop
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -x
goto end
:restart
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -x
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -s
:install
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -i
goto end
:uninstall
c:\zabbix\zabbix_agentd.exe -c c:\zabbix\zabbix_agentd.conf -d
goto end
:end
zabbix客户端安装dat
最新推荐文章于 2021-09-29 18:31:49 发布