Script result returned as 'Invalid Result()"

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
User avatar
plambrecht
Posts: 151
Joined: Wed May 19, 2004 8:11 am
Location: Belgium
Contact:

Script result returned as 'Invalid Result()"

Post by plambrecht »

Hi,

Finaly got My ArcServe script up and running... Got one problem:

The script returns the values from the logfile.
eg: Total Size (Disk) returns 'scriptres:OK:114.401,33 MB'
Since there is nothing about a thousans seperator in the manual, I changed the output ot 'scriptres:OK:114401,33 MB'
According the manual this is a valid output to of the script (I have a , as decimal seperator in Regional Options)
3a. If you want Log Analyzer will be able correctly process "Reply" values and displays charts, use one of the following formats for "Reply" value:
decimal_number (like '123', '0', '6456.45'. as decimal separator use symbol that is specified on your system, usually a dot (.) or a comma (,))
decimal_number + space + 'Kb' (like '512 Kb', '64 Kb')
decimal_number + space + 'Mb' (like '1024 Mb', '5 Mb')
decimal_number + space + 'Gb' (like '12 Gb', '4 Gb')
decimal_number + space + '%' (like '50 %', '99 %')
decimal_number + space + 'ms' (like '100 ms', '5400 ms')
The result however is not accepted by Hostmonitor...
Should it have to do with the decimals and the MB combination ? or do you have another idea?

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

Post by KS-Soft »

What test method do you use? Active Script or Shell Script?
scriptres:OK:114401,33 MB should be correct result for Shell Script.
Probably it displays quotation marks in the result?
scriptres:OK:114401,33 MB - correct result string
"scriptres:OK:114401,33 MB" - wrong result

Regards
Alex
User avatar
plambrecht
Posts: 151
Joined: Wed May 19, 2004 8:11 am
Location: Belgium
Contact:

Post by plambrecht »

Alex,

Completly my mistake. Used a wrong logfile to parse, sry..
HM accept results as it should now

P.
Post Reply