[Nagiosplug-devel] check_swap in SUN OS

Ton Voon tonvoon at mac.com
Thu Jul 7 18:31:40 CEST 2005


Siva,

 From memory, the swap -s is around release 1.3 of the plugins. You  
can find the release on SF somewhere.

However, it would be more beneficial to us if you can explain why the  
current check_swap cannot do what you need, so we can enhance that.  
We have moved from running swap -s to making the system calls instead.

Thank you for pointing out the error in the help file. I have updated  
it now.

Ton

On 28 Jun 2005, at 18:57, Nellurandi, Sivakumar wrote:

> 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
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug- 
> devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/ 
> nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any  
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>





More information about the Devel mailing list