Windowsのリモートコマンドについて

Windowsのリモートコマンドについて教えて下さい(zabbixのバージョンは2.0.6です)

①リモートコマンドを実行するにはリモートコマンドを実行するエージェントに対して、Zabbix-agentをインストールする必要はありますでしょうか?

②Zabbix-agentがインストールされているPCのDドライブにバッチを置いて、エラーがあった場合、そのバッチを実行するようにしたいのですが、動きません。コマンドは以下の通りです。

{HOSTNAME}:D:\zabbix\error.bat

zabbix_agentd.conf の EnableRemoteCommands は 1 にしています。ファイアウォールも無効になっています。
どうしてリモートコマンドが実行されないのでしょうか?

コメント表示オプション

お好みのコメント表示方法を選び「設定の保存」をクリックすると変更が反映されます。
ユーザー TNK の写真

(1)
リモートコマンドを実行させるには、そのリモートコマンドを実行
したいホスト上にZabbixエージェントがインストールされ起動され
ている必要があります。

(2)
また、Windowsでリモートコマンドを実行させる場合、batファイル
はZabbixエージェントを起動させているアカウントで起動しようと
しますので、そのアカウントが指定したフォルダやバッチファイル
へのアクセス権限を持っているか確認してください。

また、Zabbixログに何か出力されていませんか?
もしかしたら、リモートコマンド実行の詳細ログを出力させるには、
zabbix_agentd.confの

 LogRemoteCommands

を1に設定しておく必要があったかもしれません。

ご確認ください。

ユーザー Ryo Sugisaki の写真

ログには以下のメッセージが書かれていました。

14092:20130722:155659.483 collect_perfstat() counterpath:'\System\Processor Queue Length' old first:0 second:0
14092:20130722:155659.483 collect_perfstat() counterpath:'\System\Processor Queue Length' new first:0 second:0
14092:20130722:155659.484 collect_perfstat() '\System\Processor Queue Length' calculated value:0.000000
14092:20130722:155659.484 collect_perfstat() counterpath:'\Processor(1)\% Processor Time' old first:7893632191882 second:130189498184764826
14092:20130722:155659.484 collect_perfstat() counterpath:'\Processor(1)\% Processor Time' new first:7893637963919 second:130189498194814826
14092:20130722:155659.484 collect_perfstat() '\Processor(1)\% Processor Time' calculated value:42.566796
14092:20130722:155659.484 collect_perfstat() counterpath:'\Processor(0)\% Processor Time' old first:7780617579434 second:130189498184764826
14092:20130722:155659.484 collect_perfstat() counterpath:'\Processor(0)\% Processor Time' new first:7780624131476 second:130189498194814826
14092:20130722:155659.485 collect_perfstat() '\Processor(0)\% Processor Time' calculated value:34.805552
14092:20130722:155659.485 collect_perfstat() counterpath:'\Processor(_Total)\% Processor Time' old first:7837124885658 second:130189498184764826
14092:20130722:155659.485 collect_perfstat() counterpath:'\Processor(_Total)\% Processor Time' new first:7837131047697 second:130189498194814826
14092:20130722:155659.485 collect_perfstat() '\Processor(_Total)\% Processor Time' calculated value:38.686179
14092:20130722:155659.486 End of collect_perfstat()
12624:20130722:155659.985 In send_buffer() host:'192.168.1.197' port:10051 values:0/100
12624:20130722:155659.985 End of send_buffer():SUCCEED
12624:20130722:155659.985 Sleeping for 1 second(s)
14092:20130722:155700.489 In collect_perfstat()

アクセス権限はeveryoneになっています。

アイテムやトリガーを設定しなければならないということはありますでしょうか?

ユーザー TNK の写真

ログを拝見する限り、リモートコマンドを実行しようとした形跡が
見受けられません。
LogRemoteCommandsを1に設定してみましたか?

Zabbixで障害を検知してリモートコマンドを実行されたいのであれ
ば、アイテム、トリガー、アクションの設定は必須です。