New Perl plugins not pulled down by NRDS_Win

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New Perl plugins not pulled down by NRDS_Win

Post by scottwilkerson »

Wow, thank you for finding this bug and posting back.

I will definitely pass this on to the NRDS_Win developer.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: New Perl plugins not pulled down by NRDS_Win

Post 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
Locked