Check File Size (Visit this link)
from 0 votesUsage:
check_filesize -p "path" -f "file(s)" -w -c
Nagio/NRPE_NT VBS Script to check the size of file(s) inside a Folder.
Usage:
check_filesize -p "path" -f "file(s)" -w -c
Example:
check_filesize -p "E:\mdbdata" -f priv1.edb,priv1.stm,pub1.edb,pub1.stm -w 5000 -c 10000
Sample Output:
STATUS OK - priv1.edb = 21.690,00(MB) - priv1.stm = 13.680,00(MB) - pub1.edb = 735,00(MB) - pub1.stm = 6,00(MB)
It accepts multiple file checks, the Warning/Critical thresholds (-w,-c) should be passed in Megabytes.
The alarm will be raised if any files reach the threshold.
Also the path can be in UNIX format \ or Windows format / the script will accept both.
EASY HOWTO:
1-Place the script
Copy the script to "c:\nrpe_nt\plugins\v2\" or whatever location your NRPE_NT .vbs are at.
2-Set nrpe_nt.cfg
Inside the NRPE_NT Client Server add the command line in the file nrpe_nt.cfg:
command[check_filesize]=cscript.exe //nologo //T:60 c:\nrpe_nt\plugins\v2\check_filesize.vbs -p "$ARG1$" -f "$ARG2$" -w "$ARG3$" -c "$ARG4$"
3-Restart the nrpe_nt service
net stop nrpe_nt
net start nrpe_nt
4-Define the command inside nagios
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_filesize -a $ARG1$ $ARG2$ $ARG3$ $ARG4$
Direct Download here
http://www.xoroz.com/files/scripts/nagios/check_filesize.vbs
Usage:
check_filesize -p "path" -f "file(s)" -w
Example:
check_filesize -p "E:\mdbdata" -f priv1.edb,priv1.stm,pub1.edb,pub1.stm -w 5000 -c 10000
Sample Output:
STATUS OK - priv1.edb = 21.690,00(MB) - priv1.stm = 13.680,00(MB) - pub1.edb = 735,00(MB) - pub1.stm = 6,00(MB)
It accepts multiple file checks, the Warning/Critical thresholds (-w,-c) should be passed in Megabytes.
The alarm will be raised if any files reach the threshold.
Also the path can be in UNIX format \ or Windows format / the script will accept both.
EASY HOWTO:
1-Place the script
Copy the script to "c:\nrpe_nt\plugins\v2\" or whatever location your NRPE_NT .vbs are at.
2-Set nrpe_nt.cfg
Inside the NRPE_NT Client Server add the command line in the file nrpe_nt.cfg:
command[check_filesize]=cscript.exe //nologo //T:60 c:\nrpe_nt\plugins\v2\check_filesize.vbs -p "$ARG1$" -f "$ARG2$" -w "$ARG3$" -c "$ARG4$"
3-Restart the nrpe_nt service
net stop nrpe_nt
net start nrpe_nt
4-Define the command inside nagios
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_filesize -a $ARG1$ $ARG2$ $ARG3$ $ARG4$
Direct Download here
http://www.xoroz.com/files/scripts/nagios/check_filesize.vbs
Submitted by: 4scriptomini
Hits: 1229
Overall downloads: 0
Added: 2008-10-22 00:00:00
Last Modified: 2009-10-30 10:18:05
Comments
Be the first to comment this project.
Leave a reply
If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.
-
Basic NRPE_NT Plugins
from 0 votesThe plugins are DOS programs written in C/C++ The nrpe_nt service calls these plug-ins and they return the following status on exit with a status string for information printed to stdout. -
Check Active Directory - TK
4 from 1 votesPerforms Active Directory Health Check on domain controllers and member servers. -
WMI agentless plugins
from 0 votesThis project consists of a set of VBS scripts that use Microsoft .NET Framework and WMI to retrieve data from remote Windows hosts without the need for agents on the remote hosts. Current release is 1.3 (December 5, 2008). -
NagiosPluginsNT
from 0 votesNagiosPluginsNT is a comprehensive collection of Nagios check plugins written in C# .NET. The goal is to eventually have a Windows equivalent to the official Nagios plugins for *NIX, but with the power of WMI for Windows monitoring. -
Check File - TK
4 from 1 votescheck_file is a Nagios NRPE plugin for checking simple files or files in directories by using various types of filters like file count, size, age or name match.
-
Eventlog Checker - dotNET Based
from 0 votesChecks a specified Windows Eventlog for any specified event types. Supports filtering, searching for event type ids, etc. This requires at least the .NET 1.1 Framework to be installed on the server. -
Symantec Anti-virus check
from 0 votesCheck if local server has the same virus sig file as the anti-virus server. -
check_ad_time.vbs
4 from 2 votesCheck the offset of your server vs active directory domain. -
check_ad_fsmo.vbs
from 0 votesScript to check if your selected Domain Controller owns the FSMO roles you specify. -
check_windows_raids.wsf
from 0 votesCheck the status of Windows Software RAID



