<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
You will need to get the MIBs for your NAS solution and check to make
sure your NAS product offers SNMP support.  The important thing the MIB
will tell you for your NAS product is what OIDs are important.  Here's
an example that I use:<br>
<br>
<tt>define command {<br>
    command_name    check-snmp-swap<br>
    command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -w $ARG1$ -c
$ARG2$ -C '$ARG3$' -o .1.3.6.1.4.1.2021.4.4.0 -P 1 -l "Free Swap"<br>
}<br>
</tt><br>
Here I use SNMP to check the free swap space on my servers.  The OID is
the value given to check_snmp with the -o argument.  This is dependant
on your configuration.  All other parameters are standard with the
exception of -C which is the community name (think of it like a
password) that you setup on your SNMP enabled device.  The particular
example above I use against Linux servers, but with the format of the
command would be exactly the same as your NAS device.  <br>
<br>
I just saw this on NagiosExchange that may help you as well:<br>
<a class="moz-txt-link-freetext" href="http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1%5Bp_view%5D=733">http://www.nagiosexchange.org/SNMP.51.0.html?&tx_netnagext_pi1%5Bp_view%5D=733</a><br>
<br>
If you want to learn more about SNMP in general, I learned about it
with this book:<br>
<a class="moz-txt-link-freetext" href="http://www.oreilly.com/catalog/esnmp/">http://www.oreilly.com/catalog/esnmp/</a><br>
<br>
HTH,<br>
<br>
On 5/1/2007 2:26 PM, vadi had said:
<blockquote
 cite="mid5f6b57ee0705011426g14397d9bw6eaea193cd8ee57b@mail.gmail.com"
 type="cite">
  <p class="MsoNormal">Dear all, thank you very much for your
suggestion. <br>
  </p>
  <p class="MsoNormal"><span style="color: rgb(121, 6, 25);">Anthony
Mendoza: Sir I am totally
new to SNMP. I request you to tell more clues related monitoring NAS
partition
through SNMP. <br>
  </span></p>
  <p class="MsoNormal"><span style="color: rgb(91, 16, 148);">Hugo van
der Kooij:</span> Hi...I
don't have that much control on storage box OR consulting vendor.<span
 style="color: rgb(121, 6, 25);"></span></p>
  <p class="MsoNormal"><span style="color: rgb(121, 6, 25);"></span><span
 style="color: rgb(200, 137, 0);">Jim Avery</span>: Sir your right
but my question is <br>
  <span style="color: rgb(200, 137, 0);">Let's take an example:</span></p>
  <p class="MsoNormal"><span style="color: rgb(200, 137, 0);"> </span></p>
  <table class="MsoNormalTable"
 style="width: 552pt; margin-left: 4.65pt; border-collapse: collapse;"
 border="0" cellpadding="0" cellspacing="0" width="736">
    <tbody>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Filesystem</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Size</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Used</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Avail</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Use%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">Mounted on</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/a_doc/u1/home/ftproot/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">473G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">246G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">227G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">52%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/ftproot</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/a_doc/u2/home/ftproot/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">473G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">246G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">227G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">52%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u2/home/ftproot</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/db/u1/home/ftproot/center/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">527G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">377G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">151G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">72%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/ftproot/center</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/db/u2/home/ftproot/center/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">527G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">377G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">151G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">72%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u2/home/ftproot/center</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/doc/u2/home/ftproot/files/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">527G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">362G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">165G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">69%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u2/home/ftproot/file</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/doc/u1/home/ftproot/doc/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">527G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">362G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">165G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">69%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/ftproot/doc</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/a_doc/u1/home/abc/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">473G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">246G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">227G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">52%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/abc</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/a_doc/u1/home/xyz/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">473G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">246G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">227G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">52%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/xyz</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/a_doc/u1/home/pqr/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">473G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">246G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">227G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">52%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/u1/home/pqr</span></p>
        </td>
      </tr>
      <tr style="height: 12.75pt;">
        <td style="padding: 0in 5.4pt; width: 262pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="349">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.1.1.1:/storage/</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 48pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="64">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">2.7T</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">1.9T</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 29pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="39">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">862G</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 32pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="43">
        <p class="MsoNormal" style="text-align: right;" align="right"><span
 style="font-size: 10pt; font-family: Arial;">69%</span></p>
        </td>
        <td style="padding: 0in 5.4pt; width: 152pt; height: 12.75pt;"
 nowrap="nowrap" valign="bottom" width="203">
        <p class="MsoNormal"><span
 style="font-size: 10pt; font-family: Arial;">/DC_Backup</span></p>
        </td>
      </tr>
    </tbody>
  </table>
  <p class="MsoNormal"><span style="color: rgb(200, 137, 0);"> <br>
Only NAS partition here is<span style="">  </span>a_doc , db, doc,
a_doc, in storage which I required
to monitor.</span></p>
  <p class="MsoNormal"><span style="color: rgb(200, 137, 0);"></span><span
 style="color: rgb(121, 6, 25);"><span style=""></span>I thing there is
no use in monitoring all the partition
here as per the above snapshot.</span></p>
  <p class="MsoNormal"><span style="color: rgb(121, 6, 25);"><span
 style=""></span>Please correct me if I am wrong.</span></p>
  <p class="MsoNormal"><span style="color: rgb(121, 6, 25);"></span>Best
Regards,</p>
  <p class="MsoNormal">Vadiraj</p>
  <p class="MsoNormal"> </p>
  <br>
  <br>
  <div><span class="gmail_quote">On 5/1/07, <b class="gmail_sendername">Jim
Avery</b> <<a href="mailto:jim@jimavery.me.uk">jim@jimavery.me.uk</a>>
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On
01/05/07, vadi <<a href="mailto:vadi.ksdba@gmail.com">vadi.ksdba@gmail.com</a>>
wrote:<br>
> Hi Friends,<br>
><br>
> I want to monitor NAS partition which is mounted under Linux(.<br>
><br>
> I don't think we can use check_disk or check_disk_smb [I have
tried all the
    <br>
> possibility]<br>
><br>
> I kindly request you people to help me finding solution for this
task.<br>
><br>
> Thanks,<br>
> Vadiraj<br>
    <br>
If all you want to do is monitor disk space, it should be easy enough
    <br>
to write your own plugin.  I have a script (not quite a plugin as it<br>
uses send_nsca directly) to do something similar on HP/UX.  Your<br>
script will be a bit different, as linux has "df" rather than "bdf"
    <br>
and you might prefer to write it as a proper plugin rather than doing<br>
what I've done here.<br>
    <br>
-----------<br>
    <br>
#!/usr/bin/sh<br>
    <br>
# check_disk-user1<br>
    <br>
# This script checks the /user1 filesystem space
    <br>
    <br>
myhostname=`hostname`<br>
    <br>
warn=2150400<br>
crit=2457600<br>
    <br>
    <br>
# How big is it?<br>
    <br>
bdf=`bdf /user1 | tail -n 1`<br>
size=`echo $bdf | awk '{print $2}'`<br>
used=`echo $bdf | awk '{print $3}'`
    <br>
perc=`echo $bdf | awk '{print $5}'`<br>
    <br>
if [ $used -gt $crit ]<br>
then<br>
  code=2<br>
elif [ $used -gt $warn ]<br>
then<br>
  code=1<br>
else<br>
  code=0<br>
fi<br>
    <br>
/usr/local/nagios/bin/send_nsca -H <a href="http://10.110.51.90">
10.110.51.90</a> -p 5667 -c<br>
/usr/local/nagios/etc/send_nsca.cfg << !END!<br>
$myhostname     DISK-user1      $code   Disk used $used kbytes $perc<br>
percent. | Used=${used}K;$warn;$crit;0;$size<br>
!END!<br>
  </blockquote>
  </div>
  <br>
</blockquote>
</body>
</html>