Hi,
Is there anyway to configure a test to send an email alert once every day with the peak value result for the specified test. (Peak value must only be valid for that 24 hour period and then be reset)
I need to know what the highest number of users that were connected at any one point during the day. The number of users currently connected is retrieved using Perfmon counter and returned to Hostmonitor as a current (live) result.
Thanks
Daily Peak Value Alert
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Actually, that's possible. You should two actions to alert profile, assigned to the test. First action, should be "Send e-mail" action with %MaxReply% variable in mail body. Quote: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
===========================
%MaxReply% The maximum value of the results obtained
===========================
Second action should be "Execute HMS script" action. This action should perform script with "ResetTest" command. Quote: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
===========================
ResetTest <TestName> Resets statistics for specified test or group of tests
===========================
Script should look like this one:
-----------------------
ResetTest SomeTestName
SaveTestList
-----------------------
To make both actions to be started once a day, you should enable "Time restriction" option in "Action Properties" window and specify particular schedule for these actions with up to minute precission: http://www.ks-soft.net/hostmon.eng/mfra ... #Schedules
Regards,
Max
===========================
%MaxReply% The maximum value of the results obtained
===========================
Second action should be "Execute HMS script" action. This action should perform script with "ResetTest" command. Quote: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
===========================
ResetTest <TestName> Resets statistics for specified test or group of tests
===========================
Script should look like this one:
-----------------------
ResetTest SomeTestName
SaveTestList
-----------------------
To make both actions to be started once a day, you should enable "Time restriction" option in "Action Properties" window and specify particular schedule for these actions with up to minute precission: http://www.ks-soft.net/hostmon.eng/mfra ... #Schedules
Regards,
Max
I can't seem to get this working as desired, I have configured as you suggested yet no email is being sent at the desired time.
Basically I want these tests to monitor a constantly fluctuating numerical figure every 1 minute 24/7 (Number of users stuck in queue). Once a day I need to send an automated email informing my manager what the peak number of users queued was within this 24 hour period.
The reply will usually be "0" and the test is setup to alert if this figure goes above "0". This usually happens only one or two days a week (usually at weekends).
I tried configuring as you suggested by creating an alert profile with the two actions in running on a schedule. I have configured the schedule to 22:00 - 22:01 every day.
Does the test need to be alerting at this exact time in order for the actions to be processed? or will the actions be processed if the test alerted earlier in the day but has returned to OK status before 22:00?
Thanks
Basically I want these tests to monitor a constantly fluctuating numerical figure every 1 minute 24/7 (Number of users stuck in queue). Once a day I need to send an automated email informing my manager what the peak number of users queued was within this 24 hour period.
The reply will usually be "0" and the test is setup to alert if this figure goes above "0". This usually happens only one or two days a week (usually at weekends).
I tried configuring as you suggested by creating an alert profile with the two actions in running on a schedule. I have configured the schedule to 22:00 - 22:01 every day.
Does the test need to be alerting at this exact time in order for the actions to be processed? or will the actions be processed if the test alerted earlier in the day but has returned to OK status before 22:00?
Thanks
What action parameters have you used? "Start when 1 consecutive bad/good result occurs" and "Repeat: until status changes"? Have you added both "good" and "bad" actions into profile? This is necessary if you don't know for sure status of the test...I can't seem to get this working as desired, I have configured as you suggested yet no email is being sent at the desired time.
Actually I would implement the same task in different way:
1) use macro like %::test_name::maxreply% in e-mail body
http://www.ks-soft.net/hostmon.eng/mfra ... #specmacro
this will work for any action profile, even if profile is not assigned to specific test item
2) add 2 "on the schedule" actions into action profile (instead of 4 "regular" actions): "Send e-mail" and "Execute HMScripr"
There are some information about "scheduled" actions
http://www.ks-soft.net/hostmon.eng/mfra ... uledaction
3) create scheduled task using Scheduler page in the Options dialog
3rd possible solution:
1) create folder for this test
2) mark "Reset statistics daily" option on Statistics page in the Folder Properties dialog
3) mark "Execute action profile before reset statistics" option on the same page
4) assign action profile with single "on the schedule" "Send e-mail" action. Use %::test_name::maxreply% in e-mail body
Regards
Alex