|
View previous topic :: View next topic |
Author |
Message |
plambrecht
Joined: 19 May 2004 Posts: 151 Location: Belgium
|
Posted: Fri Oct 01, 2004 10:32 am Post subject: Script result returned as 'Invalid Result()" |
|
|
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)
Quote: | 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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Oct 01, 2004 12:15 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
plambrecht
Joined: 19 May 2004 Posts: 151 Location: Belgium
|
Posted: Fri Oct 01, 2004 12:30 pm Post subject: |
|
|
Alex,
Completly my mistake. Used a wrong logfile to parse, sry..
HM accept results as it should now
P. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|