Path and list all files in a directory
Posted: Tue Jan 26, 2016 5:41 pm
Hello,
I'm trying to list the files in a directory. Right now I'm using check_nrpe and check_files.
I got it to work from the command line and when I hardcode the path and pattern into centreon.
However, when i replace the values with ARG's it either returns no files found or Files\Internet is not an option. Any help would be appreciated!
$ARG1$ **.**.*.**
$ARG2$ C:\Program Files\Internet Explorer\
$ARG3$*.dll
I'm pretty sure it's something wrong with my ARG2 But, they could all be wrong
Thank you for your help!
Max
I'm trying to list the files in a directory. Right now I'm using check_nrpe and check_files.
I got it to work from the command line and when I hardcode the path and pattern into centreon.
Code: Select all
$USER1$/check_nrpe -H **.**.*.** -c check_files -a path='C:\Program Files\Internet Explorer\' pattern=*.dll show-allHowever, when i replace the values with ARG's it either returns no files found or Files\Internet is not an option. Any help would be appreciated!
Code: Select all
$USER1$/check_nrpe -H $ARG1$ -c check_files -a path=$ARG2$ pattern=$ARG3$ show-all$ARG1$ **.**.*.**
$ARG2$ C:\Program Files\Internet Explorer\
$ARG3$*.dll
I'm pretty sure it's something wrong with my ARG2 But, they could all be wrong
Thank you for your help!
Max