Getting alert when available disk space is reducing quickly

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.

Getting alert when available disk space is reducing quickly

Postby vusaravi » Mon Mar 12, 2018 11:10 am

Hi

I would like to get an alert when available disk space on my windows machine has been reduced by 10 GB in last 1 hour irrespective of the threshold.

Is it possible with Nagios?

Thanks in Advance.

Regard,
Ravi Kumar Vusa.
vusaravi
 
Posts: 14
Joined: Fri Mar 13, 2015 7:41 am

Re: Getting alert when available disk space is reducing quic

Postby mcapra » Tue Mar 13, 2018 8:54 am

This is something you could certainly do within Nagios Core with the assistance of a third-party database (InfluxDB, MySQL, flat-file, SQLite, etc) but there's no simple solution or ready-made plugin that I know of. This would be a bit easier done with Nagios XI where a time-series database already exists and already collects the provided performance data for every compliant plugin, which would make writing a plugin to check trends over a period of time much easier.

Nagios Core is constructed much more in the style of black-box monitoring. What you're asking for is more in the style of white-box monitoring.

I'm a fan of how this Coursera video explains the differences between the two strategies:
https://www.coursera.org/learn/it-automation/lecture/6f3rc/blackbox-and-whitebox-monitoring
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3460
Joined: Thu May 05, 2016 3:54 pm

Re: Getting alert when available disk space is reducing quic

Postby cdienger » Tue Mar 13, 2018 4:01 pm

Hi Ravi,

Did the above help with what you're looking to achieve? Let us know if you have any further questions regarding this.
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: 2186
Joined: Tue Feb 07, 2017 11:26 am

Re: Getting alert when available disk space is reducing quic

Postby tacolover101 » Tue Mar 13, 2018 10:34 pm

@mcapra is correct - you could do something like this with a flat file, but you'd need to get creative on your scripting / handling of persistent variables.

a simple way to accomplish this would be with a flat file, and a check running every 60m writing to it - then comparing the data from what it sees between now and last check.
User avatar
tacolover101
 
Posts: 409
Joined: Mon Apr 10, 2017 11:55 am

Re: Getting alert when available disk space is reducing quic

Postby tacolover101 » Tue Mar 13, 2018 11:12 pm

you could even bring that data into nagios log server for a good comparison ;)
User avatar
tacolover101
 
Posts: 409
Joined: Mon Apr 10, 2017 11:55 am

Re: Getting alert when available disk space is reducing quic

Postby cdienger » Wed Mar 14, 2018 10:38 am

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: 2186
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 15 guests