<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Courier New";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">If I remember correctly the check_disk plug-in can only be used for checking devices with filesystems on them.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">I would suggest that you resort to the check_swap plug-in instead.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">e.g.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""># /usr/lib64/nagios/plugins/check_swap -h<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">check_swap (nagios-plugins 1.4.9) 1.59<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Copyright (c) 2000-2006 Nagios Plugin Development Team<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> <nagiosplug-devel@lists.sourceforge.net><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Check swap space on local machine.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Usage:check_swap [-av] -w <percent_free>% -c <percent_free>%<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">check_swap [-av] -w <bytes_free> -c <bytes_free><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Options:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-h, --help<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Print detailed help screen<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-V, --version<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Print version information<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-w, --warning=INTEGER<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Exit with WARNING status if less than INTEGER bytes of swap space are free<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-w, --warning=PERCENT%%<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Exit with WARNING status if less than PERCENT of swap space is free<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-c, --critical=INTEGER<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Exit with CRITICAL status if less than INTEGER bytes of swap space are free<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-c, --critical=PERCENT%%<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Exit with CRITCAL status if less than PERCENT of swap space is free<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-a, --allswaps<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Conduct comparisons for all swap partitions, one by one<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">-v, --verbose<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""> Verbose output. Up to 3 levels<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Notes:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">Send email to nagios-users@lists.sourceforge.net if you have questions<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">regarding use of this software. To submit patches or suggest improvements,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">send email to nagiosplug-devel@lists.sourceforge.net<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""># /usr/lib64/nagios/plugins/check_swap -w 10% -c 5%<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New"">SWAP OK - 100% free (2047 MB out of 2047 MB) |swap=2047MB;204;102;0;2047<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Courier New"><span lang="EN-US" style="font-size:11.0pt;font-family:"Courier New""><o:p> </o:p></span></font></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";font-weight:bold">Von:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Help
[mailto:help-bounces+ralph.grothe=itdz-berlin.de@monitoring-plugins.org] <b><span style="font-weight:bold">Im Auftrag von
</span></b>Frank.Schweitzer@itelligence.de<br>
<b><span style="font-weight:bold">Gesendet:</span></b> Freitag, 11. November 2016 11:17<br>
<b><span style="font-weight:bold">An:</span></b> help@monitoring-plugins.org<br>
<b><span style="font-weight:bold">Betreff:</span></b> Monitoring SwapSpace on SLES systems<o:p></o:p></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi,</span></font>
<br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I have a question regarding monitoring of swap files / swap partitions on Linux servers.</span></font>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I'd like to get information about swap files / swap partitions via the check_disk command.</span></font>
<br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Like shown in the example below there exists a swap partition on the server as /dev/sda2:</span></font>
<br>
<br>
<img width="650" height="68" id="_x0000_i1025" src="cid:image001.gif@01D23C1A.38B2E4B0"><br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">But when trying to monitor this partion via check_disk the output is:</span></font>
<br>
<br>
<img width="746" height="53" id="_x0000_i1026" src="cid:image002.gif@01D23C1A.38B2E4B0"><br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Is there any error in the syntax and is it possible in general to get information about the (physical) usage of swap files / partitions via check_disk or does this command
not support these kind of files / partitions ?</span></font> <br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Do I have any other options to get the required information with one of the Nagios plugins ?</span></font>
<br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thanks in advance for your help.</span></font>
<br>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Kind regards</span></font>
<br>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Frank Schweitzer</span></font>
<o:p></o:p></p>
</div>
</div>
</body>
</html>