[Nagiosplug-devel] [PATCH 1/1] Prevent check_swap from returning OK, if no swap activated

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Apr 5 05:28:13 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-04-04 04:37 AM, Jan ONDREJ wrote:
> On Mon, Apr 04, 2011 at 01:53:27AM -0400, Thomas Guyot-Sionnest wrote:
>>
>> You can specify an absolute value instead of percentage if you want to
>> check the presence of swap; I personally wouldn't see this as a bug, and
>> changing the default could break existing setups.
> 
> I can, but I have one configuration for all servers with different memory
> configurations, so parcentage is a best choice for me.

FWIW I just had a look, and you can specify both percentage and integer
thresholds. A note could be added to inform users about how swap
presence could be checked.

Could you try running the extract same command as you do for checking
swap, on a swapless machine, but:

1. add -w1 -c1  (currently the plugin won't let you use -c1 without -w1)
2. add -w1
3. add swap, then play with the percent thresholds and confirm plugin
swill works as usual.

Thanks,

- -- 
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2ajEYACgkQ6dZ+Kt5BchZbyACg0L+n60xFbJrFNY+uzMz/76by
RI4AoLcL2UYuU5SDxgDPHiwco12ppb1P
=aQZq
-----END PGP SIGNATURE-----




More information about the Devel mailing list