Check file size

Bill Jacqmein wrjacqmein at gmail.com
Fri Apr 28 01:20:30 CEST 2006


Escape the spaces?
"d:\Program\ Files\Exchsrvr\MDBDATA\priv1.stm"
"d:\Program\ Files\Exchsrvr\MDBDATA\priv1.edb"

http://nscplus.medin.name/index.php/CheckFileSize
Was also seeing double backslashes from the link above
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a
MaxWarn=2G MaxCrit=4G File=c:\\pagefile.sys MaxWarn=1K MaxCrit=512
File=c:\\boot.ini


On 4/27/06, ThomasC. <shoktai at gmail.com> wrote:
> Hi List,
>
> I am trying to monitor the size of Exchange database files.
> I have tried several ways to handle space character in file path but
> none worked. Anyone has an idea ?
>
> The command is :
> check_exchangeDB=inject CheckFileSize MaxWarn=15G MaxCrit=16G
> File=d:\Program Files\Exchsrvr\MDBDATA\priv1.stm File=d:\Program
> Files\Exchsrvr\MDBDATA\priv1.edb
>
> I have tried that :
>
> check_exchangeDB=inject CheckFileSize MaxWarn=15G MaxCrit=16G
> File="d:\Program Files\Exchsrvr\MDBDATA\priv1.stm" File="d:\Program
> Files\Exchsrvr\MDBDATA\priv1.edb"
>
> but it returns (in Test mode) Unknown argument :
> Files\Exchsrvr\MDBDATA\priv1.stm
>
> Thanks in advance.
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list