check_disk question

Marc Powell marc at ena.com
Wed Sep 21 23:54:53 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Leblond, Jean-François
> Sent: Wednesday, September 21, 2005 4:05 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_disk question
> 
> Hi,
> 
> I'm currently writing a new check_disk in perl in order to support the
> inodes and the -p and -x flags.
> 
> I would like to know what means the values 2534 and 2675 given by perfstat
> in the following example.
> 
> root at sxdadm0041:/usr/local/nagios/libexec# ./check_disk -w 10% -c 5% -p
> /usr
> 
> DISK OK - free space: /usr 481 MB (17%);| /usr=2336MB;2534;2675;0;2816

Through experimentation it looks to be the warning and critical thresholds expressed as MB --

[root at gemini plugins]# ./check_disk -w 10% -c 5% -p /
DISK OK - free space: / 2414 MB (33%);| /=4987MB;6660;7030;0;7400

7400*0.9=6660, 7400*0.95=7030

[root at gemini plugins]# ./check_disk -w 20% -c 10% -p /
DISK OK - free space: / 2414 MB (33%);| /=4987MB;5920;6660;0;7400

[root at gemini plugins]# ./check_disk -w 40% -c 30% -p /
DISK WARNING - free space: / 2414 MB (33%);| /=4987MB;4440;5180;0;7400

[root at gemini plugins]# ./check_disk -w 50% -c 40% -p /
DISK CRITICAL - free space: / 2414 MB (33%);| /=4987MB;3700;4440;0;7400

--
Marc


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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