reply_integer not working

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
fishvict
Posts: 34
Joined: Tue Dec 16, 2003 10:47 am

reply_integer not working

Post by fishvict »

I'm trying to do a drive space test to alert me only when the drive space gets between x and y mb.

I've created an advanced mode show message alert that says (for testing anyways)

%Reply_Integer% < 8150

This alert will not work.
The alert goes to a bad status without any problem, and I'll get a pop message if I change to standard mode (but that doesn't accomplish what I need to do).

Thanks.
fishvict
Posts: 34
Joined: Tue Dec 16, 2003 10:47 am

Post by fishvict »

I'm totally missing something, because this is still not working. Is there any way to display what %reply_integer% is returing? The %reply% is returning "xxxx mb".

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

Post by KS-Soft Europe »

fishvict wrote:I'm totally missing something, because this is still not working.
Try to enclose the variables into '. E.g. '%Reply_Integer%'<'8545894400'
fishvict wrote:Is there any way to display what %reply_integer% is returing
Sure. You may setup Send Email action with %Reply_Integer% in mail template.

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

Post by KS-Soft »

1) You don't need %Reply_Integer%. Use %Reply% variable and compare it to '8150 Mb'. Quote from the manual
Advanced mode allows you to use logical expression as a condition that triggers the alert action. An alert action is performed when a logical expression of a condition is true. In these expressions you can use:
a) numbers and strings (in quotes). Strings that contain a number plus one of the following unit specificators [ms, Kb, Mb, Gb, %] are compared as numbers, so that '900 Kb' is less than '9 Mb'
2) Do not use '%Reply_Integer%'<'8545894400' expression with quotation marks. According to the same manual HostMonitor will compare these 2 variables as strings, so '90' is greater then '100000'

Regards
Alex
fishvict
Posts: 34
Joined: Tue Dec 16, 2003 10:47 am

Post by fishvict »

This is still not working.

"alert if free space less than 8250 Mb"

Here is exactly what my expression looks like:

(%Reply% < '8250 Mb')

(I've adjusted the test for 8250 Mb... I'm testing this on my local workstation, which changes drive space daily)

I've tried it without the parenthesis. I've tried changing the "Mb" to "mb".

I'm officially baffled now.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Here is exactly what my expression looks like: (%Reply% < '8250 Mb')
Should be ('%Reply%' < '8250 Mb')

Regards
Alex
Post Reply