Page 1 of 1
Nagios - Monitor folder size
Posted: Mon Feb 12, 2018 4:20 am
by amitw
Hi guys,
I'm looking for a plugin / script to monitor folder size(Windows OS)
Thanks in advanced,
Amit
Re: Nagios - Monitor folder size
Posted: Mon Feb 12, 2018 9:43 am
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.
Re: Nagios - Monitor folder size
Posted: Mon Feb 12, 2018 12:54 pm
by kyang
Thanks for the help
@mcapra!
amitw, Let us know if you have any more questions.
Re: Nagios - Monitor folder size
Posted: Tue Feb 13, 2018 7:32 am
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
Re: Nagios - Monitor folder size
Posted: Wed Feb 14, 2018 2:12 pm
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.
Re: Nagios - Monitor folder size
Posted: Wed Feb 14, 2018 3:51 pm
by cdienger
@amitw let us know if you have any further questions after taking a look at some of the resources
@mcapra suggested.
Re: Nagios - Monitor folder size
Posted: Tue Feb 27, 2018 2:31 am
by amitw
Thanks guys.
You can close the ticket
Re: Nagios - Monitor folder size
Posted: Tue Feb 27, 2018 4:12 pm
by scottwilkerson
Glad to be of help