KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Script result returned as 'Invalid Result()"

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
plambrecht



Joined: 19 May 2004
Posts: 151
Location: Belgium

PostPosted: Fri Oct 01, 2004 10:32 am    Post subject: Script result returned as 'Invalid Result()" Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Oct 01, 2004 12:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
plambrecht



Joined: 19 May 2004
Posts: 151
Location: Belgium

PostPosted: Fri Oct 01, 2004 12:30 pm    Post subject: Reply with quote

Alex,

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

P.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index