When I run the following command, to check running it against the nagios user:
su nagios -s /bin/bash -c "./check_snmp_ibm_imm.sh -H 172.29.13.16 -C 4H2KZNpX -T voltage" I do get correct output: Planar 3.3V = 3250 Planar 5V = 4900 Planar 12V = 11880 Planar VBAT = 2920 |Voltage1=3250;;;; Voltage2=4900;;;; Voltage3=11880;;;; Voltage4=2920;;;; Within Nagios, I am using the IP address of the IMM card and not a DNS name of either the IMM or physical server. Any ideas? Thanks. Jake Xu <j...@demonware.net> 04/06/2012 21:32 Please respond to Nagios Users List <nagios-users@lists.sourceforge.net> To Nagios Users List <nagios-users@lists.sourceforge.net>, cc Subject Re: [Nagios-users] check_snmp_ibm_imm.sh Plugin Help 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. Jake On Fri, Jun 1, 2012 at 1:56 AM, Giles Coochey <gi...@coochey.net> wrote: On 01/06/2012 00:18, Stuart Browne wrote: What happens when you run this check as the user Nagios runs as (usually 'nagios')? Stuart From: peter.shankl...@ricoh-rpl.com [mailto:peter.shankl...@ricoh-rpl.com] Sent: Thursday, 31 May 2012 8:14 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_snmp_ibm_imm.sh Plugin Help Hi all, I am trying to use the check_snmp_ibm_imm.sh plugin from Nagios Exchange ( http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/check_snmp_ibm_imm-2Esh/details ) but am having issues with getting a status back through Nagios - command line seems to work fine. 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: So this shows that the plugin is working fine. However, when I then translate that into Nagios with the new command of: 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. 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. I just get the following: It is obviously something I am doing wrong in Nagios but could do with a push in the right direction :) Thanks. Pete. Peter Shankland TECHNICAL NETWORK SPECIALIST IT DEPARTMENT DD:+44 (0) 1952 205160 F:+44 (0) 1952 213100 M:+44 (0) 7919 444077 E: peter.shankl...@ricoh-rpl.com Ricoh UK Products Limited Priorslee | Telford | Shropshire | TF2 9NS T: +44 (0) 1952 290090 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. Registered in England No. 1763860 Registered Office: Ricoh UK Products Limited, Priorslee, Telford, Shropshire, TF2 9NS ------------------------------------------------------------------------------ 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Regards, Giles Coochey, CCNA, CCNAS NetSecSpec Ltd +44 (0) 7983 877438 http://www.coochey.net http://www.netsecspec.co.uk gi...@coochey.net ------------------------------------------------------------------------------ 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Peter Shankland TECHNICAL NETWORK SPECIALIST IT DEPARTMENT DD:+44 (0) 1952 205160 F:+44 (0) 1952 213100 M:+44 (0) 7919 444077 E: peter.shankl...@ricoh-rpl.com Ricoh UK Products Limited Priorslee | Telford | Shropshire | TF2 9NS T: +44 (0) 1952 290090 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. Registered in England No. 1763860 Registered Office: Ricoh UK Products Limited, Priorslee, Telford, Shropshire, TF2 9NS
<<image/gif>>
<<image/gif>>
------------------------------------------------------------------------------ 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. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null