man, I've never used a VBSCript before, it has been a struggle to get it usable.
had to change the windows registry and set the default script engine to CScript.exe
all new to me
Anyway, I can successfully run the plugin script on the client windows machine.
C:\Program Files (x86)\Nagios\NCPA\plugins>check_files.vbs -p "D:\Delta Incoming\incomingData\PersistentStore\Delta IBM MQ Series" -w 50 -c 60
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
OK: 19 files were matched.|count=19
BUT I cannot seem to get the Nagios server to call it successfully??
[root@alpcts000001083 libexec]# ./check_ncpa.py -H 3.239.245.147 -t gold3726 -M plugins/check_files.vbs -a '-p "D:\Delta Incoming\IncomingData\PersistentStore\Delta IBM MQ Series" -w 100 -c 200'
CScript Error: Can't find script engine "VBScript" for script "C:\Program Files (x86)\Nagios\NCPA\plugins\check_files.vbs".
I fixed it so cscript.exe doesn't need to proceed the plugin call. I had corrected this issue on the Windows server.
would you have any ideas? seems I'm missing something, I'll keep looking, see if I can get it first this time