Action based on successful report generation

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Action based on successful report generation

Post by grahamr »

Based on my reading and understanding of the product, the feature "Execute action profile when complete" is really just a parallel action that would complete at the same time assuming the report runs.

This is a function of the fact that the action must run on a schedule base and not because the report has successfully been written. Is there a way to set the action to standard and run it only when the report completes successfully?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Based on my reading and understanding of the product, the feature "Execute action profile when complete" is really just a parallel action that would complete at the same time assuming the report runs.
Are you talking about option located on Reports page (Options dialog and Folder Properties dialog)? Its not a parallel action. "When complete" mean HostMonitor starts action after reports generated.
This is a function of the fact that the action must run on a schedule base and not because the report has successfully been written. Is there a way to set the action to standard and run it only when the report completes successfully?
Sorry, I do not understand. 1st sentence has different meaning than 2nd. Could you please explain?

Regards
Alex
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

Post by grahamr »

Yes, under Reports | Autogenerate options...


The way we'd like to have it:

Report runs, if successful executes good action. Else it executes bad action.

The way it seems to work now:

It's merely timed to run at the same interval. That's why it must be configured in the profile from standard to "on the schedule."


My testing shows that even if the report can't be created, the action profile is executed.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

My testing shows that even if the report can't be created, the action profile is executed.
Correct. Question is why HostMonitor cannot create reports? Disk is full? Then you will have a lot of problems with different applications. Use Disk Free Space or UNC test method to monitor disk free space.

Or you are using remote drive that may be inacessible to store reports? Then forget about "execute action profile when complete" option. Setup auxiliary test item (e.g. "Folder/File availability" test) to check result of report generation and use standard "bad" and "good" actions.
Or you may setup test to check availability of the resource and then generate reports.

Regards
Alex
grahamr
Posts: 17
Joined: Thu Jun 22, 2006 10:40 am
Location: LAX

untrusted process can't be trusted

Post by grahamr »

There's no way to be sure that HM created a report just because I configured it to do so. Maybe the folder where it's supposed to write to got deleted, maybe the disk had an error, maybe there was a bit flip in the middle of the function call, maybe the OS has a bug that prevents it from writing, etc.

It would be great, but not essential, if it were possible to actually test for success and do something special if that action failed. Just something to think about, we're using it the way you designed it right now. If you change it - great. If not, that's fine too.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use "Folder/File availability" test method to check result of report generation

Regards
Alex
Post Reply