Skip to content

Latest commit

 

History

History
325 lines (254 loc) · 8.24 KB

constants.adoc

File metadata and controls

325 lines (254 loc) · 8.24 KB

Status of the [class-businessservice] class object

Constant Value Description

BusinessServiceState::OPERATIONAL

0

No failed checks

BusinessServiceState::DEGRADED

2

One of checks returned not normal, but is not failed yet

BusinessServiceState::FAILED

4

At least one of checks failed

Constant Value Description

BusinessServiceType::NONE

0

None

BusinessServiceType::SCRIPT

1

Script

BusinessServiceType::DCI

2

DCI

BusinessServiceType::OBJECT

3

Object

Data types of the [class-dci] class

Constant Value Description

DCI::INT32

0

Signed 32 bit integer

DCI::UINT32

1

Unsigned 32 bit integer

DCI::INT64

2

Signed 64 bit integer

DCI::UINT64

3

Unsigned 64 bit integer

DCI::STRING

4

String

DCI::FLOAT

5

Floating point number

DCI::NULL

6

Used internally; should not be used in the scripts

DCI::COUNTER32

7

32 bit counter

DCI::COUNTER64

8

64 bit counter

Data collection exit codes

Should be used in order to return errors in script DCIs or in transoformation script.

Constant

Description

DataCollection::ERROR

DCI collection eeror

DataCollection::NO_SUCH_INSTANCE

No sutch instance error

DataCollection::NOT_SUPPORTED

Not supported eeror

DCI states of the [class-dci] class

Constant Value Description

DCI::ACTIVE

0

Active

DCI::DISABLED

1

Disabled

DCI::UNSUPPORTED

2

Unsupported

DCI data source (origin) of the [class-dci] class

Constant Value Description

DataSource::INTERNAL

0

Internal

DataSource::AGENT

1

Agent

DataSource::SNMP

2

SNMP

DataSource::WEB_SERVICE

3

Web service

DataSource::PUSH

4

Push data

DataSource::WINPERF

5

Windows Performance Counters

DataSource::SMCLP

6

SMCLP

DataSource::SCRIPT

7

Script

DataSource::SSH

8

SSH

DataSource::MQTT

9

MQTT

DataSource::DEVICE_DRIVER

10

Network Device driver

DataSource::MODBUS

11

MQTT

Flags for [class-dci] class

Constant Value Description

DCI::ALL_THRESHOLDS

0x00002

Process all thresholds

DCI::RAW_VALUE_OCTET_STRING

0x00004

Raw value is octet string

DCI::SHOW_ON_OBJECT_TOOLTIP

0x00008

Show DCI on object tooltip

DCI::AGGREGATE_ON_CLUSTER

0x00080

Aggregate data on cluster

DCI::TRANSFORM_AGGREGATED

0x00100

Transform agregated data

DCI::CALCULATE_NODE_STATUS

0x00400

Used in node status calculation

DCI::SHOW_IN_OBJECT_OVERVIEW

0x00800

Show in object overview

DCI::AGGREGATE_WITH_ERRORS

0x04000

Aggregate with errors

DCI::HIDE_ON_LAST_VALUES_PAGE

0x08000

Hide on last values page

DCI::STORE_CHANGES_ONLY

0x40000

Stor changed values only

Origin of [class-event] class

Constant Value Description

EventOrigin::SYSTEM

0

System

EventOrigin::AGENT

1

Agent

EventOrigin::CLIENT

2

Client

EventOrigin::SYSLOG

3

Syslog

EventOrigin::SNMP

4

SNMP

EventOrigin::NXSL

5

NXSL

EventOrigin::REMOTE_SERVER

6

Remote server

EventOrigin::WINDOWS_EVENT

7

Windows event

Category of [class-hardwarecomponent] class

Constant Value Description

HardwareComponentCategory::OTHER

0

Other

HardwareComponentCategory::BASEBOARD

1

Baseboard

HardwareComponentCategory::PROCESSOR

2

Processor

HardwareComponentCategory::MEMORY

3

Memory

HardwareComponentCategory::STORAGE

4

Storage

HardwareComponentCategory::BATTERY

5

Battery

HardwareComponentCategory::NETWORK_ADAPTER

6

Network adapter

Expected state for [class-interface] class

Constant Value Description

InterfaceExpectedState::UP

0

Up

InterfaceExpectedState::DOWN

1

Down

InterfaceExpectedState::IGNORE

2

Ignore

Constant Value Description

MapLinkColorSource::CustomColor

2

Link color source custom color

MapLinkColorSource::Default

0

Link color source default color

MapLinkColorSource::InterfaceStatus

5

Link color source interface status

MapLinkColorSource::InterfaceUtilization

4

Link color source interface utilization

MapLinkColorSource::ObjectStatus

1

Link color source object status

MapLinkColorSource::Script

3

Link color source script

Constant Value Description

MapLinkRoutingAlgorithm::Default

0

Map default

MapLinkRoutingAlgorithm::Direct

1

Direct

MapLinkRoutingAlgorithm::Manhattan

2

Manhattan

MapLinkRoutingAlgorithm::BendPoints

3

Bend points

Constant Value Description

MapLinkStyle::Default

0

Map default

MapLinkStyle::Solid

1

Direct

MapLinkStyle::Dash

2

Manhattan

MapLinkStyle::Dot

3

Bend points

MapLinkStyle::DashDot

4

Bend points

MapLinkStyle::DashDotDot

5

Bend points

Node state

Constant Value Description

NodeState::Unreachable

0x00000001

Node is unreachable

NodeState::NetworkPathProblem

0x00000002

Network path problem

NodeState::AgentUnreachable

0x00010000

NetXMS agent unreachable

NodeState::SNMPUnreachable

0x00020000

Unreachable via SNMP

NodeState::EtherNetIPUnreachable

0x00040000

Unreachable via EtherNet/IP industrial protocol

NodeState::CacheModeNotSupported

0x00080000

Cache mode is not supported on NetXMS agent

NodeState::SNMPTrapFlood

0x00100000

SNMP trap flood detected

NodeState::ICMPUnreachable

0x00200000

Unreachable via ICMP

NodeState::SSHUnreachable

0x00400000

Unreachable via SSH

NodeState::MODBUSUnreachable

0x00800000

Unreachable via MODBUS

Object status codes

Constant Value Description

Status::NORMAL

0

Normal

Status::WARNING

1

Warning

Status::MINOR

2

Minor

Status::MAJOR

3

Major

Status::CRITICAL

4

Critical

Status::UNKNOWN

5

Unknown

Status::UNMANAGED

6

Unmanaged

Status::DISABLED

7

Disabled

Status::TESTING

8

Testing

Cluster state

Constant Value Description

ClusterState::Unreachable

0x00000001

Unreachable

ClusterState::NetworkPathProblem

0x00000002

Network Path Problem

ClusterState::Down

0x00010000

Down

Sensor state

Constant Value Description

SensorState::Unreachable

0x00000001

Unreachable

SensorState::NetworkPathProblem

0x00000002

Network Path Problem

SensorState::MODBUSUnreachable

0x00800000

Unreachable via MODBUS

Severity constants

Constant Value Description

Severity::NORMAL

0

Normal

Severity::WARNING

1

Warning

Severity::MINOR

2

Minor

Severity::MAJOR

3

Major

Severity::CRITICAL

4

Critical

Status colors

Constant Value Description

StatusColor::NORMAL

0

Normal

StatusColor::WARNING

1

Warning

StatusColor::MINOR

2

Minor

StatusColor::MAJOR

3

Major

StatusColor::CRITICAL

4

Critical

StatusColor::UNKNOWN

5

Critical

StatusColor::UNMANAGED

6

Critical

StatusColor::DISABLED

7

Critical

StatusColor::TESTING

8

Critical

Change Code

Node attributes change code

Constant Value

ChangeCode::NONE

0

ChangeCode::ADDED

1

ChangeCode::UPDATED

2

ChangeCode::REMOVED

3

Other constants

NXSL::BuildTag

Current server build tag

NXSL::Classes

Array containing all NXSL classes

NXSL::Functions

Array containing names of all NXSL functions

NXSL::SystemIsBigEndian

TRUE if system is big endian otherwise FALSE

NXSL::Version

Current server version