The usual IT babble
Monitoring the IBM BladeCenter chassis with Nagios
Today I ended up working out the details on what we want to monitor regarding our BladeCenter. The most interesting details (for us that is) are these:
- Fan speeds for Chassis Cooling/Power Module Cooling Bay(s)
- Temperature
- Power Domain utilization
It wasn’t *that* hard to implement. Only trouble(s) I ran into, were (1) IBM did a real shitty job with the MIB’s. If you look closely into the mmblade.mib, you’re gonna notice, that not a single OID is specified for the events. (2) As the MIB’s weren’t documented anywhere, I had to look them up via snmpwalk (which I had never used before). So as a reminder (to myself), here’s how it is done:
snmpwalk -v1 -c public -O n 10.0.0.35 .1.3.6.1.4.1.2.3.51.2.2
This will get you a list, with a lot of output (5154 lines to be exact). Lucky me, the web interface of the management module/ssh interface is rather verbose, so all you need to do is compare those values with what you are looking for.
So for myself (and anyone interested) read ahead for the list of checks we are currently running on the management module.
define command {
command_name check_snmpv1
command_line /usr/lib/nagios/plugins/check_snmp -C public \
-H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ \
-c $ARG3$ -l $ARG5$ -u $ARG4$
}
define host {
use generic-network
host_name bc-mgmt1
alias bc-mgmt1.home.barfoo.org
address 10.0.0.35
parents uni-greif-05
}
define service {
use generic-service
host_name bc-mgmt1
service_description Temperature
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.1.5.1.0!\
33!38!C!Input temperature
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Chassis Cooling - Bay 1
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.3.20.0!\
1600:1200,2100:2600!1200:0,2600:3000!RPM!\
Chassis Cooling - Bay 1
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Chassis Cooling - Bay 2
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.3.21.0!\
1600:1200,2100:2600!1200:0,2600:3000!RPM!\
Chassis Cooling - Bay 2
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 1
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.6.1!\
6200:5400,6700:7000!5300:0,7000:7500!RPM!\
Power Module Cooling - Bay 1
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 1 Fans
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.4.1!\
2:1!1:0!Fans present!\
Power Module Cooling - Bay 1
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 2
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.6.2!\
6200:5400,6700:7000!5300:0,7000:7500!RPM!\
Power Module Cooling - Bay 2
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 2 Fans
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.4.2!\
2:1!1:0!Fans present!\
Power Module Cooling - Bay 2
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 3
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.6.3!\
6200:5400,6700:7000!5300:0,7000:7500!RPM!\
Power Module Cooling - Bay 3
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 3 Fans
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.4.3!\
2:1!1:0!Fans present!\
Power Module Cooling - Bay 3
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 4
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.6.2!\
6200:5400,6700:7000!5300:0,7000:7500!RPM!\
Power Module Cooling - Bay 4
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Module Cooling - Bay 4 Fans
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.6.1.1.4.2!\
2:1!1:0!Fans present!\
Power Module Cooling - Bay 4
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Domain 1: Utilization
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.1!\
2600:2400!2880:2600!W!\
Power Domain 1: Utilization
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
define service {
use generic-service
host_name bc-mgmt1
service_description Power Domain 2: Utilization
check_command check_snmpv1!.1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.10.2!\
2600:2400!2880:2600!W!\
Power Domain 2: Utilization
action_url /pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
notes View PNP RRD grap
}
| Print article | This entry was posted by Christian on Tuesday, 10th February, 2009 at 12:40, and is filed under Life. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.