Extras:Console Alert

From FreeNATS Wiki
Jump to: navigation, search
Console Alerts
Description: Echos alerts to system console
Requires: Version 1
Type: Event Handler
Included: Standard Extras
Version: 0.01 17/08/2009

The console alert extra for FreeNATS provides the ability to output alerts to the system console (/dev/console).

Installation

Copy the console.php file from the extras/events directory into base/site/events/ (you will also need to enable site event includes).

Configuration

Configuration is not directly supported but you may change options in the code if you know what you are doing.

Usage

Once installed and enabled simply create an alert action of the type message queue and the name "_console" (without the quotes).

Add this alert action to any nodes you desire.

Alert text for this action will now be output on the console.

Please note this will not work for testing (test alert action) dependent on your security settings but should work for "live" alerts

Technical Requirements

System

FreeNATS version 1

Methods

TFreeNATS::AddEventHandler

Events

alert_action