folder_watch.pl with whitespace in path
Posted: Tue Dec 13, 2016 6:03 am
this works fine
but the sub-folder has whitespace in it's path
without the plugin this work
but when i use that with the plugin it doesn't
Code: Select all
./folder_watch.pl -C 'ssh [email protected] ls -l /mnt/SAN_gskVideo/' -F '[^\0]+' -T 'dir' -w 1 -c 5 -f
CRITICAL - [^\0]+ is 22 (more than 5) | '[^\0]+'=22;1;5;;;Code: Select all
./folder_watch.pl -C 'ssh [email protected] ls -l /mnt/SAN_gskVideo/Auto\ Archive/' -F '[^\0]+' -T 'dir' -w 1 -c 5 -f
OK - 0 [^\0]+ files found | '[^\0]+'=0;1;5;;;Code: Select all
[nagios@localhost libexec]$ ssh [email protected] ls -l '/mnt/SAN_gskVideo/Auto\ Archive/'
total 448
drwxr-xr-x 1866 root root 434176 Dec 5 22:07 Logs
drwxrwxrwx 3 root root 2 Dec 13 10:53 Problem Files
drwxrwxrwx 2 root root 24576 Dec 5 22:07 To ArchiveCode: Select all
[nagios@localhost libexec]$ ./folder_watch.pl -C 'ssh [email protected] ls -l '/mnt/SAN_gskVideo/Auto\ Archive/'' -F '[^\0]+' -T 'dir' -w 1 -c 5 -f
OK - 0 [^\0]+ files found | '[^\0]+'=0;1;5;;;
[nagios@localhost libexec]$