[Nagiosplug-help] Check the space on a windows folder

Anthony Montibello amontibello at gmail.com
Wed May 28 04:36:06 CEST 2008


WMI, for the most part, can provide almost anything on windows(Provided you
can find the location)
 :)

Tony

On Tue, May 27, 2008 at 10:08 PM, Tim Reimers <treimers at ashevillenc.gov>
wrote:

>
> That's a good point you make--- quotas.
>
> I'm going to have to look into that- I think some of the places I'm
> monitoring in terms of server-side disk space are quota-driven.
> So the server will see disk space free even when the user does not actually
> have space.
> Which will negate the value of Nagios measuring the disk spac when we STILL
> get frantic workorders and calls to IT management because a user cannot save
> a critical file.
>
> Hmm.. time for some WMI, I think.
> Hope that can show available quota.
>
>
> -----Original Message-----
> From: Anthony Montibello [mailto:amontibello at gmail.com<amontibello at gmail.com>
> ]
> Sent: Tue 5/27/2008 7:11 PM
> To: Tim Reimers
> Cc: Marcus; Nagios Plugins Help; Riccardo Cupardo
> Subject: Re: [Nagiosplug-help] Check the space on a windows folder
>
> in the normal context of not wanting to fill up a drive checking the
> freespace of the drive works,
> IF this is not readily availible through a standard method then it can be
> checked via a WMI query.
>
>
> Likewise if the issue is on looking for space on folder mount that does not
> have dive letters or if the issue was looking up NTFS Drive quotas, the
> best
> option on a windows host is to search WMI through queries for access to
> that
> data.
>
> WMI quaries can be prefermed through several plugins including NC_NET and
> NRPE (but I not sure about nsclient++)
>
> Tony (Author of NC_Net)
>
>
>
> The original poster however may have been looking at NTFS Quota
> On Tue, May 27, 2008 at 11:34 AM, Tim Reimers <treimers at ashevillenc.gov>
> wrote:
>
> > I guess the idea is to know that that key folder isn't going to run out
> > of space..
> >
> > ergo, it's a design-of-the-system issue, not a monitoring issue.
> >
> > this is probably obvious to experienced admins, and may be obvious to
> > everyone, but ;-)
> >
> > If you want c:\mail\spool to NOT run out of space, and it's on the same
> > partition as c:\mail\logs (for example)
> > then your real goal is to ensure that c:\mail\logs doesn't grow and fill
> > up available space on c:\ or c:\mail (assuming \mail is someplace else)
> >
> > That being said, I'd create a logical drive for "\mail\spool" and put it
> > on an "f:" drive or something like that.
> >
> > Then monitor that partition, and you know that the ONLY thing affecting
> > the space on that partition is going to be actual mail files.
> >
> > So in a sense, just monitoring the space on C: will tell you that
> > there's free space for c:\mail\spool  -- or anything else in any other
> > folder on that drive.
> >
> > If the available space starts going down, simply monitoring C: won't
> > tell you -where- the problem is, and I think that's what Riccardo really
> > wants to see.
> >
> >
> >
> >
> > Tim Reimers
> > Systems Analyst II
> > Information Technology Services
> > City of Asheville
> > phone - 828-259-5512
> > treimers at ashevillenc.gov
> >
> > -----Original Message-----
> > From: nagiosplug-help-bounces at lists.sourceforge.net
> > [mailto:nagiosplug-help-bounces at lists.sourceforge.net<nagiosplug-help-bounces at lists.sourceforge.net>]
> On Behalf Of
> > Marcus
> > Sent: Tuesday, May 27, 2008 10:28 AM
> > To: Nagios Plugins Help
> > Subject: Re: [Nagiosplug-help] Check the space on a windows folder
> >
> > Riccardo Cupardo schrieb:
> > > Hi Marcus,
> > Hey Riccardo,
> >
> > please don't mail me privately, so everyone can profit from our exchange
> > of ideas.
> >
> > > ty for your replay, i need a check in a specific folder, because there
> >
> > > is a lot of traffic in all the partition with a grow very high, for
> > > that i need to check the status of an only folder/directory.
> >
> > Just check the partition, that's also the free space in your folder. As
> > a matter of fact, there is no such thing as free folder space, since the
> > folder is part of the partition and uses it's space.
> >
> > Greetz, Marcus
> >
> >
> >
> > >
> > > Marcus ha scritto:
> > >> Riccardo Cupardo schrieb:
> > >>> Hi all,
> > >>>
> > >>> anyone know a plugin to check the space on a windows folder(not on a
> >
> > >>> drive), like c:\mail\spool
> > >>
> > >> The free space in a folder should in my humble opinion be equal to
> > >> the free space on the partition (C:) on which the folder resides in,
> > >> if I am not totally mistaken. So where is, in your opinion  the
> > >> difference in folder vs. partition?
> > >>
> > >> Cheers,
> > >>  Marcus
> > >>
> > >> __________ NOD32 3134 (20080527) Information __________
> > >>
> > >> This message was checked by NOD32 antivirus system.
> > >> http://www.eset.com
> > >>
> > >>
> > >>
> > >
> > >
> >
> >
> >
> > ------------------------------------------------------------------------
> > -
> > This SF.net email is sponsored by: Microsoft Defy all challenges.
> > Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > ::: Please include plugins version (-v) and OS when reporting any issue.
> >
> > ::: Messages without supporting info will risk being sent to /dev/null
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > ::: Please include plugins version (-v) and OS when reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080527/c11a9706/attachment.html>


More information about the Help mailing list