Add TranslateMacros option to more tests

Need new test, action, option? Post request here.
Post Reply
datwood
Posts: 12
Joined: Tue May 02, 2006 9:48 am
Location: Dallas, TX

Add TranslateMacros option to more tests

Post by datwood »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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/mfra ... ts.htm#url
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/mfra ... ts.htm#ntp
Anyway, HM is still an amazingly good tool. Thanks for listening.
Thank you

Regards
Alex
datwood
Posts: 12
Joined: Tue May 02, 2006 9:48 am
Location: Dallas, TX

Post by datwood »

KS-Soft wrote: There is special test method for such purpose: NTP
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#ntp
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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
binaer
Posts: 39
Joined: Tue Feb 28, 2006 2:01 am

Post by binaer »

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 ;-)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Can be implemented in next version.
If you are using version 9.56, probably we can provide unofficial update this week.

Regards
Alex
binaer
Posts: 39
Joined: Tue Feb 28, 2006 2:01 am

Post by binaer »

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 8)

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We did not receive any bug report regarding version 9.56.

Version 9.56
http://www.hostmonitor.biz/download/hm956.exe
Update (unzip file and replace hostmon.exe, rcc.exe modules)
www.ks-soft.net/download/hm957b.zip

>Will you implement the general "macro variables" or "only" date/time?

Date/time

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

Post by KS-Soft »

>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
binaer
Posts: 39
Joined: Tue Feb 28, 2006 2:01 am

Post by binaer »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply