Monitoring File count using wmi/nrpe/command
Posted: Wed Feb 10, 2021 12:54 pm
Hi
I want to setup monitoring of file count in a particular folder using wmi/command/nrpe.
Can you please advise how can setup using command or plugin etc.
I tried this using check command "check_file_service".
I created a new command as:
$USER1$/folder_watch.pl -H $HOSTADDRESS -u $ARG1$ -p $ARG2$ -f $ARG3$ -D $ARG4$ $ARG5$
where Arguments are as:
ARG1 = 'username'
ARG2 = 'password'
ARG3 = files
ARG4 = C:\test (path of folder which we want to monitor files)
ARG5 = -F '[^\0] ' -w 5 -c 10
Can you please advise how to fix this or if there is any other way to achieve this?
Thanks
I want to setup monitoring of file count in a particular folder using wmi/command/nrpe.
Can you please advise how can setup using command or plugin etc.
I tried this using check command "check_file_service".
I created a new command as:
$USER1$/folder_watch.pl -H $HOSTADDRESS -u $ARG1$ -p $ARG2$ -f $ARG3$ -D $ARG4$ $ARG5$
where Arguments are as:
ARG1 = 'username'
ARG2 = 'password'
ARG3 = files
ARG4 = C:\test (path of folder which we want to monitor files)
ARG5 = -F '[^\0] ' -w 5 -c 10
Can you please advise how to fix this or if there is any other way to achieve this?
Thanks