Page 1 of 1

Is it possible to monitor space on a subdirectory of c:\

Posted: Thu Feb 27, 2014 11:01 am
by billperrotta
this statement controls drive monitoring see below

define service{
use generic-service
host_name mail-ahgserver
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l C -w 80 -c 90
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace

would something like see below work

define service{
use generic-service
host_name mail-ahgserver
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l C:\Windows\System32\Logfiles\ W3svc -w 80 -c 90
notification_interval 1440
notification_options w,r
notification_period work-holiday
servicegroups drivespace


Or am I totally off and need an entirely different command?

I'm coming in cold and am attempting to get used to nagios

Re: Is it possible to monitor space on a subdirectory of c:\

Posted: Thu Feb 27, 2014 11:07 am
by tmcdonald
Directories themselves don't really have "space" in the sense that a disk has unless you're using quotas in Windows.

Re: Is it possible to monitor space on a subdirectory of c:\

Posted: Thu Feb 27, 2014 1:01 pm
by billperrotta
So if I do not enable windows disk quotas in otherwords there is no way to monitor the space in a subdirectory of c: ie "c:\programfiles" with nagios?

Re: Is it possible to monitor space on a subdirectory of c:\

Posted: Thu Feb 27, 2014 4:48 pm
by slansing
I don't believe you can with that plugin, it may be possible but due to how directories work it may not be, you can always take a peek at custom plugins on the exchange:

exchange.nagios.com