Confusion re: std. check_disk plugin
Mark Musone
mmusone at shatterit.com
Fri Sep 20 21:10:21 CEST 2002
I believe the check_disk does it's warning calculations on disk FREE,
not disk utilization..
So for your need, you want
-w 50% -c 45%
-Mark
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of John Fox
Sent: Friday, September 20, 2002 3:00 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Confusion re: std. check_disk plugin
Hello, Folks,
Confusion once again reigns. I'm fiddling with the check_disk plugin
and find myself baffled. For purposes of testing, I wanted to have 50%
disk space utilization cause a 'warning' state, and 55% utilization
cause a 'critical' state. However, I appear to be doing something
incorrectly:
| $ plugins/check_disk -w 50% -c 55% -p /
| INPUT ERROR: C_DFP (55.000000) should be less than W_DFP (50.000000)
| and \ both should be between zero and 100 percent, inclusive
Warning percentage, it seems to me, should be lower than critical
percentage, and these comments from the source code appear to bear that
thought out:
| * $Id: check_disk.c,v 1.2 2002/06/06 04:15:49 sghosh Exp $
| *
| * Description:
| *
| * This plugin will use the /bin/df command to check the free space on
| * currently mounted filesystems. If the percent used disk space is
| * above <c_dfp>, a STATE_CRITICAL is returned. If the percent used
| * disk space is above <w_dfp>, a STATE_WARNING is returned.
I suspect I'm being a dummy, but have no idea what concept I'm failing
to grasp. Any advice would be helpful and appreciated.
Thanks in advance,
John
--
+-----------------------------------------------------------------------
----+
| John Fox <jjf at mind.net> | System Administrator | Internet Ventures
| Oregon |
+-----------------------------------------------------------------------
----+
| "You can't talk about George W. without addressing the strange
|
| Bilbo-Baginnian language that spurts out from between his lips like
|
| melted marshmallows coming out of a squirt gun." -- Dennis Miller
|
+-----------------------------------------------------------------------
----+
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list