Monitoring Disk Space

Arno Lehmann al at its-lehmann.de
Mon May 16 22:37:58 CEST 2005


Hello,

fmapconsulting at aol.com wrote:

> Hi,
>  
> I would like to understand what the sintax args in disk space monitor 
> means....

Then you should have a look at the command definition.

> I've put into my config file the following line:
>  
> check_local_disk!40%!10%!/dev/hda2
>  
> I've read that the first arg is Warning end the second one is 
> critical... I don't understanding the fact that my server has about 34% 
> of file system used and nagios is showing me as critical disk space....

It depends on the command definition.

> According to the above line, the warning should be when disk would have 
> 40% space left... and critical when disk would have 10% space left.... 
> Am I right?

Erm, it depends...

No, most probably you are wrong, because if you were right the result 
should be warning :-)

 From *my* configuration (Nagios 2.0b3, plugins 1.4):

> elf:/usr/local/nagios # grep -B 3 -A 3 check_disk etc/checkcommands.cfg
> define command{
>         command_name    check_local_disk
>         command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
>         }
> 
> 
> elf:/usr/local/nagios # libexec/check_disk
> check_disk: Could not parse arguments
> Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout] [-m] [-e]
>                   [-v] [-q]
> define service{
>         name                            disk
>         use                             local-service-active
>         host_name                       elf
>         servicegroups                   service
>         service_description             /var Disk space
>         check_command                   check_local_disk!10%!5%!/var
> }

Arno

> Thanks
>  
> Fabiano

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&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