[Nagiosplug-devel] check_swap mis-reporting values
Matt Pounsett
matt.pounsett at cira.ca
Thu Feb 19 17:37:56 CET 2004
On Fri, 20 Feb 2004, Ton Voon wrote:
>
> On 20 Feb, 2004, at 00:23, Matt Pounsett wrote:
>
> > check_swap has no -v switch (neither version)... if it does, it's not
> > in the
> > help, and doesn't appear to do anything. Also, check_swap is
> > compiled, not a
> > script, so it's not 'running commands' per-se. What output did you
> > expect to
> > see from -v?
>
> check_swap works by running the swap command. This is my output on a
> Solaris 9 server:
Ah, okay... -v alone didn't seem to do much. Multiple -v's is giving me lots
with 1.4.0.. nothing at all with 1.3.1
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.
Thanks Ton!
--
Matt Pounsett CIRA - Canadian Internet Registration Authority
Technical Support Programmer 350 Sparks Street, Suite 1110
matt.pounsett at cira.ca Ottawa, Ontario, Canada
613.237.5335 ext. 231 http://www.cira.ca
More information about the Devel
mailing list