check_swap quirk on Solaris

Voon, Ton Ton.Voon at egg.com
Thu Jan 16 08:31:18 CET 2003


Here's the script. Ideally I think it should be integrated into the C
check_swap program - probably using solaris specific ifdefs - but it looked
too difficult for me. Also some people dispute the validity of the check as
opposed to swap -l. My guide was this reference:
http://www.sun.com/sun-on-net/itworld/UIR980701perf.html.
 <<check_swap>> 
> -----Original Message-----
> From:	Tim Shouldice [SMTP:tim at mintoskatingclub.com]
> Sent:	Wednesday, January 15, 2003 6:55 PM
> To:	Voon, Ton
> Subject:	RE: [Nagios-users] check_swap quirk on Solaris
> 
> Yes, please post your script, we get lots of arguements for Solaris admins
> when we 
> currently have a swap alert.
> 
> /Tim
> 
> On Jan 15, "Voon, Ton" <Ton.Voon at egg.com> wrote:
> > 
> > I decided against using check_swap on Solaris, mainly because swap -l
> does
> > not consider "reserved but not yet utilised" memory as used. Instead,
> I've
> > got a perl script which runs a swap -s and takes the figures there. Let
> me
> > know if you want me to post this.
> > 
> > > -----Original Message-----
> > > From:	Grae Noble [SMTP:Grae.Noble at newcastle.edu.au]
> > > Sent:	Wednesday, January 15, 2003 10:18 AM
> > > To:	nagios-users at lists.sourceforge.net
> > > Subject:	Re: [Nagios-users] check_swap quirk on Solaris
> > > 
> > > Hi all, 
> > > I've seen the problem also. Not only that, but it also does not handle
> > > multiple swap devices properly. If there is more that one swap file or
> > > partition and if one of them is at a size/percentage that will
> generate an
> > > alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%,
> 1,
> > > at 10% and one at 0%. If the threshold for the check is set to 60%
> then
> > > the check will trigger a critical or warning instead of calculating
> the
> > > total swap available and setting the status against that.
> > > 
> > > I did submit a bug report for both problems, 621872 is the block/byte
> > > problem, but the other bug seems to have disappeared from sourceforge.
> > > 
> > > 
> > > Grae Noble
> > > Infrastructure, Communication and Information Services, University
> > > Services Division
> > > University of Newcastle, NSW
> > > Phone:  +61 2 4921 7875 Fax:  +61 2 4921 7087
> > > Grae.Noble at newcastle.edu.au 
> > > Room: CT216
> > > 
> > > 
> > > >>> "Carroll, Jim P [Contractor]" <jcarro10 at sprintspectrum.com>
> 01/15/03
> > > 09:36am >>>
> > > It's been brought to my attention that check_swap on Solaris8 reports
> in
> > > bytes, whereas the 'swap -l' command reports in blocks.  Either the
> output
> > > should be changed to 'blocks', or the math should be done so that the
> > > numeric value is actually in bytes.
> > > 
> > > Example:
> > > 
> > > Nagios reports:
> > > 
> > >   Swap ok - Swap used: 0% (0 bytes out of 1049312)  
> > > 
> > > swap -l reports:
> > > 
> > >   swapfile             dev  swaplo blocks   free
> > >   /dev/vx/dsk/swapvol 228,7      16 1049312 1049312
> > > 
> > > HTH.
> > > 
> > > jc
> 


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_swap
Type: application/octet-stream
Size: 933 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030116/2da694c6/attachment.obj>


More information about the Users mailing list