Heka IRC Alert Output Module

1. Sample Configuration

To use the IRC module for alert output, include a configuration for the module in the alert configuration. The value should be an array of connection specifications, and the alerting module will create a connection for each one.

alert = {
    modules = {
        irc = {
            {
                nick        = "nick",
                server      = "irc.server",
                port        = 6697, -- optional, default shown
                channel     = "#hindsight",
                _key        = "channelkey", -- optional, omit for no key required
            },
            {
                nick        = "othernick",
                server      = "irc.server2",
                port        = 6697, -- optional, default shown
                channel     = "#anotherchan",
            },
        },
    }
}

2. Functions

2.1. send

Function that actually composes and delivers the IRC alert

Arguments

  • msg (table) - Heka alert message
  • cfg (array) - module configuration variables extracted from the message

Return

  • error (string/nil)

source code: irc.lua

results matching ""

    No results matching ""