[Nagiosplug-devel] check_swap on solaris with metadisk
    Ben O'Hara 
    bohara at gmail.com
       
    Tue Jun 13 10:27:37 CEST 2006
    
    
  
Hi Guys,
Im using check_swap to monitor swap usage on a solaris machine, however its
reporting back
SWAP WARNING - 0% free (0 MB out of 1024 MB)
Thing is, the box has 4GB of swap, and not 1GB!
from top
Memory: 4.0G real, 128M free, 3.3G swap in use, 801M swap free
db5# swap -l
swapfile             dev  swaplo blocks   free
/dev/md/dsk/d20     85,20     16 2097392      0
db5# swap -s
total: 3431360k bytes allocated + 34488k reserved = 3465848k used, 820608k
available
And d20 is made up of a mirror as follows
db5# metastat d20
d20: Mirror
    Submirror 0: d21
      State: Okay
    Submirror 1: d22
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 2097414 blocks
d21: Submirror of d20
    State: Okay
    Size: 2097414 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c1t0d0s1                   0     No    Okay
d22: Submirror of d20
    State: Okay
    Size: 2097414 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c1t1d0s1                   0     No    Okay
Anyone seen this before or got any ideas where to start looking?  Certainly
looks like the code for check_swap isnt calculating the total correctly
although im not a coder so a bit stuck as to where to look ;-)
Cheers for any help.
Ben
-- 
"A Scientist will earn a living by taking a really difficult problem and
spends many years solving it, an engineer earns a living by finding really
difficult problems and side stepping them"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20060613/37c60066/attachment.html>
    
    
More information about the Devel
mailing list