check-disk-growing ???

Thibault Genessay tgenessay at aliadis.fr
Fri Jan 13 14:23:46 CET 2006


Hello Philipp

Sand Philipp wrote:

>I think I could be pretty interesting to monitor the rate of how much the diskspace increased in an interval x.
>  
>
You probably need some kind of database to store the previous values. It 
may be a plain binary file or a DBMS. Binary files being faster, I 
suggest you have a look at rrdtools which generates and manipulates RRD 
files.

>For example, you have a Disk X where all the Logfiles of my DB are stored. Normally there about 200MB Logfiles/day. Then suddenly there are 200MB/h...
>
>Has anyone written a pluginthe check something like this before?
>Any hints how to write a Plugin like that?
>  
>
I would wrap the 'check_whatever' plugin into a 'check_store_whatever' 
one that retrieves the state/perf data and store that into the RRD. 
'check_store_xxx' would then check the rate you are looking for 
(computing the derivate of the last N values introduced) and adjust the 
the plugin output and its return code accordingly. With this solution, 
you would also be able to graph the disk usage.

Regards

-- 
Thibault GENESSAY
ALIADIS
www.aliadis.fr
Tel.  0870 723 724
Fax   04 72 13 90 40 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list