This template returns the number of files on the target computer.
Prerequisites: SSH and Perl installed on the target server.
Credentials: Root user on target server.
Monitored Components
Linux-Unix File Count
This monitor returns the number of files on the target computer.
Note: Before using this monitor, the correct arguments should be set. This monitor requires the following arguments:
perl ${SCRIPT} path_to_file1 [path_to_file2] ...
where
path_to_file1
This is full path to the target file or files. Regular expressions are allowed.
[path_to_file2] ...
Additional arguments allow the monitor to get statistics for additional target files. The resulting statistics will be shown as the total number of all files in all arguments.
Following is an example using the Scripts Arguments field:
perl ${SCRIPT} /tmp/prod*.log
perl ${SCRIPT} /tmp/prod*.log /tmp/prod*.err /var/log/status*
Last updated 12/2/2014