Best Practice: Each VBScript should have a US locale


What does this best practice check for?

Many workflows in your management pack may run scripts. As a best practice, all scripts in an MP should specify an English locale upfront.

Why is it important to follow this best practice? What is the impact of not following this best practice?

Not specifying an English locale in a script can lead to globalization problems. Not setting up the locale may break functionality if the MP attempts to received and pass around locale specific data within the code. It is important to switch to en-us locale since otherwise, functions like CDblwill work incorrectly with some data returned by other data providers.

How can I fix this in my MP?

Sample VB Script:


 <Arguments>"$Config/Host$" "$Config/Server$" "$Config/DebugFlag$"</Arguments>



Option Explicit