[Nagiosplug-devel] check_swap mis-reporting values

Ton Voon tonvoon at mac.com
Thu Feb 19 17:45:13 CET 2004


On 20 Feb, 2004, at 01:23, Matt Pounsett wrote:

> On Fri, 20 Feb 2004, Ton Voon wrote:
> It looks like the problem I'm seeing on 1.4.0alpha is with the -a 
> switch.  I
> see now that a better explanation for -a has been added to the 1.4.0 
> help
> output, and it suggests I shouldn't be using it:
>
> % ./check_swap -a -w 10% -c 5%
> SWAP CRITICAL: 0% free (0 MB out of 80 MB) |swap=0MB;8;4;0;80
> % ./check_swap -w 10% -c 5%
> SWAP OK: 59% free (1938 MB out of 3321 MB) |swap=1938MB;332;166;0;3321
>
> Looks like 1.4.0 will fix my problem with this host.
>

I'm still interested to know why this is failing on your server. On a 
Solaris 9 box, I get:

bash-2.05$ ./check_swap -v -v -v -w 10% -c 5% -a
Command: /usr/sbin/swap -l
Format: %*s %*[0-9,-] %*d %d %d
total=513, free=358
SWAP OK: 70% free (358 MB out of 513 MB) [358 (70%)] 
|swap=358MB;51;25;0;513

What is your output? What is the swap -l output?

Ton





More information about the Devel mailing list