<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 27/09/10 12:27, IT Toonz wrote:
    <blockquote cite="mid:4ca081c5.06df8e0a.6cbb.68ed@mx.google.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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]-->
      <div class="Section1">
        <p class="MsoPlainText">Hi Assaf,<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">Thanks for the reply,<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">We tried and we get this...<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><span style="color: red;">[root@Nagios
            nagios]# locate
            check_mailq<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="color: red;">/usr/lib/nagios/plugins/check_mailq<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="color: red;">/var/www/dokuwiki/data/pages/plugins/check_mailq.txt<o:p></o:p></span></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">And the error is<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><span style="color: red;">Mailq
            CRITICAL    (Return
            code of 127 is out of bounds - plugin may be missing)<o:p></o:p></span></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">What could be causing this? <o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">In the commands.cfg file we have ...<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"># Check mailq in mail server<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><span style="color: red;">define 
            command {<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="color: red;">   
            command_name    check_mailq<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="color: red;">   
            command_line    check_mailq!-M qmail -w 500 -c 1000 -t 7<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="color: red;">    }<o:p></o:p></span></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">Please advice.<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText">Regards<o:p></o:p></p>
        <p class="MsoPlainText">Anth.<o:p></o:p></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <br>
      </div>
    </blockquote>
    <br>
    in the nagios installation directory - look at file resource.cfg and
    see where the alias $USER1$ points to .<br>
    <br>
    this alias should proceed and command definition you have in the
    commands.cfg  , co your mailq check command should be as such <br>
    <p class="MsoPlainText"><span style="color: red;"><br>
        define  command {</span></p>
    <p class="MsoPlainText"><span style="color: red;">   
        command_name    check_mailq</span></p>
    <p class="MsoPlainText"><span style="color: red;">   
        command_line    $USER1$/check_mailq!-M qmail -w 500 -c 1000 -t 7</span></p>
    <p class="MsoPlainText"><span style="color: red;">    }</span></p>
    <br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Never,Ever Cut A Deal With a Dragon 


Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (<a class="moz-txt-link-abbreviated" href="http://www.dogstrust.co.uk">www.dogstrust.co.uk</a>) .
Please Sponsor me at <a class="moz-txt-link-freetext" href="http://www.justgiving.com/Assaf-Flatto">http://www.justgiving.com/Assaf-Flatto</a></pre>
  </body>
</html>