Remote commands is a powerful mechanism for smart pro-active monitoring. Áú»¢¶Ä²© can execute a command on a monitored host in case of any pre-defined conditions.
Here is the list of some of the most obvious uses of the feature:
Configuration of action for remote commands is similar to messaging, the only difference is that Áú»¢¶Ä²© will execute a command instead of sending a message.
The action condition is defined so that it will be activated in case of any disaster problems with one of Apache applications.
As a reaction to the disaster problem Áú»¢¶Ä²© will try to restart Apache process:
Note use of the macro {HOSTNAME} here.
User 'zabbix' must have enough permissions to execute this script. Also Áú»¢¶Ä²© agent should run on a remote host and accept incoming connections. Remote commands are disabled by default and can be enabled in Áú»¢¶Ä²© agent daemon configuration file on Unix-like or Windows systems.
Remote commands do not work with active Áú»¢¶Ä²© agents.
See remote command tutorial for more information.