Hello, I need to be able to count the number of files that exist in a folder. I have access to that folder by FTP or through the operating system (windows 2019)
How could I accomplish this task?
For example, enter FTP/Windows and give an alert if there are less than 5 files
Simple Count files in folder FTP
Re: Simple Count files in folder FTP
Hi
I went to Nagios Exchange and searched on "count files" and found quite a few plugins:
https://exchange.nagios.org/index.php?o ... nt%20files
I'm sure one of those will work for you.
Thanks!
I went to Nagios Exchange and searched on "count files" and found quite a few plugins:
https://exchange.nagios.org/index.php?o ... nt%20files
Code: Select all
count_file
check a directory for a min/max number of files for unix/windows
/Category:Linux
check_reasonable_folder_file_countwww.thetechgroup.com/
This script is a revision of directory_file_count.wsf which counts the number of files contained within a directory path.
/Category:Windows NRPE
check_iferror.py
Nagios plugin to check interface error count OIDs via SNMP, caching the result and alerting if the user defined threshold in the user defined timeframe is reached. Optionally: - Checks operational state of the interface as well. Works with Counter32 ...
/Category:Network Connections, Stats and Bandwidth
LicenseGPL
check_ftp_fullywww.deathwing00.org/wordpress/?p=85
This script uses lftp, a sophisticated ftp/http client, to check not only that a give FTP account is accessible, but that it is also able to list files and directories, to get and put files and to delete files. This simple script is fast, easy to configur ...
/Category:FTP
check_file_count_below.sh
This is going to check the number of files in a specific directory is below certain thresholds and return results in a nagios compatible format. Usage: -d = Directory to be checked. Example: "-d /tmp/". Required parameter. -w,-c = Warnin ...
/Category:File System
LicenseGPL
check_file_count.shoskibbe.blogspot.de
Checks a given path for an amount of files and returns warning/critical including performance data Also supports include/exclude filelists and multiline output
/Category:Reporting
LicenseGPL
check_file_count
check_file_countPlugin to check/count the number of files and/or directories (incl/excl subs). Warnings on low/high/equal.
/Category:File System
LicenseGPL
check_files_count
check_files_countIf too many files under a folder, raise an alert. Check more: https://github.com/DennyZhang/monitoring/tree/master/files/check_file_count
/Category:Log Files
check_files.vbs - external script to be used with nscli...
Check files under a given path against various criteria: namefilter, age, size counts the files which match the given criterias and gives alarm if the count is higher or lower than the threshold (bounds definition conforms to nagios plugin guidelines ...
/Category:Windows
LicenseGPL
check_files.pl - Check files age and number of files in...william.leibzon.org/nagios/
This plugin takes "ls"-like file spec (such as *.tmp) and counts how many such files are there allowing to send alerts if its too many. It can also check file age and alert if file or directory has not been updated in a while. Performance info on number o ...
/Category:File System
LicenseGPL
check_e2fs_next_fsckgithub.com/oernii/nagios-plugins
This script checks all mounted ext2/3 filesystems with dumpe2fs/tune2fs. It checks the mount count againts the max and also the next scheduled check. It gives WARNING in case there is 7 or less days to next check of if mount counter is nearing ...
/Category:File System
LicenseGPL
check_dir_filesfelipeferreira.net
Counts how many files are in the directory and subdirectories written in bash orginal from Gerd Stammwitz
/Category:File System
check_dir_filecount.sh
Nagios plugin to check number of files in a directory. Written in bash, intended to be used on Linux systems.
/Category:Linux
CheckFileCount
Monitor file count of a directory and notify if the count of files exceedes threshold. Shell script (sh), GPL
/Category:Linux
Check folder content via FTP
Perl plugin that count the number of files in an FTP folder.
/Category:FTP
Check Files - Windows NRPE plugin
Counts the number of files in given directory and its sub-directories, with optional filters applied. The output is compatible with Nagios.
Thanks!