Global Statistics

Need new test, action, option? Post request here.
Post Reply
seelye
Posts: 40
Joined: Sat Sep 17, 2005 10:00 am
Location: USA

Global Statistics

Post by seelye »

Well, I think this is a request for a new feature because I sure can't find it.

I've used HM for about 2 years and 90% of what I look for is either in there or has been added but I can't find this one.

I have set HM Schedules to send a "heartbeat" email several times per day. The Schedule kicks off an Action Profile which has one action to send and email using the following Mail Profile: ** Daily Heartbeat ** %MonitorState% and %AlertsState%. Make sure these are Started and Enabled.

As you can see I've used the macro variables to help us verify things are running. I'd like to have more variables that tell us how many tests have a particular status (e.g. Ack, Bad, OK, Unknown, No Answer). At first I thought that %FailedCnt% and %PassedCnt% would be close to what I want but it appears these are not valid for a mail profile that is started by a schedule. Could a future release of HM include at least two new macro variables such as %Total_OK_Status_Cnt% and %Total_Bad_Status_Cnt% which would report a summary integer of how many Good/Bad test there are? Since these emails end up on our pagers it would help remote staff to know if we are 100% ok or if there are some failures which may still need to be addressed. Additional variables such as %Total_Ack_Status_Cnt% would be cool too.

Thanks
Eric
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What about "Attach file" option of the "Send e-mail" action? You may add "Generate reports" action to the same profile and attach HTML report to the mail. This way you will see statistics (Bad/Ok tests) and some information about all folders.
Please note: "Generate reports" action should be added before "Send e-mail" action. You already have "send e-mail" action, so you should remove this action, add "Generate reports" and then add" Send e-mail" action again

Regards
Alex
seelye
Posts: 40
Joined: Sat Sep 17, 2005 10:00 am
Location: USA

Post by seelye »

Unfortunately attachments are not an option. I'm sending these "heatbeats" to a pager/mobile phone via SMS. Therefore I have to keep the email message body below 128 characters. My goal is for the remote workers, who have limited Internet access, to receive a small health status summary sent to their phone with SMS. If they see anything that looks strange only then will they go through the effort of connecting in for more information.
seelye
Posts: 40
Joined: Sat Sep 17, 2005 10:00 am
Location: USA

Post by seelye »

I just had a thought.

What if I was allowed to do math with user defined variables. For instance: Would it make sense to call an HMS from an Action Profile, then in the HMS do a +1 or -1 to the defined variables. I could then use these variables in my SMS email Action. Also doing it this way allows me to choose which tests will be included in the BAD count since not all of my tests that are BAD need to be acted upon by my staff.

Does it sound like I'm on the correct path? I just don't see anything that says I can do math with variables in an HMS.

e.g. (Would this work in HMS?)

SetUserVariable %udv_BadCtn% %udv_BadCtn%+1
SaveUserVariables
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What if I was allowed to do math with user defined variables. For instance: Would it make sense to call an HMS from an Action Profile, then in the HMS do a +1 or -1 to the defined variables. I could then use these variables in my SMS email Action
Better we implement some new variables, like %TotalTests%, %BadTests%, %GoodTests%, %UnknownTests%, %AckBadTests%, %AckUnknTests%, %PerformedTests%.
I have added this task into "to do" list.
I just don't see anything that says I can do math with variables in an HMS
Because you cannot, such option is not implemented

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Done. New variables implemented in version 5.62
http://www.ks-soft.net/hostmon.eng/news.htm

Regards
Alex
Post Reply