Hello,
actually the error is in your configuration:
-w, --warning=INTEGER
Exit with WARNING status if less than INTEGER units of disk are free
So when you used unit MB, the check would pop a warning once there was 95MB
free on a disk and when you had 90MB free, warning changed to critical.
What you probably want is this:
-w, --warning=PERCENT%
Exit with WARNING status if less than PERCENT of disk space is free
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p
/dev/sda1 -u GB
For other useful tips feel free to run /usr/local/nagios/libexec/check_disk --
help
Regards
TL
Dne neděle 22 května 2011 17:16:01 John Jones napsal(a):
> Hello Community:
>
> I tried to get fancy and start using nrpe check_disk usage is GB vs MB...
>
> from the monitoring server:
> ./check_nrpe -H xxx.xxx.xxx.xxx -c check_disk1
> DISK OK - free space: / 6729 MB (46% inode=87%);|
> /=7621MB;15028;15023;0;15118
>
> using
> command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 90 -c 95 -p
> /dev/sda1
> on the target.
>
> but changing nrpe.cfg on the target to use -u GB
> command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 90 -c 95 -p
> /dev/sda1 -u GB
>
> spits out this warning?
> DISK CRITICAL - free space: / 6 GB (46% inode=87%);| /=7GB;-76;-81;0;14
>
> Can someone explain this to me please?
>
> Thank you for your time.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users