Checking both percentage and space with check_disk - percentage fails

Oliver Skibbe oliskibbe at gmail.com
Tue Mar 1 09:11:07 CET 2016


I think you have three options:
1. Provide a patch which will make your request working
2. Separate checks, as James proposed
3. Separate checks, but with check_multi combined.


Personally i would prefer first option, but third option is also fine,
because in that case you don't have to add multiple services.

Best regards
Oliver Skibbe


2016-02-29 22:48 GMT+01:00 Pietan, James J (DOA) <james.pietan at alaska.gov>:

> I believe you have do two separate checks.  don't really remember
>
> James Pietan
> System Programmer I
> SOA DOA ETS MAD
>
> Sent from my iPhone
>
> On Feb 29, 2016, at 8:59 AM, Albert Braden <abraden at about.com> wrote:
>
> I am trying to use check_disk to alert if any drive is >60% full, or if
> any drive has less than 80M free, by using this command:
>
> /usr/lib64/nagios/plugins/check_disk -l -x /dev -x /dev/shm -x /proc -x
> /dev/fd -w 40% -c 40% -C -w 80M -c 80M
>
> My /var is 65% full, so I should get an alert but I do not:
>
> DISK OK - free space: / 422045 MB (97% inode=99%); /boot 423 MB (91%
> inode=99%); /var 3353 MB (35% inode=99%);...
>
> If I remove the "80M" check then it works:
>
> /usr/lib64/nagios/plugins/check_disk -l -x /dev -x /dev/shm -x /proc -x
> /dev/fd -w 40% -c 40%
>
> DISK CRITICAL - free space: / 422045 MB (97% inode=99%); /boot 423 MB (91%
> inode=99%); /var 3352 MB (35% inode=99%);...
>
> Is it not possible to check both?
>
> Albert Braden
> About.com Systems Operations
> mobile: 917-480-1090
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20160301/f9030613/attachment.html>


More information about the Help mailing list