Question to disk size growth check?

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
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Question to disk size growth check?

Post by mp1 »

Hi,

I have a disk file growth check implemnted, like f.e. in this post:

http://www.ks-soft.net/cgi-bin/phpBB/vi ... ght=growth

Test method UNC with "Tune up Reply value" - [('%SuggestedLastReply%' div 1048576) - ('%SuggestedReply%' div 1048576)] Mb and an Advanced Alert with this expression: ('%SuggestedLastReply%'-'%SuggestedReply%') > '20 Mb'

It's working without problems, although is there a possibility to get the status of the test to bad/down? The test will be always ok, I would like to see the test as bad in the RCC.

Thanks in advance

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

Post by KS-Soft Europe »

You may set "Warning" status for test item, using the same expression that you are using for the action.

Please check the manual or visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... ningstatus
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

KS-Soft Europe wrote:You may set "Warning" status for test item, using the same expression that you are using for the action.

Please check the manual or visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... ningstatus
I already checked this, although I will get the following error with the expression, which is working in the Alert options:

('%SuggestedLastReply%'-'%SuggestedReply%') > '20 Mb'

error: "is not number in expression: ("-'100') > '20 Mb'
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You should just add zero before %SuggestedLastReply% variable.
Try the followign expression:
('0%SuggestedLastReply%' - '%SuggestedReply%') > '20 Mb'
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

KS-Soft Europe wrote:You should just add zero before %SuggestedLastReply% variable.
Try the followign expression:
('0%SuggestedLastReply%' - '%SuggestedReply%') > '20 Mb'
Thanks, that's it :-)

Is there a simple explaination why to add the 0? ;-)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

%SuggestedLastReply% variable has empty value in design time for Warning/Normal status expressions.
Adding zero to the beginning of the variable allows to validate expression.
e.g. when %SuggestedLastReply% is empty:
'%SuggestedLastReply%' == <empty value> (causes expression check error)
'0%SuggestedLastReply%' == 0
when %SuggestedLastReply% has some value (e.g. %SuggestedLastReply% == 300)
'0300' == 300
Post Reply