hi all,
My problem is:
i added "execute external command" to one of my test's action profile but it does not work. i simply add "mkdir aa" to execution field on localhost and this command is executed by hostmonitor that i choose from combo box also is did not work.
My main problem is i could not execute a command from command prompt by an agent that i enabled "execute external command" box at my agent configuration manager. Also i can not make a directory by sameway at localhost.
action problem
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
1. Please ensure you have specified proper condition to start action in "Action Properties" window. http://www.ks-soft.net/hostmon.eng/mfra ... dardaction
2. HostMonitor can store information about "successful" or "failed" action into system log (file is specified in "Options" -> "System Log" tab). Do you see any records regarding "Execute external program" action in system log? You have to enable "Record info about successful actions" and "Record info about failed actions" options in "Options" -> "System Log" tab to make HostMontor records such information
3. To perform an action by the agent, you have to select appropriate agent from the "Execute by" dropdown in "Action properties" window of "Execute external program" action. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... ctions.htm
===========================
Execute by
Actions can be performed by HostMonitor or by Remote Monitoring Agent (RMA). "Execute by" option allows you to specify how and where action should be performed. You may select from the list one of the items:
* Test Performer - action will be executed by the same application that had performed the test (test that triggered alert reaction).
What this means? As you know test can be performed by HostMonitor or RMA. It is a usual situation when some tests performed by HostMonitor, while other tests performed by various agents. Single action profile is assigned to many different tests is usual as well. If some test fails and triggers alert reaction, action with "Test Performer" option specified will be executed by the same module (HostMonitor or RMA) that was specified for test execution. So, if HostMonitor performed the test, alert action will be executed by HostMonitor as well. If agent performed the test, action will be executed by the same agent.
* HostMonitor - action will be executed by HostMonitor
* Specific RMA - action will be executed by specific agent. You may select an agent from drop down list or click on a button (to the right of the field) to manage agent list.
===========================
Regards,
Max
2. HostMonitor can store information about "successful" or "failed" action into system log (file is specified in "Options" -> "System Log" tab). Do you see any records regarding "Execute external program" action in system log? You have to enable "Record info about successful actions" and "Record info about failed actions" options in "Options" -> "System Log" tab to make HostMontor records such information
3. To perform an action by the agent, you have to select appropriate agent from the "Execute by" dropdown in "Action properties" window of "Execute external program" action. Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... ctions.htm
===========================
Execute by
Actions can be performed by HostMonitor or by Remote Monitoring Agent (RMA). "Execute by" option allows you to specify how and where action should be performed. You may select from the list one of the items:
* Test Performer - action will be executed by the same application that had performed the test (test that triggered alert reaction).
What this means? As you know test can be performed by HostMonitor or RMA. It is a usual situation when some tests performed by HostMonitor, while other tests performed by various agents. Single action profile is assigned to many different tests is usual as well. If some test fails and triggers alert reaction, action with "Test Performer" option specified will be executed by the same module (HostMonitor or RMA) that was specified for test execution. So, if HostMonitor performed the test, alert action will be executed by HostMonitor as well. If agent performed the test, action will be executed by the same agent.
* HostMonitor - action will be executed by HostMonitor
* Specific RMA - action will be executed by specific agent. You may select an agent from drop down list or click on a button (to the right of the field) to manage agent list.
===========================
Regards,
Max