# NotifySensorAdd false
# NotifySensorRemove true
# NotifySensorNotPresent false
+# NotifyIPMIConnectionState false
# SELEnabled false
# SELClearEvent false
# </Instance>
# NotifySensorAdd false
# NotifySensorRemove true
# NotifySensorNotPresent false
+# NotifyIPMIConnectionState false
# SELEnabled false
# SELClearEvent false
# </Instance>
If you have for example dual power supply and one of them is (un)plugged then
a notification is sent.
+=item B<NotifyIPMIConnectionState> I<true>|I<false>
+
+If a IPMI connection state changes after initialization time of a minute
+a notification is sent. Defaults to B<false>.
+
=item B<SELEnabled> I<true>|I<false>
If system event log (SEL) is enabled, plugin will listen for sensor threshold
_Bool notify_add;
_Bool notify_remove;
_Bool notify_notpresent;
+ _Bool notify_conn;
_Bool sel_enabled;
_Bool sel_clear_event;
c_ipmi_error(st, "domain_connection_change_handler", err);
if (!still_connected) {
+
+ if (st->notify_conn && st->connected && st->init_in_progress == 0) {
+ notification_t n = {NOTIF_FAILURE, cdtime(), "", "", "ipmi", "", "", "",
+ NULL};
+
+ sstrncpy(n.host, (st->host != NULL) ? st->host : hostname_g,
+ sizeof(n.host));
+ sstrncpy(n.message, "IPMI connection lost", sizeof(n.plugin));
+
+ plugin_dispatch_notification(&n);
+ }
+
st->connected = 0;
return;
}
+ if (st->notify_conn && !st->connected && st->init_in_progress == 0) {
+ notification_t n = {NOTIF_OKAY, cdtime(), "", "", "ipmi", "", "", "", NULL};
+
+ sstrncpy(n.host, (st->host != NULL) ? st->host : hostname_g,
+ sizeof(n.host));
+ sstrncpy(n.message, "IPMI connection restored", sizeof(n.plugin));
+
+ plugin_dispatch_notification(&n);
+ }
+
st->connected = 1;
int status = ipmi_domain_add_entity_update_handler(
ignorelist_set_invert(st->ignorelist, /* invert = */ 0);
else
ignorelist_set_invert(st->ignorelist, /* invert = */ 1);
+ } else if (strcasecmp("NotifyIPMIConnectionState", child->key) == 0) {
+ if (ci->values[0].value.boolean)
+ st->notify_conn = 1;
} else if (strcasecmp("NotifySensorAdd", child->key) == 0) {
if (ci->values[0].value.boolean)
st->notify_add = 1;