question on free disk space

Marc Powell marc at ena.com
Fri Mar 19 21:57:09 CET 2004


On Friday, March 19, 2004 2:40 PM, Pat shared with us:

> Sorry, I previously sent this thru the wrong account wich doesn't
> belong to this group. So here is a resend. 
> 
> 
> 
> I'm a newbie at Nagios. I just installed version 1.2 and got it
> working today. 
> 
> I'm wondering if/what I'm doing wrong but I can't get the free disk
> space to read correctly on remote hosts. 
> 
> The first drives (hda1 or sda1) all read as 2222MB (45%) and all the
> other drives don't read on all my Linux servers except on the nagios
> host server where it all reads fine.  
> 
> Here's a sample of the service.cfg file
> 
> 
> # Service definition
> define service{         use
> generic-service         ; Name of service template to use
> 
>         host_name                       docbase
>         service_description             /dev/sda5 Free Space
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  admins
>         notification_interval           120
>         notification_period             24x7
>         notification_options            w,u,c,r
>         check_command
>         check_local_disk!20%!10%!/dev/sda5


Is 'docbase' your nagios machine? You are aware that the check_disk
plugin (not exactly sure what check_local_disk is) is not a
network-aware test? If you're wanting to use it to check disk space on
remote hosts you'll need to install the plugin on that machine _and_ use
something like NRPE to execute it and get the results.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&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