Hello,
we are using the script "check_openmanage" for CRON monitoring of DELL
Servers (no Nagios) and the recharge cycles of the BBU are really
bothering ... Instead of blacklisting the whole BBU (which may fail and
in this case I'd like to know), I wanted to blacklist charges only.
Thus I added a --backlist=bat_charge/0:0 option to filter out charge
cycles ....
Regards,
Robert
--- /usr/local/lib64/nagios/plugins/contrib/check_openmanage 2009-05-26
13:27:07.000000000 +0200
+++ /usr/local/lib64/nagios/plugins/contrib/check_openmanage.NEW
2009-09-29 08:14:18.159024875 +0200
@@ -1287,22 +1287,31 @@
# Special case: Charging
if ($state eq 'Charging') {
+ next BATTERY if blacklisted('bat_charge', $nexus);
push @report_storage, [ sprintf('Cache battery %d in controller %d
is %s (%s) [probably harmless]',
$id, $ctrl, $state, $pred),
$WARNING, $nexus ];
}
# Special case: Learning (whats this?)
elsif ($state eq 'Learning') {
+ next BATTERY if blacklisted('bat_charge', $nexus);
push @report_storage, [ sprintf('Cache battery %d in controller %d
is %s (%s) [probably harmless]',
$id, $ctrl, $state, $learn),
$WARNING, $nexus ];
}
# Special case: Power Low (part of recharge cycle?)
elsif ($state eq 'Power Low') {
+ next BATTERY if blacklisted('bat_charge', $nexus);
push @report_storage, [ sprintf('Cache battery %d in controller %d
is %s [probably harmless]',
$id, $ctrl, $state),
$WARNING, $nexus ];
}
+ elsif ($state eq 'Degraded' && $status eq 'Non-Critical') {
+ next BATTERY if blacklisted('bat_charge', $nexus);
+ push @report_storage, [ sprintf('Cache battery %d in controller %d
needs attention (%s / %s) [probably harmless]',
+ $id, $ctrl, $state, $status),
+ $WARNING, $nexus ];
+ }
# Default
elsif ($status ne 'Ok') {
push @report_storage, [ sprintf('Cache battery %d in controller %d
needs attention (%s / %s)',
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
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