In the HOSTNAME variable, you might want to use the ip of the IMM instead of the ip of the host. IBM server itself doesn't support this IMM check. You should be running the check against the IBM IMM device.<div><br></div>
<div>Jake<br><div><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 1:56 AM, Giles Coochey <span dir="ltr"><<a href="mailto:giles@coochey.net" target="_blank">giles@coochey.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    On 01/06/2012 00:18, Stuart Browne wrote:
    <blockquote type="cite">
      
      
      
      
      <div>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">What
            happens when you run this check as the user Nagios runs as
            (usually 'nagios')?<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Stuart<u></u><u></u></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
        <div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue;padding:0cm 0cm 0cm 4pt">
          <div>
            <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:Peter.Shankland@ricoh-rpl.com" target="_blank">Peter.Shankland@ricoh-rpl.com</a>
                  [<a href="mailto:Peter.Shankland@ricoh-rpl.com" target="_blank">mailto:Peter.Shankland@ricoh-rpl.com</a>] <br>
                  <b>Sent:</b> Thursday, 31 May 2012 8:14 PM<br>
                  <b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
                  <b>Subject:</b> [Nagios-users] check_snmp_ibm_imm.sh
                  Plugin Help<u></u><u></u></span></p>
            </div>
          </div>
          <p class="MsoNormal"><u></u> <u></u></p>
          <p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Hi
              all,</span> <br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I
              am trying to use the check_snmp_ibm_imm.sh plugin from
              Nagios Exchange (</span><a href="http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/check_snmp_ibm_imm-2Esh/details" target="_blank"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/check_snmp_ibm_imm-2Esh/details</span></a><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">)
              but am having issues with getting a status back through
              Nagios - command line seems to work fine.</span> <br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">As
              an example, when I run "./check_snmp_ibm_imm.sh -H
              <hostname> -C <community> -T voltage" at the
              command line of the Nagios server I get output:</span> <br>
            <br>
            <img border="0" height="95" width="716"><br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">So
              this shows that the plugin is working fine. However, when
              I then translate that into Nagios with the new command of:</span>
            <br>
          </p>
        </div>
      </div>
    </blockquote></div>
    Not quite - I don't see a status of OK / WARNING or CRITICAL - and
    this doesn't show you the exit code of the check either.<br>
    I don't know this plugin, but are there any parameters for warning
    or critical ? You may need to put these in. At the moment it is only
    returning performance data to you.<br>
    <br>
    <br>
    <blockquote type="cite"><div class="im">
      <div>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
          <p class="MsoNormal"><br>
            <img border="0" height="120" width="798"><br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">I
              just get the following:</span> <br>
            <br>
            <img border="0" height="53" width="1069"><br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">It
              is obviously something I am doing wrong in Nagios but
              could do with a push in the right direction :)</span> <br>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Thanks.</span>
            <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Pete.</span>
            <u></u><u></u></p>
          <div class="MsoNormal" style="text-align:center" align="center">
            <hr style="color:#a0a0a0" align="center" noshade size="2" width="100%"></div>
          <p class="MsoNormal"><br>
            <br>
            <b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> Peter
                Shankland</span></b> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> TECHNICAL
              NETWORK SPECIALIST</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> IT
              DEPARTMENT</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> DD:+44
              (0) 1952 205160</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> F:+44
              (0) 1952 213100</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> M:+44
              (0) 7919 444077  </span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> E:</span><a href="mailto:Peter.Shankland@ricoh-rpl.com" target="_blank"><span style="font-size:7.5pt;font-family:"Arial","sans-serif"">
                Peter.Shankland@ricoh-rpl.com</span></a> <br>
            <br>
            <img border="0" height="23" width="73"><br>
            <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> Ricoh
              UK Products Limited</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> Priorslee
              | Telford | Shropshire | TF2 9NS</span> <br>
            <span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#4f4f4f"> T:
              <a href="tel:%2B44%20%280%29%201952%20290090" value="+441952290090" target="_blank">+44 (0) 1952 290090</a></span> <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif""> </span><img border="0" height="19" width="392"> <br>
            <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Please
              do not print this email unless absolutely necessary in
              order to save paper and energy, and you will contribute to
              resource conservation and CO2 reduction. This email
              including attachments is intended for the addressee(s)
              only. It may be labelled confidential/ private and contain
              confidential/private information. Please respect the
              wishes of the sender in the way you treat this email and
              the information contained within. If in doubt clarify the
              wishes of the sender before acting. If you have received
              this email in error, you may not review, copy or forward
              this message in whole or in part. Ricoh UK Products
              employees should delete from their system and notify us of
              the error via the ISMS Security Incident Reporting
              database. External recipients should delete from their
              system and alert us via email, advising the name of the
              sender and the time and date of receipt. Any views
              expressed in this email may not necessarily reflect those
              of Ricoh UK Products Ltd. You should ensure that the
              onward transmission, opening or use of this message or
              attachments will not adversely affect your system or data
              and carry out anti-virus checks before downloading.
              Internet communications are not secure and therefore Ricoh
              UK Products Ltd accepts no responsibility for any direct,
              indirect or consequential damage resulting from the
              transmission of this message.<br>
              <br>
              Registered in England No. 1763860<br>
              Registered Office: Ricoh UK Products Limited, Priorslee,
              Telford, Shropshire, TF2 9NS</span> <u></u><u></u></p>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div><pre>------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a></pre>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null</pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <br>
    <pre cols="72">-- 
Regards,

Giles Coochey, CCNA, CCNAS
NetSecSpec Ltd
<a href="tel:%2B44%20%280%29%207983%20877438" value="+447983877438" target="_blank">+44 (0) 7983 877438</a>
<a href="http://www.coochey.net" target="_blank">http://www.coochey.net</a>
<a href="http://www.netsecspec.co.uk" target="_blank">http://www.netsecspec.co.uk</a>
<a href="mailto:giles@coochey.net" target="_blank">giles@coochey.net</a>
</pre>
  </font></span></div>

<br>------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br></div></div>