[Nagiosplug-devel] [PATCH] support swapsizes bigger than 2^32 on branch 1.3's check_swap

Carlo Marcelo Arenas Belon carenas at sajinet.com.pe
Sun Feb 27 16:25:00 CET 2005


Greetings,

uploaded a patch to 1.3's (based on rel 1.9) for check_swap.c which enables
this plugin to use "long long" if possible and fallback to float on a
transparent way.

  http://sourceforge.net/tracker/index.php?func=detail&aid=1153148&group_id=29880&atid=397599

similar in principle to the implementation tried and finally commited for
release 1.4, but more generic as it doesn't force the use of either long long
or float.

still incomplete though (as the one committed), as the parameter parsing
assummes that the parameter is an integer through the test on
utils.is_intnonneg which could overflow as well.

Carlo




More information about the Devel mailing list