Nagios - Monitor folder size

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
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Nagios - Monitor folder size

Post by amitw »

Hi guys,
I'm looking for a plugin / script to monitor folder size(Windows OS)

Thanks in advanced,
Amit
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios - Monitor folder size

Post by mcapra »

Here's a plugin/script that can monitor folder size(Windows OS):
https://exchange.nagios.org/directory/P ... bs/details

Here's a thread detailing how to use it with NSClient++:
https://support.nagios.com/forum/viewto ... 4&p=176512

Let us know if you have additional questions.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Nagios - Monitor folder size

Post by kyang »

Thanks for the help @mcapra!

amitw, Let us know if you have any more questions.
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Re: Nagios - Monitor folder size

Post by amitw »

Thanks.
i already implemented it.

The second phase is more complicated and i will need to ask your help again :-)

I would like to monitor few folders size every 2-3 seconds.
Is it doable?
How can i implement that kind of configuration?

And another thing.
It looks like prefdata is not being generated.
How can i fix it?

Thanks in advanced,
Amit
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios - Monitor folder size

Post by mcapra »

amitw wrote:I would like to monitor few folders size every 2-3 seconds.
Is it doable?
Nagios Core isn't very good at handling checks that need to run more frequently than once every minute or more.

You could explore submitting the results of this check passively. Here's some docs for that:
https://assets.nagios.com/downloads/nag ... hecks.html
https://docs.nsclient.org/howto/nsca/#passive-checks
amitw wrote:It looks like prefdata is not being generated.
How can i fix it?
Performance data needs to be submit to Nagios Core in a specific way as detailed in the Nagios Plugin Development Guidelines:
https://nagios-plugins.org/doc/guidelines.html#AEN200

This plugin does not seem to provide performance data and would need to be modified to do so.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios - Monitor folder size

Post by cdienger »

@amitw let us know if you have any further questions after taking a look at some of the resources @mcapra suggested.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amitw
Posts: 28
Joined: Tue Jun 28, 2016 8:07 am

Re: Nagios - Monitor folder size

Post by amitw »

Thanks guys.
You can close the ticket
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios - Monitor folder size

Post by scottwilkerson »

Glad to be of help
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked