[Nagiosplug-devel] [ nagiosplug-Bugs-866485 ] Overflow in check_swap

SourceForge.net noreply at sourceforge.net
Sat Dec 27 15:58:01 CET 2003


Bugs item #866485, was opened at 2003-12-28 00:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=866485&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Johannes Formann (jformann)
Assigned to: Nobody/Anonymous (nobody)
Summary: Overflow in check_swap

Initial Comment:
When running check_swap on server with more than 4 GB 
swap (in this case with about 16 GB) it will report a false 
percentage as beeing used:

/opt/master/nagios/libexec/check_swap -w 30% -c 70%
WARNING - Swap used: 32% (1412804608 out of 
4294967295)

# free
             total       used       free     shared    buffers     
cached
Mem:       4011044    4001688       9356          0      23168    
3668088
-/+ buffers/cache:     310432    3700612
Swap:     16097500    1379860   14717640


I've checked this from 1.3 over 1.3.1 up to 1.4a1


I think the vars must be changed from long to long long.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=866485&group_id=29880




More information about the Devel mailing list