Command Definition with Spaces?
Posted: Mon Apr 07, 2014 5:16 am
Hi,
Tried searching but couldn't find anything.
I'm using the 'check_mostrecentfile.vbs' plugin and it works a treat! However when specifying a path to the directory with spaces in, it complains about not passing in the required 4 arguments (directory, warning, critical, size)
This fails:
[root@svlvpoc001 plugins]# ./check_nrpe -H IP -p 5666 -c check_mostrecentfile -a c:/test log/ 50 60 1
enter a valid Warning age (minutes): i.e. 1440
This works:
[root@svlvpoc001 plugins]# ./check_nrpe -H IP -p 5666 -c check_mostrecentfile -a c:/temp/ 50 60 1
CRITICAL: test.txt is 2355 minutes old.
I know the unix shell has some oddities with / and the like but have tried so many different iterations without any success.
Anyone got any ideas?
Thanks,
Tried searching but couldn't find anything.
I'm using the 'check_mostrecentfile.vbs' plugin and it works a treat! However when specifying a path to the directory with spaces in, it complains about not passing in the required 4 arguments (directory, warning, critical, size)
This fails:
[root@svlvpoc001 plugins]# ./check_nrpe -H IP -p 5666 -c check_mostrecentfile -a c:/test log/ 50 60 1
enter a valid Warning age (minutes): i.e. 1440
This works:
[root@svlvpoc001 plugins]# ./check_nrpe -H IP -p 5666 -c check_mostrecentfile -a c:/temp/ 50 60 1
CRITICAL: test.txt is 2355 minutes old.
I know the unix shell has some oddities with / and the like but have tried so many different iterations without any success.
Anyone got any ideas?
Thanks,