Send report in email, not attachment
Send report in email, not attachment
Hi,
I configured host monitor to send report every few hours.
The report is for specific folder.
Currently the report is sent as an attachment.
The guys that get the report asked if they can get it integrated into the email body and not as an attachment.
I couldn't figure how to do that.
Is it possible? How?
Thanks
I configured host monitor to send report every few hours.
The report is for specific folder.
Currently the report is sent as an attachment.
The guys that get the report asked if they can get it integrated into the email body and not as an attachment.
I couldn't figure how to do that.
Is it possible? How?
Thanks
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Send report in email, not attachment
You may use special directive inside email profile like: <<IncludeFile=path_to_the_file>>
Please visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#Mails
Please visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#Mails
Great!
Another question:
I send report to different time zone.
Some tests in the report refer to specific time frame.
For example:
1. How many new XXX were created in the last 3 hours.
2. How many new XXX were created yesterday in the last 3 hours (27H-24H ago)
The guys that get the report ask to see the time frame for of the tests.
For example: 2011-01-09 7:07:29 AM - 2011-01-09 10:07:29 AM
Is it possible?
Thanks
Another question:
I send report to different time zone.
Some tests in the report refer to specific time frame.
For example:
1. How many new XXX were created in the last 3 hours.
2. How many new XXX were created yesterday in the last 3 hours (27H-24H ago)
The guys that get the report ask to see the time frame for of the tests.
For example: 2011-01-09 7:07:29 AM - 2011-01-09 10:07:29 AM
Is it possible?
Thanks
No, HostMonitor reports cannot show time frame because they do not work with time frame, they show current status (except SLA reports).
Truth to say I don't understand how you could creare such report (How many new XXX were created yesterday in the last 3 hours 27H-24H ago).
Is there such option in HostMonitor?? I ask this question 1st time in 10 years
Regards
Alex
Truth to say I don't understand how you could creare such report (How many new XXX were created yesterday in the last 3 hours 27H-24H ago).
Is there such option in HostMonitor?? I ask this question 1st time in 10 years

Regards
Alex

HostMonitor can do everything!
It's an ODBC query...
I understand that HostMonitor just execute the query and get the answer.
But, is it possible to attach the time frame or something like that?
In theory it should be possible because it's simple expression.
I just need a field in the report or in the test that can parse the expression.
It should be something like:
1st time frame: (%CurrentTime%+5Hours) to (%CurrentTime%+8Hours)
It can be per test or per report, doesn't matter.
Can you think about a way to display this?
I still don't have any idea how you create report 
If you are using ODBC Query test or SQL Query action, HostMonitor will not create any report.
May be you are using some script that is launched by this query? Then your script creates some report file?
May be we misunderstood term "report"?
Report in HostMonitor terms is text, dbf, wml or html file, parameters of such report can be configured in Report Manager
http://www.ks-soft.net/hostmon.eng/index-logs.htm
http://www.ks-soft.net/hostmon.eng/mfra ... tm#Reports
All reports except SLA reports show current snapshot, so they cannot display any time range, they display time when report was created.
Regards
Alex

If you are using ODBC Query test or SQL Query action, HostMonitor will not create any report.
May be you are using some script that is launched by this query? Then your script creates some report file?
May be we misunderstood term "report"?
Report in HostMonitor terms is text, dbf, wml or html file, parameters of such report can be configured in Report Manager
http://www.ks-soft.net/hostmon.eng/index-logs.htm
http://www.ks-soft.net/hostmon.eng/mfra ... tm#Reports
All reports except SLA reports show current snapshot, so they cannot display any time range, they display time when report was created.
Regards
Alex
Thanks.
I will try to explain again.
I have a folder in HostMonitor, in this folder there are few tests, some of them are queries to MSSQL DB with ODBC connection.
In the folder properties I configured a HTML report to be generated every 3 hours.
After the report is generated there is an action profile which sends the HTML file in email.
As I wrote before, some of the tests in this report refer to specific time frame.
I want to add this time frame in some way to the report.
Did you understand the issue?
Can you think about a way?
Thanks
I will try to explain again.
I have a folder in HostMonitor, in this folder there are few tests, some of them are queries to MSSQL DB with ODBC connection.
In the folder properties I configured a HTML report to be generated every 3 hours.
After the report is generated there is an action profile which sends the HTML file in email.
As I wrote before, some of the tests in this report refer to specific time frame.
I want to add this time frame in some way to the report.
Did you understand the issue?
Can you think about a way?
Thanks
Then this part does not make any sense to me
=======================
1. How many new XXX were created in the last 3 hours.
2. How many new XXX were created yesterday in the last 3 hours (27H-24H ago)
=======================
I thouth "XXX" means "test item". That's why I said HostMonitor cannot create such reports.
Am I wrong? What is "XXX"?
HostMonitor test items offers several time related fields, such as
- Last test time
- Status changed time
- Created at
- Modified at
- Acknowledged at
What time do you want to display?
May be you want to show time interval between 2 probes of the test item?
Regards
Alex
=======================
1. How many new XXX were created in the last 3 hours.
2. How many new XXX were created yesterday in the last 3 hours (27H-24H ago)
=======================
I thouth "XXX" means "test item". That's why I said HostMonitor cannot create such reports.
Am I wrong? What is "XXX"?
Sorry, I don't understand what exactly means "refer to specific time frame".As I wrote before, some of the tests in this report refer to specific time frame.
I want to add this time frame in some way to the report
HostMonitor test items offers several time related fields, such as
- Last test time
- Status changed time
- Created at
- Modified at
- Acknowledged at
What time do you want to display?
May be you want to show time interval between 2 probes of the test item?
Regards
Alex
OK.
XXX doesn't mean test items.
We have a MSSQL DB.
The DB is constantly growing.
One of the tests (SQL query) displays how many items were added to that DB in the last 3 hours.
The DB isn't related to HostMonitor.
HostMonitor executes the query that asks "How many items were added in the last 3 hours".
Let say that the test was executed at 5PM, the time frame will be 2PM-5PM.
I want to display the time frame in the report.
Currently the report displays the result of the test without the time frame, for example:
I want to see the time frame of the test in the report, for example:
Or
Do you understand?
Thanks
XXX doesn't mean test items.
We have a MSSQL DB.
The DB is constantly growing.
One of the tests (SQL query) displays how many items were added to that DB in the last 3 hours.
The DB isn't related to HostMonitor.
HostMonitor executes the query that asks "How many items were added in the last 3 hours".
Let say that the test was executed at 5PM, the time frame will be 2PM-5PM.
I want to display the time frame in the report.
Currently the report displays the result of the test without the time frame, for example:
Code: Select all
Items added in the last 3 hours - 15352
Code: Select all
Items added in the last 3 hours (2011/01/16 2PM-5PM) – 15352
Code: Select all
Time Frame: 2011/01/16 2PM-5PM
Items added in the last 3 hours – 15352
Thanks