openipmi_eventd(1)

๐Ÿ’– openipmi_eventd โ€” bestie edition ๐Ÿ’–

okay so this is openipmi_eventd, the IPMI event handler from the OpenIPMI crew, and it is literally the girl in the group chat who relays messages. She sits there, listens for IPMI events, and then hands them off to another program to deal with โ€” or just dumps them in a file. no cap. ๐Ÿฆ‹


โœจ NAME โœจ

openipmi_eventd โ€” An IPMI event handler. that's it, that's the vibe. ๐Ÿ‘‘


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

openipmi_eventd <domain name> <connection parms> <options> <program>
[<parm1> [<parm2> [...]]]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

The openipmi_eventd program listens for IPMI events on the given connection, and then sends them off to another program to process โ€” or, if that's more your thing, to a file. it's giving event relay main character energy, and honestly? obsessed. ๐Ÿ’…


๐Ÿซถ PARAMETERS ๐Ÿซถ

  • <domain name> โ€” the name to use for the OpenIPMI domain. this shows up in logs and in some names, so pick something cute (or at least something you'll recognize later). โœจ
  • <connection parms> โ€” the parameters for the connection depend on the connection type, bestie. they're all described over in openipmi_conparms(7). go read that one, i'll wait. ๐Ÿ“
  • <options> โ€” zero or more of the options defined down in OPTIONS. yes, zero is allowed. she's flexible like that. ๐Ÿ’œ
  • <program> [<parm1> [<parm2> [...]]] โ€” the program to run. this must be the full path to the program, no shortcuts, no vibes-based guessing. any given parameters are passed to the program before any IPMI parameters. order matters, bestie. ๐Ÿ”ฅ

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -f filename, --outfile filename โ€” send all events to the given file. just, like, all of them. ๐Ÿ’Œ
  • -k, --exec-now โ€” immediately spawn the given program and send the event information to that program's standard input. the program should not quit โ€” if it does, then this program will exit with an error. so like, keep it alive, girl. ๐Ÿ˜ญ
  • -i, --event-stdin โ€” send the event information to the program's standard input instead of the commandline. a whole different delivery method, iconic. ๐ŸŽ€
  • -e, --delete-events โ€” delete events from the SEL (System Event Log) once they have been processed. note that the program has to have handled the event without error for the event to be deleted โ€” otherwise the events are not deleted from the SEL. so if your handler fumbles it, nothing gets cleaned up. periodt. ๐Ÿ’€
  • -b, --dont-daemonize โ€” do not daemonize the program, run it as a foreground process. she stays right there where you can see her. ๐Ÿ‘€
  • -d, --debug โ€” debug the program, turn on output, send all logs to stderr, and do not run the process as a daemon. this is the "spill all the tea" mode. ๐ŸŒˆ

๐ŸŒŸ USAGE ๐ŸŒŸ

When started, this program will connect to the given IPMI domain, ignore all existing logs, and set up to listen for logs from all sources. when an event comes in, it'll handle the event depending on how it is configured. ๐Ÿ’ซ

By default, the program will be called on each log and the event information passed on the program's command line. The first parameter (after the ones given on the openipmi_eventd command line) will be the event type, and the rest are key-value pairs as defined below. ๐Ÿ”‘

If -i is given on the commandline, instead of passing in the event information on the command line, it will be passed into the program's standard input. The first line will be the event type, and each line will have a key-value pair up until the last line, which will be endevent. โœจ

If -k is given on the command line, the program will be started immediately and expected to take events on its standard input as they come in. Each event will start with an event type, contain key-value pairs, and end in endevent. ๐ŸŽง


๐Ÿฆ‹ EVENT KEY-VALUE PAIRS ๐Ÿฆ‹

The first line and parameter of an event is always the event type โ€” either threshold, discrete, or unknown. Then the following, in no particular order. When sending to a file, or to another program via standard input, endevent will mark the end of an event. ๐Ÿ

  • assert true|false โ€” if true, the event is being asserted (the alarm is present). if false, the alarm was present but has now gone away. she left. ๐Ÿ™ˆ
  • eventtype <num> โ€” the event type, per the IPMI specification. ๐Ÿ“–
  • eventtime <num> โ€” the time (in seconds) for the IPMI event. it is 64 bits. big number energy. โฐ
  • eventdata <vals> โ€” the raw event data; vals is a list of hex numbers. ๐Ÿ”ข
  • id <name> โ€” the OpenIPMI id of the sensor. this is in the format: <entity_id>.<entity_instance>.<sensor_name>, where the entity id and instance identify the object being monitored and the sensor name comes from the sensor. only for discrete and threshold events. ๐Ÿท๏ธ
  • val <floatnum> โ€” the sensor value that caused the event, in floating point format. optional, and only present for threshold sensors. ๐ŸŒŠ
  • raw <hexnum> โ€” the sensor value that caused the event, in raw (hex) format. optional, and only present for threshold sensors. ๐Ÿงฎ
  • off <num> โ€” the bit in the sensor that caused the event. only present for discrete sensors. ๐Ÿ“
  • severity โ€” the severity of the event. for discrete sensors this is optional and is a number between 0 and 14. the meaning depends on the specific sensor type. for threshold sensors this is one of:
    • lower_non_critical
    • lower_critical
    • lower_non_recoverable
    • upper_non_critical
    • upper_critical
    • upper_non_recoverable
  • prevseverity โ€” for discrete sensors. that's the whole description bestie, i don't make the rules. ๐Ÿ’€
  • direction โ€” the direction of the event, only for threshold sensors. this can be difficult to understand and is not consistent on IPMI systems. the IPMI specification does define what this means. for instance, what does an assertion of an upper critical event going low mean? yeah. ponder that. ๐Ÿค”

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

openipmi_conparms(7) โ€” go read it, it's the prequel. ๐Ÿ“š


๐Ÿ’œ KNOWN PROBLEMS ๐Ÿ’œ

None. she's flawless, your honor. โœจ


๐ŸŽ€ AUTHOR ๐ŸŽ€

Corey Minyard <cminyard@mvista.com> โ€” the icon, the legend, the moment. ๐Ÿซถ


and that's the whole page, bestie!! this came to you from OpenIPMI, dated 03/4/15 โ€” go forth and relay those events. slay, stay daemonized (or don't, -b exists), and remember: no cap, endevent marks the end. ๐Ÿ’–โœจ๐ŸŒˆ

๐Ÿ“ฆ where this page comes from