You are here: Reference Information > Command Line Tools > NuoDB Manager > Create Alarm Definition

Create Alarm Definition

This is a NuoDB Manager command. See NuoDB Manager.

Description

Create a new event or metric alarm definition.

Syntax

create alarmDefinition event
    name alarm_name
    eventType event_name
    dimension { Domain| Database | Host | Node }
    [description optional_description]
    [entitityFilter filter]
    [action { LogOnly | NotifyEvent }]
    [severity { Severe| Warning | Info | Debug }]

create alarmDefinition metric
    name alarm_name
    metricName metric
    dimension { Domain| Database | Host | Node }
    aggrFunc { None | Sum | Average }
    operator { EQ | GT | GE | LT | LE | NE }
    threshold operator_arg
    breachDuration period_of_time
    [description optional_description]
    [entityFilter filter]
    [action { LogOnly | NotifyEvent }]
    [severity { Severe| Warning | Info | Debug }]

Parameters

Interactive Examples

Scripting Example

The same create alarmDefinition commands can be executed with --command as follows:

nuodbmgr --broker host --password password \
    --command "create alarmDefinition event \
    name 'My Node Left' \
    eventType NodeLeft \
    dimension Domain \
    action NotifyEvent \
    severity Debug"
nuodbmgr --broker host --password password \
    --command "create alarmDefinition metric \
    name avg-cpu-60 \
    metricName OS-cpuTotalTimePercent \
    dimension Domain \
    aggrFunc Average \
    operator GE \
    threshold 60 \
    breachDuration 10 \
    action NotifyEvent \
    severity Debug"