Reset test status at a specific time
Reset test status at a specific time
Hi !
We check all our machines 24/7 but on some of them we only want alerts daily between 8 AM and 4 PM. For this to be done the alert profile for these machines have a time restriction that prevents our SMS System from beeing executed between 4 PM and 8 AM.
Now, the problem is that if one of these servers fail at e.g. 2:30 AM we will not be notified about this when the clock strikes 8 AM as HostMonitor have known this for the past five and a half hours and have executed the command for a failed event long time ago.
Is there any way I can get around this and force HostMonitor to reset the status of these tests at a specific time - in this case 8 AM ?
I don't want to put a schedule on the monitoring of these machines as it is very impotant for me to have logs over these machines 24/7 - I just don't want to be notified on errors between 4 PM and 8 AM.
Thanx in advance !
Kasper :O)
We check all our machines 24/7 but on some of them we only want alerts daily between 8 AM and 4 PM. For this to be done the alert profile for these machines have a time restriction that prevents our SMS System from beeing executed between 4 PM and 8 AM.
Now, the problem is that if one of these servers fail at e.g. 2:30 AM we will not be notified about this when the clock strikes 8 AM as HostMonitor have known this for the past five and a half hours and have executed the command for a failed event long time ago.
Is there any way I can get around this and force HostMonitor to reset the status of these tests at a specific time - in this case 8 AM ?
I don't want to put a schedule on the monitoring of these machines as it is very impotant for me to have logs over these machines 24/7 - I just don't want to be notified on errors between 4 PM and 8 AM.
Thanx in advance !
Kasper :O)
You may execute HMScript with "ResetRecurrencesAll" command. This command was implemented in version 4.86
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
Regards
Alex
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
HostMonitor will start "good" actions for "alive" hosts and "bad" actions for "dead" hosts.Note: after Recurrences counter is set to 0, HostMonitor will interpret ANY status assigned by next check as "new" status. E.g. if 1st check after you have used ResetRecurrencesTest command returns "Ok" status, HostMonitor will consider that previous status of the test was not "Ok" (either "Bad" or "Unknown"). This allows you to forcibly start actions that already were executed (e.g. for testing purpose).
Regards
Alex
Thanks Alex.
But ...
"E.g. if 1st check after you have used ResetRecurrencesTest command returns "Ok" status, HostMonitor will consider that previous status of the test was not "Ok" (either "Bad" or "Unknown")."
Won't this cause me to receive a lot of new "Up" messages upon the execution of the ResetRecurrencesTest command even if the test have been up all the time ?
I mean - can I avoid having messages sent upon an execution of the ResetRecurrencesTest command ?
Thanx !
Kasper :O)
But ...
"E.g. if 1st check after you have used ResetRecurrencesTest command returns "Ok" status, HostMonitor will consider that previous status of the test was not "Ok" (either "Bad" or "Unknown")."
Won't this cause me to receive a lot of new "Up" messages upon the execution of the ResetRecurrencesTest command even if the test have been up all the time ?
I mean - can I avoid having messages sent upon an execution of the ResetRecurrencesTest command ?
Thanx !
Kasper :O)
This will cause... But I don't see another solution (in current version).Won't this cause me to receive a lot of new "Up" messages upon the execution of the ResetRecurrencesTest command even if the test have been up all the time ?
Probably we can implement some parameters for ResetRecurrencesTest command, like ResetRecurrencesTest <testname> | _AllBad | _AllUnknown | _AllGood
Regards
Alex
Sven,
> If you use the "ResetRecurrencesAll" at 07:50 and you make all your
> tests every 5 minutes, it could fix your problem.
Well, I run all of my tests once every minute ... but how could an interval of 5 minutes help in my case ?
Isn't the main problem that HM will force a change in the result of any tests upon a ResetRecurrencesAll ?
Kasper :O)
> If you use the "ResetRecurrencesAll" at 07:50 and you make all your
> tests every 5 minutes, it could fix your problem.
Well, I run all of my tests once every minute ... but how could an interval of 5 minutes help in my case ?
Isn't the main problem that HM will force a change in the result of any tests upon a ResetRecurrencesAll ?
Kasper :O)
Hi Kasper !
The solution I suggested wasn't the idea that you should make your test every 5 minutes, it was just an example, if you use the "ResetRecurrencesAll" 5 or 10 minutes before your clock strikes 8 and "test A" changes from BAD to OK before 8 o'clock, you won't get an SMS indicating status change to OK.
Hope that makes sense
Regards
Sven
The solution I suggested wasn't the idea that you should make your test every 5 minutes, it was just an example, if you use the "ResetRecurrencesAll" 5 or 10 minutes before your clock strikes 8 and "test A" changes from BAD to OK before 8 o'clock, you won't get an SMS indicating status change to OK.
Hope that makes sense
Regards
Sven
Hi Alex!
Remember this: http://www.ks-soft.net/cgi-bin/phpBB/vi ... highlight=
This is the same problem.
/Mogge
Remember this: http://www.ks-soft.net/cgi-bin/phpBB/vi ... highlight=
This is the same problem.
/Mogge
There is update at www.ks-soft.net/download/hm494.zip
It allows you to use _AllBad, _AllUnknown and _AllGood as <testname> parameter for the following commands (HMScript):
RefreshTest
ResetTest
EnableTest
DisableTest
SetTestParam
ReplaceTestParam
ResetEventLogRefPoint
ResetRecurrencesTest
e.g. ResetRecurrencesTest _AllBad
Please note: this is "unofficial" update, means there are some undocumented modifications. It was tested and seems to be working fine but it was not tested much. So, better if you keep your eyes on it for a while.
Regards
Alex
It allows you to use _AllBad, _AllUnknown and _AllGood as <testname> parameter for the following commands (HMScript):
RefreshTest
ResetTest
EnableTest
DisableTest
SetTestParam
ReplaceTestParam
ResetEventLogRefPoint
ResetRecurrencesTest
e.g. ResetRecurrencesTest _AllBad
Please note: this is "unofficial" update, means there are some undocumented modifications. It was tested and seems to be working fine but it was not tested much. So, better if you keep your eyes on it for a while.
Regards
Alex