Page 2 of 2

Re: New Perl plugins not pulled down by NRDS_Win

Posted: Thu Nov 15, 2012 7:42 pm
by chris_merris
We figured it out - looks like only plugins with 3 letter extensions get pulled down. My coworker copied one of the .exe files in the Windows plugin folder (on the XI server), and renamed it. After configuring a new NRDS test with the new executable, it successfully pulled the file down. We then tried a .txt file, and a .prl file, and both of those work, while .pl files still don't work.

We looked at the NRDS_Win.vbs code (R3 version) and it looks like the problem is the regex around line 483:

Code: Select all

file_name.pattern = "\$PLUGIN_DIR\$\\([^\\/:\*\?""<>\|]+\.[\w]{3})"
It may be good to do 3 letter extensions, but also allow the common scripting languages like pl, py, etc...

Thanks for your time and effort helping us - and best of luck with NRDS going forward - it seems very promising, and I'm sure it will only get better with time.

Re: New Perl plugins not pulled down by NRDS_Win

Posted: Fri Nov 16, 2012 8:44 am
by scottwilkerson
Wow, thank you for finding this bug and posting back.

I will definitely pass this on to the NRDS_Win developer.

Re: New Perl plugins not pulled down by NRDS_Win

Posted: Fri Nov 16, 2012 2:26 pm
by yancy
chris_merris,

Thank you for catching that. I posted a new R3 version on exchange that doesn't limit the extension name to 3 characters. The only restriction is that the it must be a valid windows filename, and can't contain spaces.

The new regular expression match looks like this:

file_name.pattern = "\$PLUGIN_DIR\$\\([^\\/:\*\ ?""<>\|]+\.[\w]*)"

New build is here:
http://exchange.nagios.org/directory/Ad ... in/details

Regards,

-Yancy