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.
reply_integer not working
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Try to enclose the variables into '. E.g. '%Reply_Integer%'<'8545894400'fishvict wrote:I'm totally missing something, because this is still not working.
Sure. You may setup Send Email action with %Reply_Integer% in mail template.fishvict wrote:Is there any way to display what %reply_integer% is returing
Regards,
Max
1) You don't need %Reply_Integer%. Use %Reply% variable and compare it to '8150 Mb'. Quote from the manual
Regards
Alex
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'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'
Regards
Alex
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.
"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.