check_swap quirk on Solaris

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Thu Jan 16 18:59:54 CET 2003


On a related note (and possibly of at least as much interest) is the Solaris
notion of 'scan rate', which vmstat reports on.

I've been trying to dig around to see if I can find anything similar on the
Linux side.  I'd think that a quick script plugin which monitors the scan
rate (on Solaris, at any rate) would be desireable.

Any thoughts on what the Linux equivalent could be?

jc

> -----Original Message-----
> From: Karl DeBisschop [mailto:karl at debisschop.net]
> Sent: Thursday, January 16, 2003 7:43 AM
> To: Voon, Ton
> Cc: 'Tim Shouldice'; Carroll, Jim P [Contractor]; 'Grae Noble';
> nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_swap quirk on Solaris
> 
> 
> On Thu, 2003-01-16 at 02:31, Voon, Ton wrote:
> > 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.
> 
> Interesting reading...
> 
> I looked at linux (2.4.20-2.13 i686) and saw:
> 
> [kdebisschop at localhost build-redhat]$ cat /proc/meminfo
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  128999424 125702144  3297280        0  4173824 77893632
> Swap: 263200768 57708544 205492224
> MemTotal:       125976 kB
> MemFree:          3220 kB
> MemShared:           0 kB
> Buffers:          4076 kB
> Cached:          49136 kB
> SwapCached:      26932 kB
> Active:          92372 kB
> ActiveAnon:      54180 kB
> ActiveCache:     38192 kB
> Inact_dirty:      4196 kB
> Inact_laundry:   12796 kB
> Inact_clean:      2096 kB
> Inact_target:    22292 kB
> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:       125976 kB
> LowFree:          3220 kB
> SwapTotal:      257032 kB
> SwapFree:       200676 kB
> 
> I wonder if there's any relation to the SwapCached item...
> 
> Anyway, I think what you have can be done in C with just a few changes
> to configure.in. If I have a little time on a Solaris 
> machine, I'll look
> into it.
> 
> --
> Karl
> 


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en




More information about the Users mailing list