'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ' "check_reasonable_folder_file_count.wsf" ' ' Update 09/12/2007 ver 0.1 ' Author: The Tech Group, Inc. ' www.thetechgroup.com ' Credits ' Joe Garfunkel - JGarfunkel@saipeople.com ' For "directory_file_count.swf" which we copied and modified. ' ' -------------------------------------------------------------- ' ' This script counts the number of files contained within a ' directory path. For example, the number of files contained ' in an email queue directory. ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' directory_file_count (nrpe_nt-plugin) 1.1 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. This plugin will count the number of files that are contained within a specific directory path. For example, the number of files contained in an mail queue directory. It produces WARNING if number is less than warning parameter. It produces CRITICAL if number is greater than CRITICAL parameter This version of the "check_reasonable_folder_file_count" plugin does not perform any validation on your command-line options. Please follow the syntax provided, and double-check that you have typed your options correctly. -Thanks! An example execution command to run this plugin from the nrpe.cfg follows. The command should all be entered on one line, but is wrapped here for readability. command[directory_file_count]=c:\winnt\system32\cscript.exe //NoLogo //T:30 c:\nrpe_nt\check_reasonable_folder_file_count.wsf c: \temp\servstat\ 10 100 In this example, the number of files must be no less than 10, and no greater than 100 Drive may be network share such as \\server\share Folder must be in a syntax such as \FOLDER to make proper folder when you concat F:\folder or \\net\share\folder