What does %Reply_Integer% return?
What does %Reply_Integer% return?
Hi,
I'm new to Host Monitor and trying to figure some stuff out.
Using the TextLog test method, I was able to get a value from the log-files which states the remaining free space.
This has the form of eg. 26.365
Now, I would like to send an email when this value is below eg. 20.000
I thought using %Reply_Integer% was the way to go and say that if %Reply_Integer% < 20000 a mail is send.
This goes fine, but when the value goes back above 20.000, it keeps on sending mails.
So: is %Reply_Integer% actually making 26365 out of the 26.365 reply (no MB or KB or something is included in the reply)?
I'm new to Host Monitor and trying to figure some stuff out.
Using the TextLog test method, I was able to get a value from the log-files which states the remaining free space.
This has the form of eg. 26.365
Now, I would like to send an email when this value is below eg. 20.000
I thought using %Reply_Integer% was the way to go and say that if %Reply_Integer% < 20000 a mail is send.
This goes fine, but when the value goes back above 20.000, it keeps on sending mails.
So: is %Reply_Integer% actually making 26365 out of the 26.365 reply (no MB or KB or something is included in the reply)?
Thanks for the fast answer.
Is there any way to determine if '.' is a decimal separator?
All I know for the moment is the value (26.365) is found in a .log-file (simple plain-text file).
The test searches for a line containing some text (string), and then it takes the last but one 'word' from that line (which is the value I need to check).
regards,
Ben
[edit]
Ran some tests, it's apparently the value before the '.' that is returned (the 26), which is great.
Now I have one remaining 'problem': The test itself went ok (the value is returned successfully), and so is the status. Is it possible to change the status when the returned value is smaller then for example 25?
Is there any way to determine if '.' is a decimal separator?
All I know for the moment is the value (26.365) is found in a .log-file (simple plain-text file).
The test searches for a line containing some text (string), and then it takes the last but one 'word' from that line (which is the value I need to check).
regards,
Ben
[edit]
Ran some tests, it's apparently the value before the '.' that is returned (the 26), which is great.
Now I have one remaining 'problem': The test itself went ok (the value is returned successfully), and so is the status. Is it possible to change the status when the returned value is smaller then for example 25?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
You may use standard Windows "Regional and Language Options" applet to find out, what decimal separator is used on the system.bbackx wrote:Is there any way to determine if '.' is a decimal separator?
I think, you may use "Optional Status Processing" options: http://www.ks-soft.net/hostmon.eng/mfra ... processingbbackx wrote:Ran some tests, it's apparently the value before the '.' that is returned (the 26), which is great.
Now I have one remaining 'problem': The test itself went ok (the value is returned successfully), and so is the status. Is it possible to change the status when the returned value is smaller then for example 25?
For instance, you may enable "Use Warning status in" option in "Test Properties" window and specify expression like the following:
Code: Select all
('%SuggestedSimpleStatus%'=='UP') and (%SuggestedReply%<25)
Max
You may also like to try the Hard Disk Space test in the Library.
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4832
cheers, Paul
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4832
cheers, Paul
I don't really know what you mean with this. Is it possible to get a bit more explanation (or perhaps a link where I can find it)?KS-Soft Europe wrote:I think, you may use "Optional Status Processing" options: http://www.ks-soft.net/hostmon.eng/mfra ... processing
For instance, you may enable "Use Warning status in" option in "Test Properties" window and specify expression like the following:Code: Select all
('%SuggestedSimpleStatus%'=='UP') and (%SuggestedReply%<25)
Didn't mention this, but the device in question is a tape for a backup. The backup-software logs the remaining free space after every backup.Paul_NHS wrote:You may also like to try the Hard Disk Space test in the Library.
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4832
cheers, Paul
Although the script you mention will definitely come in handy for some other parameters I'd like to monitor

regards,
Ben
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Hm. As for me, it described pretty clear. To change status, you should use "Optional status processing" options. Read here: http://www.ks-soft.net/hostmon.eng/mfra ... processingbbackx wrote:I don't really know what you mean with this. Is it possible to get a bit more explanation (or perhaps a link where I can find it)?
In particular, you should open "Test Properties" window, mark "Use Warning status if" option. If you do not see this option, please, click on small [+] sign in right side of "Test Properties" window next to "Optional status processing" and "Reverse alert" options. After you mark "Use Warning status if", please specify following expression into box, next to "Use Warning status if" option:
Code: Select all
('%SuggestedSimpleStatus%'=='UP') and (%SuggestedReply%<25)
Regards,
Max
Thanks, I think I found the problem.
I'm new to Host Monitor and also to the company I'm currently working at.
They have an old setup and my first big task is to get Host Monitor up and running again. The version they're using is version 5.62 Beta, which is rather old, but it contains already a lot of tests.
I installed version 7.78 on a virtual machine and there I found the 'Optional Status Processing' you mention. Apparently, this is something that was added somewhere between version 5.62 and 7.78
Looks like I better update to the newest version first, or leave the status for what it is...
I'm new to Host Monitor and also to the company I'm currently working at.
They have an old setup and my first big task is to get Host Monitor up and running again. The version they're using is version 5.62 Beta, which is rather old, but it contains already a lot of tests.
I installed version 7.78 on a virtual machine and there I found the 'Optional Status Processing' you mention. Apparently, this is something that was added somewhere between version 5.62 and 7.78

Looks like I better update to the newest version first, or leave the status for what it is...
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Yeah, version 5.62 is pretty old and is not supported anymore. And there is no possibility to change status in version 5.62bbackx wrote:The version they're using is version 5.62 Beta, which is rather old, but it contains already a lot of tests.
Correct. It was introduced in version 6.50bbackx wrote:I installed version 7.78 on a virtual machine and there I found the 'Optional Status Processing' you mention. Apparently, this is something that was added somewhere between version 5.62 and 7.78
Good choice. Lots of improvements and new features have been added since verion 5.62: http://www.ks-soft.net/hostmon.eng/news.htmbbackx wrote:Looks like I better update to the newest version first, or leave the status for what it is...
Regards,
Max
Looks like management will also agree in updating.
I installed the newest version (8.01beta) on a test system. All agent-info and tests are exported from the old system and imported in the new test system.
The agents are still the old version. Is there any risk in updating the agents to the newest version?
For the moment, the old system should remain running (at least the tests that are still running
), is this possible with updated agents?
(I get some Unknown command and Unknown operator errors and I think the reason is that the agents are still the old version)
I installed the newest version (8.01beta) on a test system. All agent-info and tests are exported from the old system and imported in the new test system.
The agents are still the old version. Is there any risk in updating the agents to the newest version?
For the moment, the old system should remain running (at least the tests that are still running

(I get some Unknown command and Unknown operator errors and I think the reason is that the agents are still the old version)
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Good news.bbackx wrote:Looks like management will also agree in updating.

Truth to say, we recommend to upgrade the agents along with upgrading HostMonitor. However, in your case, I would suggest you to update agents when you move version 8.01 to production. So, while version 5.62 is the main version, I woud not suggest you to update agents.bbackx wrote:I installed the newest version (8.01beta) on a test system. All agent-info and tests are exported from the old system and imported in the new test system.
The agents are still the old version. Is there any risk in updating the agents to the newest version?
Correct, you receive these errors because new functionality was added to some test methods (e.g. "NT Event Log" and "Text Log"). Anyway, if you upgraded agents, it would affect your 5.62 version. So, please, wait until version 8.01 became main version.bbackx wrote:(I get some Unknown command and Unknown operator errors and I think the reason is that the agents are still the old version)
Also I recommend you to figure out license question. Definitely, licence for version 5.62 will not work for version 8.01. So, if you are holder of Enterprise License with Life Time updates option, you just should send request to sales@ks-soft.net and we will issue new Registration Code for you at no cost. Otherwise, you may upgrade to the version 8.01 with 50% discount: http://www.ks-soft.net/hostmon.eng/regmon.htm#upgrades
Regards,
Max