KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Reset test status at a specific time

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Mon Dec 06, 2004 2:50 pm    Post subject: Reset test status at a specific time Reply with quote

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)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Dec 06, 2004 3:58 pm    Post subject: Reply with quote

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/mframe.htm#actions.htm#actScript
Quote:
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).

HostMonitor will start "good" actions for "alive" hosts and "bad" actions for "dead" hosts.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Dec 06, 2004 4:01 pm    Post subject: Reply with quote

PS In addition you may use "RefreshAll" command to recheck all test items.
Back to top
View user's profile Send private message Visit poster's website
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Mon Dec 06, 2004 4:17 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Dec 06, 2004 8:08 pm    Post subject: Reply with quote

Quote:
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 ?


This will cause... But I don't see another solution (in current version).
Probably we can implement some parameters for ResetRecurrencesTest command, like ResetRecurrencesTest <testname> | _AllBad | _AllUnknown | _AllGood

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Tue Dec 07, 2004 1:09 am    Post subject: Reply with quote

Alex,

> Probably we can implement some parameters for
> ResetRecurrencesTest command, like
> ResetRecurrencesTest<testname> | _AllBad | _AllUnknown | _AllGood

Yes, this would be extremely helpful - thanx !

Kasper :O)
Back to top
View user's profile Send private message
Wooltown



Joined: 22 May 2002
Posts: 115
Location: Sweden

PostPosted: Tue Dec 07, 2004 1:12 am    Post subject: Reply with quote

If you use the "ResetRecurrencesAll" at 07:50 and you make all your tests every 5 minutes, it could fix your problem.


Sven
Back to top
View user's profile Send private message
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Tue Dec 07, 2004 1:22 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Wooltown



Joined: 22 May 2002
Posts: 115
Location: Sweden

PostPosted: Tue Dec 07, 2004 1:40 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Tue Dec 07, 2004 2:18 am    Post subject: Reply with quote

Sven,

Ah - I get the idea now

It won't solve my problem though, but if Alex could implement some parameters for ResetRecurrences making it only react on items that go bad upon the ResetRecurrences execution I would be a happy camper

Kasper :O)
Back to top
View user's profile Send private message
Mogge



Joined: 04 Mar 2004
Posts: 83
Location: Denmark

PostPosted: Tue Dec 07, 2004 3:18 am    Post subject: Reply with quote

Hi Alex!

Remember this: http://www.ks-soft.net/cgi-bin/phpBB/viewtopic.php?t=1477&highlight=

This is the same problem.

/Mogge
Back to top
View user's profile Send private message MSN Messenger
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Dec 07, 2004 12:48 pm    Post subject: Reply with quote

Its easier to implement parameters for ResetRecurrences command than implement StartAllBadActionsForFailedTest command (script module doesn't have access to actions).
Probably we can implement these options in next version

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Mogge



Joined: 04 Mar 2004
Posts: 83
Location: Denmark

PostPosted: Tue Dec 07, 2004 2:11 pm    Post subject: Reply with quote

Okay - I'll put it in another way...

A command like ResetRecurrencesTest <testname> | _AllBad | _AllUnknown | _AllGood will give me the same result as a command like StartAllBadActionsForFailedTest if I handle it like Sven describes.

It will do the job for me.


/Mogge
Back to top
View user's profile Send private message MSN Messenger
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Dec 07, 2004 2:35 pm    Post subject: Reply with quote

Yes, I know.
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jan 06, 2005 12:46 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index