check_swap quirk on Solaris

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Wed Jan 15 20:38:58 CET 2003


I wouldn't mind having it.  :)

jc

> -----Original Message-----
> From: Voon, Ton [mailto:Ton.Voon at egg.com]
> Sent: Wednesday, January 15, 2003 8:55 AM
> To: 'Grae Noble'; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_swap quirk on Solaris
> 
> 
> 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 SF.NET email is sponsored by: Take your first step 
> towards giving 
> > your online business a competitive advantage. Test-drive a 
> Thawte SSL 
> > certificate - our easy online guide will show you how. 
> Click here to get 
> > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en 
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net 
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.NET email is sponsored by: Take your first step 
> towards giving 
> > your online business a competitive advantage. Test-drive a 
> Thawte SSL 
> > certificate - our easy online guide will show you how. 
> Click here to get 
> > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> 
> 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.
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: Take your first step 
> towards giving 
> your online business a competitive advantage. Test-drive a Thawte SSL 
> certificate - our easy online guide will show you how. Click 
> here to get 
> started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 


-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en




More information about the Users mailing list