Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@Barosch
Favorites0
Views
Projects0
First of all...thank you for this nice script. But I have a small problem. Running the script from the cli works fine: cscript //nologo .check_ad.vbs OK - services: OK. replications: OK. advertising: OK. fsmocheck: OK. ridmanager: OK. machineaccount: OK. But when i execute the script with "nscp test" the output is cropped D ext-script Command line: cscript.exe //T:30 //NoLogo scriptslibwrapper.vbs check_ad.vbs L cli OK: OK - NSClient++ Version is 0.4.3.143 Can you help me with this problem? Thank you in advance.
Reviewed 10 years ago
If you try the create a query over multiple servers you get the following error message (from freetds): Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query. Adding $connection->query("SET ANSI_NULLS ON"); $connection->query("SET ANSI_WARNINGS ON;"); fixes the error. Greetings
Reviewed 6 years ago