NSClient++ Help (#1) - CheckFileSize Reports 0B (#783) - Message List

CheckFileSize Reports 0B

Greetings all.

I've got an issue with CheckFileSize returning a file size of 0B, regardless of what I do to set it up. Here are the necessary files for consideration.

Debug from NSClient++ on the Windows server:

2011-05-12 20:05:01: debug:NSClient++.cpp:1106: Injecting: CheckFileSize: ShowAll, MaxWarn=1M, MaxCrit=1.8G, File:DBFile=c:\Program Files\Microsoft SQL Server\MSSQL$CRSSQL\Data\msdbdata.mdf$

2011-05-12 20:05:01: debug:modules\CheckDisk\CheckDisk.cpp:411: Looking for: pattern: c:\Program Files\Microsoft SQL Server\MSSQL$CRSSQL\Data, pattern: msdbdata.mdf$

2011-05-12 20:05:01: debug:NSClient++.cpp:1142: Injected Result: OK 'OK: DBFile: 0B'

2011-05-12 20:05:01: debug:NSClient++.cpp:1143: Injected Performance Result: DBFile'=0B;1048576;1073741824; '

commands.cfg in Nagios:

define command{

command_name check_uccxdb command_line $USER1$/check_nrpe -H 172.31.8.37 -p 5666 -c CheckFileSize -a ShowAll MaxWarn=1M MaxCrit=1.8G File:DBFile=c:\\Program\ Files
Microsoft\ SQL\ Server
MSSQL\$CRSSQL
Data
msdbdata.mdf }

service file in Nagios:

define service{

use generic-service,srv-pnp host_name UCCX service_description DB Size check_command check_uccxdb }

I'm this close. :-) Any help would be appreciated.

Sean

Subscriptions