Add TranslateMacros option to more tests
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
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
Actually URL and HTTP test methods support such optionI 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.
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url
There is special test method for such purpose: NTPReason 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.
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#ntp
Thank youAnyway, HM is still an amazingly good tool. Thanks for listening.
Regards
Alex
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.KS-Soft wrote: There is special test method for such purpose: NTP
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#ntp
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
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 stateKS-Soft wrote:Can be implemented in next version.
If you are using version 9.56, probably we can provide unofficial update this week.

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.
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
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
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.
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.