<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Check Swap in/out rate instead of percentage free?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We want to know when one of our servers is swapping as a swapping server is a normally dead server :-)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Currently we have the "normal" swap checks which generates a warning when more than 5% swap are used and a critical when more than 10% are used. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">This works ok until one time someone needs a little bit of swap. The swap gets used but never unused (as linux does not remove something as long it is not needed). So we get warnings and criticals while just some parts of swap are used but not "active" (in terms of it is actively read from).</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I think it would be more sufficient to not monitor how much swap is in use but to check if pages are read from swap in some period of time. Such as</FONT></P>

<P><FONT SIZE=2 FACE="Arial">warning: if some pages were read out of swap</FONT>

<BR><FONT SIZE=2 FACE="Arial">critical: if in all of the last three measurement-periods pages were read</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I can acces the "absolute" swap out-page count by e.g. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">cat /proc/vmstat | grep pswpout | cut -d " " -f2</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">which gives me the number of pages swapped out since the last boot. So I would need to save this to some file and read it back.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I searched for a plugin which already does this (or a similar) kind of check but I did not found anything.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So now I am wondering:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">- did I just miss a plugin</FONT>

<BR><FONT SIZE=2 FACE="Arial">- do I think completely wrong and my opinion is bullshit?</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">So the questions:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">- does this kind of check make sense?</FONT>

<BR><FONT SIZE=2 FACE="Arial">- is there any plugin which does this already?</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Regards</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Michael</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">PS: We are using Nagios on SLES11 and RHEL6</FONT>
</P>

<font face="monospace">*******************************************************************************<br>
Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. <br>
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten<br>
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.<br>
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht<br>
gestattet.<br>
<br>
This email may contain confidential and/or privileged information. <br>
If you are not the intended recipient (or have received this email <br>
in error) please notify the sender immediately and destroy this e-mail. <br>
Any unauthorized copying, disclosure or distribution of the material <br>
in this email is strictly forbidden.<br>
*******************************************************************************</font></BODY>
</HTML>