Calculating Rate of Change on Disk Volumes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Calculating Rate of Change on Disk Volumes

Post by rseiwert »

I'm sure this is possible but I'm not sure how. I would like to see the rate of change on my disk volumes and ideally trigger alerts based off the rate of change. Anyone know how to do this?
Grumpy Olde IT Guy
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Calculating Rate of Change on Disk Volumes

Post by tmcdonald »

I actually recently finished documentation on exactly this using a third-party app called bischeck: http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

It is a bit tricky to get your head around, but I think it should be able to do what you want. Let me know.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Calculating Rate of Change on Disk Volumes

Post by abrist »

Very few plugins offer this type of functionality as each remote host needs to track the usage individually. This a is a good feature request for capacity planning: the ability to make checks that would alert when certain objects exceed the projected values.

Additionally, I did find one plugin below that may meet your criteria, although bischeck is a viable option as well.

https://github.com/mogsie/nagios-plugins-disk-fill-rate
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Calculating Rate of Change on Disk Volumes

Post by rseiwert »

Both are interesting suggestions. I had looked at Bischeck before and I thought it was more about flexible/dynamic thresholds. The disk fill pluggin also looks interesting. What would be ideal imho is not querying the same data over and maintaining a separate database. It strikes me that I'm already collecting this data using rrd filled via wmi queries. It seems like there would be a way to add the derivative to the dataset and round robin archives and then even have a plugin that queries this db to trigger off rate a change without adding to much load, secondary queries, or additional logs/dbs.
Grumpy Olde IT Guy
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Calculating Rate of Change on Disk Volumes

Post by abrist »

rseiwert wrote:It seems like there would be a way to add the derivative to the dataset and round robin archives and then even have a plugin that queries this db to trigger off rate a change without adding to much load, secondary queries, or additional logs/dbs.
True enough. You would need to create a secondary check/plugin that dumps a specified number of performance values from the the rrd with rrdtool dump and then compare the values and potentially alert.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Calculating Rate of Change on Disk Volumes

Post by rseiwert »

I wonder, can I simply modify the rrd and xml files to add a derived slope? It seems to me that I should be able to add vdefs to a custom template to get rate of change on a graph. I'm trying to build a graph template and wonder if the new graphs will also follow templates? Still trying to figure out how to alert off rate of change by analyzing data in the rrd. I guess what I'm trying to duplicate is the below
Filesystem Utilization and Predicted Trends
Image

Shows filesystem utilization with projected trend lines based on various starting points in the dataset. Trends are computed using the rrdtool Least Squares Line functions. If a trend is predicted to cross 100% utiliztion within the graph window, the date of the crossing is displayed. -- Damien S. Stuart <[email protected]>, 2007/6
http://oss.oetiker.ch/rrdtool/gallery/index.en.html
Grumpy Olde IT Guy
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Calculating Rate of Change on Disk Volumes

Post by tmcdonald »

I'm not sure about altering the graph - that's more of a MRTG or PNP question - but as for alerting based on trend prediction you could probably build a bash script that will use rrdtool and get that prediction for you.
Former Nagios employee
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Calculating Rate of Change on Disk Volumes

Post by rseiwert »

PNP Questions yes! I have been working with /usr/local/nagios/share/pnp/templates and trying to build a custom template. I have been having issues all day so starting from scratch I took the default template from templates.dist and copied it into /usr/local/nagios/share/php/templates/check_win_disk2.php. I would expect this to produce the same result as when it used the default template but it only renders the 1st data set. This raised a lot of questions regarding PNP and NagiosXI. If anyone has an answer I would appreciate it.
Grumpy Olde IT Guy
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Calculating Rate of Change on Disk Volumes

Post by Box293 »

I did a talk at the Nagios World Conference 2013 called "Leveraging and Understanding Performance Data and Graphs".

I go through templates and show you how to modify an existing template to create your own. Have a read through it as it includes a lot of information and screenshots which should help.

The slideshow is here (the notes have a lot of information): http://www.slideshare.net/nagiosinc/tro ... and-graphs
The video is here: http://www.youtube.com/watch?v=kqA2KcpUFg4

Cheers
Troy
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Calculating Rate of Change on Disk Volumes

Post by rseiwert »

Thanks Troy, that was great. Thing is I did exactly what you said in your presentation and didn't get the expected result. If I copied the default.php from templates.dist into templates renaming it properly but it doesn't show the second data set when viewing the nagiosxi performance data.
Grumpy Olde IT Guy
Locked