View previous topic :: View next topic |
Author |
Message |
fve
Joined: 27 Apr 2008 Posts: 98 Location: Denmark
|
Posted: Wed Jun 29, 2011 12:41 am Post subject: Time macro howto? %time%>="08:28:58" |
|
|
Hi
Cant get this to work?
I want to do something like this:
I use it in Action properties in advanced mode.
___
Is there a smart way to evaluate the macro function. I mean look at the output from ex. %time% or something other? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Jun 29, 2011 10:14 am Post subject: |
|
|
Could you please explain what exactly you need to accomplish?
Start action on the schedule? Then you should use built-in Scheduler (see Options dialog).
Execute some tests 24/7 but start action assigned to these tests using some time restriction? Then use "Time restriction" option and select appropriate schedule
http://www.ks-soft.net/hostmon.eng/mframe.htm#profiles.htm
Regards
Alex |
|
Back to top |
|
|
fve
Joined: 27 Apr 2008 Posts: 98 Location: Denmark
|
Posted: Fri Jul 01, 2011 12:11 am Post subject: |
|
|
Hi
I use both. Function scheduler and, Time restriction.
It was only a ide I have.
Is it possible to evaluate something like %time%>="08:28:58"??
Is is possible to have some output showing output from macro like %xx%. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Jul 01, 2011 10:15 am Post subject: |
|
|
Quote: | Is it possible to evaluate something like %time%>="08:28:58"??
|
Yes, but
1) you forgot "" for %time% string
2) it will be compared as strings so result may depend on your regional settings (or time format specified by "Use fixed date&time" HostMonitor option).
If you use time format like hh:mm:ss, comparision should work correctly.
Quote: | Is is possible to have some output showing output from macro like %xx% |
Some output? What exactly output? You may use variables in many places. The following table illustrates where you can use macro variables:
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#macroparams
Plus you may use them in Custom HTML reports...
Regards
Alex |
|
Back to top |
|
|
|