View previous topic :: View next topic |
Author |
Message |
datwood
Joined: 02 May 2006 Posts: 12 Location: Dallas, TX
|
Posted: Wed Jun 03, 2009 2:06 pm Post subject: Add TranslateMacros option to more tests |
|
|
I know some of the File/Folder tests let you put a macro like %datetime% on the test, but some of the other tests, like the SSH, HTTP and URL tests, could use this as well.
Reason I say this ? I was trying to run a test against Unix server to check the server time and ensure it matched the time on the HostMonitor server. Only way I could see to do it was to either pass the time to the Unix server and let a script compare the times, or to run a Script test to retrieve the time from the Unix server and do the comparison.
First option was unfeasible because I could not pass the current time to the Unix server. Second option was unacceptable (to me) because I'd have to put the Unix login in the local script. I'm trying NOT to embed credentials in these things because it makes things harder to maintain.
I ended up solving the problem by writing/executing a custom .asp page that fetches a page from the Unix server, extracts the Response header time, and compares that with local time.
But that is kind of kludgy. Should be better ways. Maybe even a new TimeCheck test.
Anyway, HM is still an amazingly good tool. Thanks for listening.
Dwayne |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
Posted: Wed Jun 03, 2009 2:40 pm Post subject: |
|
|
Quote: | I know some of the File/Folder tests let you put a macro like %datetime% on the test, but some of the other tests, like the SSH, HTTP and URL tests, could use this as well. |
Actually URL and HTTP test methods support such option
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#url
Quote: | Reason I say this ? I was trying to run a test against Unix server to check the server time and ensure it matched the time on the HostMonitor server. |
There is special test method for such purpose: NTP
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#ntp
Quote: | Anyway, HM is still an amazingly good tool. Thanks for listening. |
Thank you
Regards
Alex |
|
Back to top |
|
|
datwood
Joined: 02 May 2006 Posts: 12 Location: Dallas, TX
|
Posted: Wed Jun 03, 2009 3:16 pm Post subject: |
|
|
The NTP test looks to be testing NTP servers. While useful, I was more interested in checking NTP clients to ensure they were picking up the time from the domain controllers (which are also our NTP servers). For some reason our network guys have a hard time keeping everything sync'd so I wanted to run tests on the more critical servers.
I got done what I wanted, so I'm not complaining.
Still would be nice to have macros on the SSH, so pls put that on the backlog somewhere.
Thanks
Dwayne |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
Posted: Thu Jun 04, 2009 5:52 am Post subject: |
|
|
Quote: | Still would be nice to have macros on the SSH, so pls put that on the backlog somewhere. |
SSH test supports date/time macro variables (it may check result for date stamp). Yes, I think we can add such option for command line as well...
Regards
Alex |
|
Back to top |
|
|
binaer
Joined: 28 Feb 2006 Posts: 39
|
Posted: Thu Jun 27, 2013 8:18 pm Post subject: |
|
|
KS-Soft wrote: |
SSH test supports date/time macro variables (it may check result for date stamp). Yes, I think we can add such option for command line as well... |
any news about that? Would be usefull right now |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
Posted: Tue Jul 02, 2013 10:06 am Post subject: |
|
|
Can be implemented in next version.
If you are using version 9.56, probably we can provide unofficial update this week.
Regards
Alex |
|
Back to top |
|
|
binaer
Joined: 28 Feb 2006 Posts: 39
|
Posted: Wed Jul 03, 2013 1:30 am Post subject: |
|
|
KS-Soft wrote: | Can be implemented in next version.
If you are using version 9.56, probably we can provide unofficial update this week. |
awesome. Even, we're using the current 9.50 stable. If there is no problem known with the 9.56 "beta", than sure, I would upgrade to the beta state
Will you implement the general "macro variables" or "only" date/time?
(Use of commentline would be usefull in my case).
My e-mail address is in the forums "Profile" - or I can send you another e-mail whenever you're ready. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
Posted: Wed Jul 03, 2013 6:48 am Post subject: |
|
|
>My e-mail address is in the forums "Profile" - or I can send you another e-mail whenever you're ready.
Mail failed
Remote host said: 550 5.7.1 Blocked by SpamAssassin
Regards
Alex |
|
Back to top |
|
|
binaer
Joined: 28 Feb 2006 Posts: 39
|
Posted: Fri Jul 05, 2013 5:06 pm Post subject: |
|
|
Hey Alex
thank you very much for your change and the time to implement that. Although, with "only" the Date and Time-Variables, it doesn't help in the specific case - but I solved it in any way with another test-method.
I'm sure, I will have a need to use your change soon in another test-scenario.
Have an awesome weekend. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12797 Location: USA
|
Posted: Mon Jul 08, 2013 4:24 am Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|