[Nagiosplug-devel] [ nagiosplug-Bugs-905971 ] check_swap bug with Linux 2.6

SourceForge.net noreply at sourceforge.net
Sat Jan 1 08:41:08 CET 2005


Bugs item #905971, was opened at 2004-02-27 16:34
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=905971&group_id=29880

Category: Parsing problem
Group: None
>Status: Pending
Resolution: Fixed
Priority: 7
Submitted By: Ton Voon (tonvoon)
>Assigned to: Ton Voon (tonvoon)
Summary: check_swap bug with Linux 2.6

Initial Comment:
check_swap returns:
[root at devapp01 /]# /usr/libexec/nrpe/check_swap -w 
90% -c 95%
CRITICAL - Swap used: -2147483648% (0 out of 0)

2.4: cat /proc/meminfo  |grep -i swap
Swap: 4145455104  1544192 4143910912
SwapCached:        316 kB
SwapTotal:     4048296 kB
SwapFree:      4046788 kB

2.6: cat /proc/meminfo |grep -i swap
SwapCached:          0 kB
SwapTotal:     2097144 kB
SwapFree:      2097144 kB

This is a parsing problem for Linux 2.6 systems.

Bug reported by Hampus Linden.

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

>Comment By: Ton Voon (tonvoon)
Date: 2005-01-01 16:40

Message:
Logged In: YES 
user_id=664364

It seems Karl has made some changes, but check_swap has also been 
changed to use system calls rather than meminfo, so this may not be 
relevant anymore.

Placing this into a pending state as this we are trying to reduce the 
number of calls. Please update if this is still a problem.

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

Comment By: Karl DeBisschop (kdebisschop)
Date: 2004-02-28 05:21

Message:
Logged In: YES 
user_id=1671

Please check CVS head - works on my 2.6 system, but I have
much less swap than you.

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

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




More information about the Devel mailing list