Check disk space NS_Client

Henrique Oliveira holiveira at interhost.com
Tue Feb 22 19:57:41 CET 2005


Andreas Ericsson wrote:

> Henrique Oliveira wrote:
>
>>  Hello,
>>
>> I'm running Nagios 1.2 with Nagmin (DB support) with no problems.
>>
>> We have a webserver running multiple sites and we need to know is a 
>> given site
>> (folder) has reached a certain amount of disk usage.
>>
>> Is it possible to monitor directories in a hard-drive, opposed to 
>> only checking
>> the whole hard-drive?
>>
>
> Yes. Write a script/program that recurses into said folder and adds up 
> the filesizes as it goes along. Shouldn't be too difficult.

Has anyone else tried this. If so, please mail me. Writing 
scripts/programs isn't my strongest quality :)

Thanx in advance
Henrique


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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