<font size=2 face="sans-serif">When I run the following command, to check
running it against the nagios user:</font>
<br>
<br><font size=2 face="sans-serif">su nagios -s /bin/bash -c "./check_snmp_ibm_imm.sh
-H 172.29.13.16 -C 4H2KZNpX -T voltage"</font>
<br>
<br><font size=2 face="sans-serif">I do get correct output:</font>
<br>
<br><font size=2 face="sans-serif">Planar 3.3V = 3250</font>
<br><font size=2 face="sans-serif">Planar 5V = 4900</font>
<br><font size=2 face="sans-serif">Planar 12V = 11880</font>
<br><font size=2 face="sans-serif">Planar VBAT = 2920</font>
<br><font size=2 face="sans-serif">|Voltage1=3250;;;; Voltage2=4900;;;;
Voltage3=11880;;;; Voltage4=2920;;;;</font>
<br>
<br><font size=2 face="sans-serif">Within Nagios, I am using the IP address
of the IMM card and not a DNS name of either the IMM or physical server.</font>
<br>
<br><font size=2 face="sans-serif">Any ideas?</font>
<br>
<br><font size=2 face="sans-serif">Thanks.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jake Xu <jake@demonware.net></b>
</font>
<p><font size=1 face="sans-serif">04/06/2012 21:32</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Nagios Users List <nagios-users@lists.sourceforge.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Nagios Users List <nagios-users@lists.sourceforge.net>,
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Nagios-users] check_snmp_ibm_imm.sh
Plugin Help</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>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.</font>
<br>
<br><font size=3>Jake</font>
<br>
<br><font size=3>On Fri, Jun 1, 2012 at 1:56 AM, Giles Coochey <</font><a href=mailto:giles@coochey.net target=_blank><font size=3 color=blue><u>giles@coochey.net</u></font></a><font size=3>>
wrote:</font>
<br><font size=3>On 01/06/2012 00:18, Stuart Browne wrote: </font>
<p><font size=2 color=#004080 face="Calibri">What happens when you run
this check as the user Nagios runs as (usually 'nagios')?</font>
<p><font size=2 color=#004080 face="Calibri"> </font>
<p><font size=2 color=#004080 face="Calibri">Stuart</font>
<p><font size=2 color=#004080 face="Calibri"> </font>
<p><font size=2 face="Tahoma"><b>From:</b> </font><a href="mailto:Peter.Shankland@ricoh-rpl.com" target=_blank><font size=2 color=blue face="Tahoma"><u>Peter.Shankland@ricoh-rpl.com</u></font></a><font size=2 face="Tahoma">
[</font><a href="mailto:Peter.Shankland@ricoh-rpl.com" target=_blank><font size=2 color=blue face="Tahoma"><u>mailto:Peter.Shankland@ricoh-rpl.com</u></font></a><font size=2 face="Tahoma">]
<b><br>
Sent:</b> Thursday, 31 May 2012 8:14 PM<b><br>
To:</b> </font><a href="mailto:nagios-users@lists.sourceforge.net" target=_blank><font size=2 color=blue face="Tahoma"><u>nagios-users@lists.sourceforge.net</u></font></a><font size=2 face="Tahoma"><b><br>
Subject:</b> [Nagios-users] check_snmp_ibm_imm.sh Plugin Help</font>
<p><font size=3> </font>
<p><font size=2 face="Arial">Hi all,</font><font size=3> <br>
</font><font size=2 face="Arial"><br>
I am trying to use the check_snmp_ibm_imm.sh plugin from Nagios Exchange
(</font><a href="http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/check_snmp_ibm_imm-2Esh/details" target=_blank><font size=2 color=blue face="Arial"><u>http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/check_snmp_ibm_imm-2Esh/details</u></font></a><font size=2 face="Arial">)
but am having issues with getting a status back through Nagios - command
line seems to work fine.</font><font size=3> <br>
</font><font size=2 face="Arial"><br>
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:</font><font size=3> <br>
<br>
<br>
</font><font size=2 face="Arial"><br>
So this shows that the plugin is working fine. However, when I then translate
that into Nagios with the new command of:</font><font size=3> </font>
<br><font size=3>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>
</font>
<p><font size=3><br>
<br>
</font><font size=2 face="Arial"><br>
I just get the following:</font><font size=3> <br>
<br>
<br>
</font><font size=2 face="Arial"><br>
It is obviously something I am doing wrong in Nagios but could do with
a push in the right direction :)</font><font size=3> <br>
</font><font size=2 face="Arial"><br>
Thanks.</font><font size=3> </font><font size=2 face="Arial"><br>
Pete.</font><font size=3> </font>
<div align=center>
<hr noshade></div>
<p><font size=3><br>
</font><font size=1 color=#4f4f4f face="Arial"><b><br>
 Peter Shankland</b></font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 TECHNICAL NETWORK SPECIALIST</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 IT DEPARTMENT</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 DD:+44 (0) 1952 205160</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 F:+44 (0) 1952 213100</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 M:+44 (0) 7919 444077  </font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 E:</font><a href="mailto:Peter.Shankland@ricoh-rpl.com" target=_blank><font size=1 color=blue face="Arial"><u>
Peter.Shankland@ricoh-rpl.com</u></font></a><font size=3> <br>
<br>
<br>
</font><font size=1 color=#4f4f4f face="Arial"><br>
 Ricoh UK Products Limited</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 Priorslee | Telford | Shropshire | TF2 9NS</font><font size=3> </font><font size=1 color=#4f4f4f face="Arial"><br>
 T: </font><a href=tel:%2B44%20%280%29%201952%20290090 target=_blank><font size=1 color=blue face="Arial"><u>+44
(0) 1952 290090</u></font></a><font size=3> </font><font size=2 face="Arial"><br>
 </font><font size=3> </font><font size=2 face="Arial"><br>
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</font><font size=3> </font>
<p><font size=3><br>
</font>
<br><tt><font size=3>------------------------------------------------------------------------------<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. </font></tt><a href=http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ target=_blank><tt><font size=3 color=blue><u>http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</u></font></tt></a>
<br><font size=3><br>
</font>
<br><tt><font size=3>_______________________________________________<br>
Nagios-users mailing list<br>
</font></tt><a href="mailto:Nagios-users@lists.sourceforge.net" target=_blank><tt><font size=3 color=blue><u>Nagios-users@lists.sourceforge.net</u></font></tt></a><tt><font size=3><br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank><tt><font size=3 color=blue><u>https://lists.sourceforge.net/lists/listinfo/nagios-users</u></font></tt></a><tt><font size=3><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</font></tt>
<br><font size=3 color=#8f8f8f><br>
</font>
<br><tt><font size=3 color=#8f8f8f>-- <br>
Regards,<br>
<br>
Giles Coochey, CCNA, CCNAS<br>
NetSecSpec Ltd<br>
</font></tt><a href=tel:%2B44%20%280%29%207983%20877438 target=_blank><tt><font size=3 color=blue><u>+44
(0) 7983 877438</u></font></tt></a><tt><font size=3 color=#8f8f8f><br>
</font></tt><a href=http://www.coochey.net/ target=_blank><tt><font size=3 color=blue><u>http://www.coochey.net</u></font></tt></a><tt><font size=3 color=#8f8f8f><br>
</font></tt><a href=http://www.netsecspec.co.uk/ target=_blank><tt><font size=3 color=blue><u>http://www.netsecspec.co.uk</u></font></tt></a><tt><font size=3 color=#8f8f8f><br>
</font></tt><a href=mailto:giles@coochey.net target=_blank><tt><font size=3 color=blue><u>giles@coochey.net</u></font></tt></a><tt><font size=3 color=#8f8f8f><br>
</font></tt>
<br><font size=3><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. </font><a href=http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ target=_blank><font size=3 color=blue><u>http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</u></font></a><font size=3><br>
_______________________________________________<br>
Nagios-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:Nagios-users@lists.sourceforge.net"><font size=3 color=blue><u>Nagios-users@lists.sourceforge.net</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank><font size=3 color=blue><u>https://lists.sourceforge.net/lists/listinfo/nagios-users</u></font></a><font size=3><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</font>
<br><tt><font size=2>------------------------------------------------------------------------------<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. </font></tt><a href=http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/><tt><font size=2>http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</font></tt></a><tt><font size=2>_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
</font></tt><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><tt><font size=2>https://lists.sourceforge.net/lists/listinfo/nagios-users</font></tt></a><tt><font size=2><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</font></tt>
<br>