Nagios - Monitor folder size

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios - Monitor folder size

Postby amitw » Mon Feb 12, 2018 4:20 am

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

Thanks in advanced,
Amit
amitw
 
Posts: 23
Joined: Tue Jun 28, 2016 8:07 am

Re: Nagios - Monitor folder size

Postby mcapra » Mon Feb 12, 2018 9:43 am

Here's a plugin/script that can monitor folder size(Windows OS):
https://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows-NRPE/check_folder_size-2Evbs/details

Here's a thread detailing how to use it with NSClient++:
https://support.nagios.com/forum/viewtopic.php?t=37614&p=176512

Let us know if you have additional questions.
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3291
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios - Monitor folder size

Postby kyang » Mon Feb 12, 2018 12:54 pm

Thanks for the help @mcapra!

amitw, Let us know if you have any more questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1790
Joined: Tue Jul 25, 2017 3:35 pm

Re: Nagios - Monitor folder size

Postby amitw » Tue Feb 13, 2018 7:32 am

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

Re: Nagios - Monitor folder size

Postby mcapra » Wed Feb 14, 2018 2:12 pm

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/nagioscore/docs/nagioscore/4/en/passivechecks.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
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3291
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios - Monitor folder size

Postby cdienger » Wed Feb 14, 2018 3:51 pm

@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.
User avatar
cdienger
Support Tech
 
Posts: 1419
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios - Monitor folder size

Postby amitw » Tue Feb 27, 2018 2:31 am

Thanks guys.
You can close the ticket
amitw
 
Posts: 23
Joined: Tue Jun 28, 2016 8:07 am

Re: Nagios - Monitor folder size

Postby scottwilkerson » Tue Feb 27, 2018 4:12 pm

Glad to be of help
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
CTO
 
Posts: 9799
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 17 guests