[Nagiosplug-help] [Nagios-users] plugns
Israel Brewster
israel at frontierflying.com
Wed Jul 26 19:56:12 CEST 2006
Actually, the behavior as noted is correct- the plugin checks for the
percentage of free space remaining, not the amount used. So to use
your example, you would want the command to be /usr/libexec/nagios/
check_disk -w 15% -c 5% -p /dev/hda1 since you want a warning when
only 15% of the drive capacity is avalable, and critical when 5% of
the drive is free.
-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service
5245 Airport Industrial Rd
Fairbanks, AK 99709
-----------------------------------------------
On Jul 26, 2006, at 9:47 AM, Martin J. Green wrote:
> Having some bizarre problems with plugins – nagios says they don’t
> exist (or passes bollocks output in some cases), even when I’ve
> explicitly told it where they are.
>
>
>
> Take one example…
>
>
>
> [root at agw01 nagios]# /usr/libexec/nagios/check_disk -w 85% -c 95% -
> p /dev/hda1
>
> INPUT ERROR: C_DFP (95.000000) should be less than W_DFP (85.0) and
> both should be between zero and 100 percent, inclusive for /dev/hda1
>
> check_disk: Could not parse arguments
>
> Usage: check_disk -w limit -c limit [-p path | -x device] [-t
> timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q]
>
> [root at agw01 nagios]# /usr/libexec/nagios/check_disk -w 95% -c 85% -
> p /dev/hda1
>
> DISK CRITICAL - free space: / 1776 MB (30% inode=84%);| /=4130MB;
> 295;885;84;5905
>
> [root at agw01 nagios]# df
>
> Filesystem Size Used Avail Use% Mounted on
>
> /dev/hda1 5.8G 3.8G 1.8G 69% /
>
> /dev/hda6 32G 27G 5.5G 83% /home
>
> [root at agw01 nagios]#
>
>
>
> 1) Critical & warning seem to be the wrong way round?
> (Critical *should* be higher than warning, right?)
>
> 2) Why did it tell me my disk was critical – its below both
> thresholds??
>
>
>
> Anything I should be doing – can’t seem to figure out why its not
> picking them up.
>
>
>
> ______________________________________________________________________
> _____________________________
>
> The questions remain the same. The answers are eternally variable.
>
>
>
> Martin J. Green
>
> Altien Ltd
>
> E: mgreen at altien.com
>
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> _______________
> 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 Help
mailing list