Hello,

I was trying to collect SEL logs via syslog on a Dell 1950 with a
static 2.6.35.5 kernel, and turned to /etc/init.d/ipmievd(ipmievd -I
open open). It's OpenIPMI-tools-2.0.16-11.el5(ipmitool-1.8.11).

In my test, ipmievd(8) put two lines in /var/log/messages read

<165>1 2011-10-08T12:52:13+08:00 dns1 ipmievd - - -  Reading sensors...
<165>1 2011-10-08T12:52:14+08:00 dns1 ipmievd - - -  Waiting for events...

Then I expected a test event sent to syslog after this command

# ipmitool event 1
Sending SAMPLE event: Temperature - Upper Critical - Going High
   0 | Pre-Init Time-stamp   | Temperature #0x30 | Upper Critical going high
# ipmitool sel list
...
  27 | 10/08/2011 | 16:42:47 | Temperature #0x30 | Upper Critical
going high  // this entry was generated by the test event

However,  I failed to spot any related entry in /var/log/messages, so
what was I missing?


I confirmed some enables:

# ipmitool mc getenables
Receive Message Queue Interrupt          : disabled
Event Message Buffer Full Interrupt      : disabled
Event Message Buffer                     : enabled
System Event Logging                     : enabled
OEM 0                                    : disabled
OEM 1                                    : disabled
OEM 2                                    : disabled

And the following function reached "return 0" in a gdb session, of
course, otherwise it should log ERROR-level entries.
384 static int
385 openipmi_setup(struct ipmi_event_intf * eintf)
386 {
387         int i, r;
388
389         /* enable event message buffer */
390         lprintf(LOG_DEBUG, "Enabling event message buffer");
391         r = openipmi_enable_event_msg_buffer(eintf->intf);
392         if (r < 0) {
393                 lprintf(LOG_ERR, "Could not enable event message buffer");
394                 return -1;
395         }
396
397         /* enable OpenIPMI event receiver */
398         lprintf(LOG_DEBUG, "Enabling event receiver");
399         i = 1;
400         r = ioctl(eintf->intf->fd, IPMICTL_SET_GETS_EVENTS_CMD, &i);
401         if (r != 0) {
402                 lperror(LOG_ERR, "Could not enable event receiver");
403                 return -1;
404         }
405
406         return 0;
407 }

Thanks,
Kaiwang

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to