Page 1 of 1

Getting alert when available disk space is reducing quickly

Posted: Mon Mar 12, 2018 11:10 am
by vusaravi
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.

Re: Getting alert when available disk space is reducing quic

Posted: Tue Mar 13, 2018 8:54 am
by mcapra
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-autom ... monitoring

Re: Getting alert when available disk space is reducing quic

Posted: Tue Mar 13, 2018 4:01 pm
by cdienger
Hi Ravi,

Did the above help with what you're looking to achieve? Let us know if you have any further questions regarding this.

Re: Getting alert when available disk space is reducing quic

Posted: Tue Mar 13, 2018 10:34 pm
by tacolover101
@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.

Re: Getting alert when available disk space is reducing quic

Posted: Tue Mar 13, 2018 11:12 pm
by tacolover101
you could even bring that data into nagios log server for a good comparison ;)

Re: Getting alert when available disk space is reducing quic

Posted: Wed Mar 14, 2018 10:38 am
by cdienger