Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_snmp_ibm_imm.sh
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This plugin checks sensors (temperature, fans and voltages) and overall health of IBM servers using the Integrated Management Module (IMM).
Examples:
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T health
Health status: Normal|
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T temperature
Ambient Temp = 18
|Temperature1=18;;;;
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T voltage
Planar 3.3V = 3270
Planar 5V = 4860
Planar 12V = 11990
Planar VBAT = 3050
|Voltage1=3270;;;; Voltage2=4860;;;; Voltage3=11990;;;; Voltage4=3050;;;;
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T fans
Fan 1A Tach = 26%
Fan 1B Tach = 19%
Fan 2A Tach = 29%
Fan 2B Tach = 18%
Fan 3A Tach = 30%
Fan 3B Tach = 21%
Fan 4A Tach = 31%
Fan 4B Tach = 21%
Fan 5A Tach = 30%
Fan 5B Tach = 21%
Fan 6A Tach = 30%
Fan 6B Tach = 21%
|Fan1=26%;;;; Fan2=19%;;;; Fan3=29%;;;; Fan4=18%;;;; Fan5=30%;;;; Fan6=21%;;;; Fan7=31%;;;; Fan8=21%;;;; Fan9=30%;;;; Fan10=21%;;;; Fan11=30%;;;; Fan12=21%;;;;
Examples:
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T health
Health status: Normal|
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T temperature
Ambient Temp = 18
|Temperature1=18;;;;
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T voltage
Planar 3.3V = 3270
Planar 5V = 4860
Planar 12V = 11990
Planar VBAT = 3050
|Voltage1=3270;;;; Voltage2=4860;;;; Voltage3=11990;;;; Voltage4=3050;;;;
check_snmp_ibm_imm.sh -H 1.2.3.4 -C community -T fans
Fan 1A Tach = 26%
Fan 1B Tach = 19%
Fan 2A Tach = 29%
Fan 2B Tach = 18%
Fan 3A Tach = 30%
Fan 3B Tach = 21%
Fan 4A Tach = 31%
Fan 4B Tach = 21%
Fan 5A Tach = 30%
Fan 5B Tach = 21%
Fan 6A Tach = 30%
Fan 6B Tach = 21%
|Fan1=26%;;;; Fan2=19%;;;; Fan3=29%;;;; Fan4=18%;;;; Fan5=30%;;;; Fan6=21%;;;; Fan7=31%;;;; Fan8=21%;;;; Fan9=30%;;;; Fan10=21%;;;; Fan11=30%;;;; Fan12=21%;;;;
Reviews (7)
byfarid, October 16, 2017
Nice plugin with a few flaws.
I made the modifications suggested by other comments here and a few other small changes. I named the "new" plugin check_snmp_ibm_imm-ng, which can also be found here on exchange.nagios.org.
Thank you ulric!
I made the modifications suggested by other comments here and a few other small changes. I named the "new" plugin check_snmp_ibm_imm-ng, which can also be found here on exchange.nagios.org.
Thank you ulric!
byjohnj_123, April 20, 2015
CPU temp critical reading in MIB is 0. Added this check to avoid false critical on CPU temp.
if test "$tempCritical" -gt 0 -a "$tempTemp" -ge "$tempCritical";
if test "$tempCritical" -gt 0 -a "$tempTemp" -ge "$tempCritical";
byrogerrb, January 16, 2014
We got a new IBM x3550 M4 Server, and this server has a temperature sensor named “Mezz Card Temp” that always give 0 as the temperature. This sensors looks like it is for an optional Mezzanine card that is not installed in this server. To avoid this server to always report warning on temparature, I had to modify the script to report OK on sensors that have a Fatal temparature level of 0. My modified temparature check looks like this:
if test "$tempFatal" -eq "0"; then
STATUS=0
elif test "$tempTemp" -ge "$tempCritical"; then
STATUS=2
elif test "$tempTemp" -ge "$tempNoncritical"; then
STATUS=1
fi
if test "$tempFatal" -eq "0"; then
STATUS=0
elif test "$tempTemp" -ge "$tempCritical"; then
STATUS=2
elif test "$tempTemp" -ge "$tempNoncritical"; then
STATUS=1
fi
bydamn-86, January 8, 2014
Excellent plugin!
I was wondering about the return value for non-critical errors. (critical/red)
But it wasn't a problem to change this value to "1" (warning/yellow). This makes more sense to me.
Line 103:
4 )
RESULT="Health status: non-critical error"
STATUS=1
;;
I was wondering about the return value for non-critical errors. (critical/red)
But it wasn't a problem to change this value to "1" (warning/yellow). This makes more sense to me.
Line 103:
4 )
RESULT="Health status: non-critical error"
STATUS=1
;;
Thanks for the excellent plugin that saved me quite some work, I've tested it on our Nagios deployment to monitor our lab equipment composed of 3250,3650 and 3850 it works like a charm!
This plugin works well for x3620 M3 servers.
As with many plugins, the assumption is that Nagios runs on Linux. When running this plugin on Solaris, the instances of "grep -F" need to be changed to use /usr/xpg4/bin/grep, instead of the default grep in /usr/bin.
As with many plugins, the assumption is that Nagios runs on Linux. When running this plugin on Solaris, the instances of "grep -F" need to be changed to use /usr/xpg4/bin/grep, instead of the default grep in /usr/bin.
Owner's reply
Thanks for the comment. Posix requires grep -F. I suppose Solaris has an fgrep which does the same thing but that is not in Posix so it is (in theory) less portable. I guess Solaris users will just have to suffer until Oracle fix it. :)
hi,
works on x3250 M3 for me - could only test "health" with putting out an HDD.
temperatures etc are alle shown correctly
thank you very much
alfred
works on x3250 M3 for me - could only test "health" with putting out an HDD.
temperatures etc are alle shown correctly
thank you very much
alfred