Nagios wrapper.vbs(0, 1) Microsoft VBScript runtime error: Path not found in check_files.vbs

I had this error message today and wasn’t able to easily fix it. It took me a while to find out that this was caused by spaces in the folder names. Although I had the whole path in double quotes (“E:\\MSQL Data\\SQLAPPS1\\MSSQL$SQLAPPS1\\BACKUP”) the script did not finish. To make it work you have to double quote the argument under [Wrapped Scripts] in the client ini file (….check_files.vbs “$ARG1$” $ARG2$ …..). Especially if you have Windows machines and Windows experts working on them you’ll find some strange folder/filenames like the one above. What is the f&^%ing ‘$’ doing in it? Another way to waste my time. If you have special characters in folder- or filenames you must mask those with a \. So the above path must be (“E:\\MSQL Data\\SQLAPPS1\\MSSQL\$SQLAPPS1\\BACKUP”) to get the script working.

About Juergen Caris

I am 54yo, MSc(Dist) and BSc in Computer Science, German and working as a Senior Server Engineer for the NHS Lothian. I am responsible for the patient management system, called TrakCare. I am a UNIX/Linux guy, working in this sector for more than 20 years now. I am also interested in robotics, microprocessors, system monitoring, Home automation and programming.
This entry was posted in Nagios, Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published.