Monitor Hosts

This is a NuoDB Manager command. See NuoDB Manager. See also Monitor and Monitor Alarms.

Description

Subscribes to operating system (OS) statistics generated from the hosts, not from any specific database process. This command only produces useful metrics if the property monitorDomainNew is true.

With monitorDomainNew equals true:

This is equivalent to monitor domain with the property monitorDomainNew set to true and the properties monitorDatabaseProcessStats, monitorDomainAggregates and monitorDomainAlarm set to false.

OS metrics are gathered by the broker for each host. All OS metrics are prefixed with OS-. OS metrics statistics sets are preceded by a line with the format:

date time (OS) [ hostname/address:broker_port ]:

For example:

Nov 3, 2015 1:00:02 PM (OS) [ ip-172-31-1-136/172.31.1.136:48004 ]: 

Syntax

monitor hosts

Parameters

Useful Properties

monitorDomainNew

See NuoDB Manager Properties.

Interactive Example

Currently the monitor command is only supported via the nuodbmgr--command parameter.

Scripting Example

The following example shows output from monitor hosts with the property monitorDomainNew set to true. This domain has two hosts.

$ nuodbmgr --broker host --password password --command "set property monitorDomainNew value true; monitor hosts"
Nov 4, 2015 10:18:03 AM (OS) [ ip-172-31-1-136/172.31.1.136:48004 ]: 
OS-cpuSystemTimePercent = 0.0
OS-cpuTotalTimePercent = 0.0
OS-fsVarDirUsePercent = 43.0
OS-memUsedPercent = 5.51
OS-netAllInbound = 0.0
OS-netAllOutbound = 1.0

Nov 4, 2015 10:18:03 AM (OS) [ ip-172-31-3-189/52.10.143.12:48004 ]: 
OS-cpuSystemTimePercent = 0.0
OS-cpuTotalTimePercent = 0.05
OS-fsVarDirUsePercent = 53.0
OS-memUsedPercent = 12.79
OS-netAllInbound = 20.0
OS-netAllOutbound = 17.0
...