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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

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

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Directories themselves don't really have "space" in the sense that a disk has unless you're using quotas in Windows.
Former Nagios employee
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

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

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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
Locked