What does %Reply_Integer% return?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
bbackx
Posts: 46
Joined: Thu May 07, 2009 9:15 am

What does %Reply_Integer% return?

Post by bbackx »

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

Post by KS-Soft »

If %Reply% is 26.365 and '.' is decimal separator then %Reply_Integer% will return 26
If %Reply% is 26.365 and '.' is not valid decimal separator then %Reply_Integer% will return 0 (becouse '26.365' in not a number)

Regards
Alex
bbackx
Posts: 46
Joined: Thu May 07, 2009 9:15 am

Post by bbackx »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

bbackx wrote:Is there any way to determine if '.' is a decimal separator?
You may use standard Windows "Regional and Language Options" applet to find out, what decimal separator is used on the system.
bbackx 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?
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)
Regards,
Max
Paul_NHS
Posts: 59
Joined: Wed Feb 25, 2009 6:17 am

Post by Paul_NHS »

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
bbackx
Posts: 46
Joined: Thu May 07, 2009 9:15 am

Post by bbackx »

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

Although the script you mention will definitely come in handy for some other parameters I'd like to monitor :-)

regards,
Ben
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

bbackx 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)?
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 ... processing

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)
Expression tells HostMonitor to change status to "Warning" if value less than 25 is retrieved. About macro variables you may read here: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro

Regards,
Max
bbackx
Posts: 46
Joined: Thu May 07, 2009 9:15 am

Post by bbackx »

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...
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

bbackx wrote:The version they're using is version 5.62 Beta, which is rather old, but it contains already a lot of tests.
Yeah, version 5.62 is pretty old and is not supported anymore. And there is no possibility to change status in version 5.62
bbackx 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 :-)
Correct. It was introduced in version 6.50
bbackx wrote:Looks like I better update to the newest version first, or leave the status for what it is...
Good choice. Lots of improvements and new features have been added since verion 5.62: http://www.ks-soft.net/hostmon.eng/news.htm

Regards,
Max
bbackx
Posts: 46
Joined: Thu May 07, 2009 9:15 am

Post by bbackx »

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)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

bbackx wrote:Looks like management will also agree in updating.
Good news. :-)
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?
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 get some Unknown command and Unknown operator errors and I think the reason is that the agents are still the old 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.

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
Post Reply