[Nagiosplug-devel] check_swap in SUN OS

Nellurandi, Sivakumar sivakumar.nellurandi at cingular.com
Tue Jun 28 11:08:40 CEST 2005


Thank you so much for the reply.

Can you please get me the source code which is using swap -s command?

Regards,
Siva

-----Original Message-----
From: sean finney [mailto:seanius at seanius.net] 
Sent: Saturday, June 25, 2005 4:53 PM
To: Nellurandi, Sivakumar
Cc: kdebisschop at users.sourceforge.net;
nagiosplug-devel at lists.sourceforge.net
Subject: Re: [Nagiosplug-devel] check_swap in SUN OS


hi siva,

On Mon, Jun 20, 2005 at 10:13:57AM -0700, Nellurandi, Sivakumar wrote:
> I am finding some difficulties for having the check_swap plugin worked

> in SUN Solaris operating system. Can you please provide me the working

> version source code of the check_swap plugin?

sorry for the late reply, i've been afk for the last week or two, and i
don't think anyone else here seems to have much to say about check_swap
it seems.

>         printf (_("\n\
> On Solaris, if -a specified, uses swap -l, otherwise uses swap -s.\n\ 
> Will be discrepencies because swap -s counts allocated swap and 
> includes\n\ real memory\n"));
>         printf (_("\n\
> On AIX, if -a is specified, uses lsps -a, otherwise uses lsps
-s.\n"));
>  
> The above print statements clearly state that omitting the "-a" 
> argument to the plugin uses "swap -s" command on Solaris and "lsps -s"

> command on AIX.

> But in the code we did not find a similar execution of "swap -s" 
> command for Solaris. Could you point out where the execution of "swap 
> -s" command takes place.

my guess is that this usage information is outdated, and that swap -s is
not executed at all, because iirc the solaris check_swap heavily (or
perhaps exclusively) favors usage of the swapctl library routines
instead of executing the cmdline program.


	sean




More information about the Devel mailing list