[Nagiosplug-devel] [ nagiosplug-Bugs-1024735 ] check_swap providing inaccurate swap information on Sol6

SourceForge.net noreply at sourceforge.net
Fri Sep 10 14:43:51 CEST 2004


Bugs item #1024735, was opened at 2004-09-08 15:47
Message generated for change (Comment added) made by genesisca
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1024735&group_id=29880

Category: Interface (example)
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul (genesisca)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap providing inaccurate swap information on Sol6

Initial Comment:
Current CVS copy of check_swap compiled and running 
on a Solaris 2.6/Sparc system.

swap -l reports:
--
swapfile             dev  swaplo blocks   free
/dev/vx/dsk/swapvol 158,8      16 4193664 4149872
--

(Swap space is on a Veritas volume.)

check_swap reports: 
--
SWAP OK: 99% free (2026 MB out of 1308622848 MB)"
--

The 2026MB figure is right on but, obviously, the total 
swap figure is completely off.

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

>Comment By: Paul (genesisca)
Date: 2004-09-10 14:03

Message:
Logged In: YES 
user_id=1118471

Although we originally changed the configure script directly, 
this diff shows the same change as made to the configure.in 
script.  Again, totally not a programmer, my apologies if this 
is idiotic. :)

1289c1289
<               ac_cv_swap_format=["%*s %*[0-9,-] %*d %d 
%d"]
---
>               ac_cv_swap_format=["%*s %*[0-9,-] %*llu %llu 
%llu"]


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

Comment By: Paul (genesisca)
Date: 2004-09-10 13:51

Message:
Logged In: YES 
user_id=1118471

Forgot to mention that I also changed the Solaris 
SWAP_FORMAT in the configure script to read in %llu instead 
of a %d, to match the declared 'unsigned long long types' of 
the variables used in check_swap.

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

Comment By: Paul (genesisca)
Date: 2004-09-10 13:47

Message:
Logged In: YES 
user_id=1118471

I am definitely not a programmer but I managed to get some 
help looking at this problem and have attached a diff of 
changes that fixed the problem in our environment.  It may 
not be useful as a permanent fix, but it should definitely save 
some time debugging.  

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

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




More information about the Devel mailing list