Skip to main content
Common Reference

The tungsten_newrelic_event Command

The tungsten_newrelic_event script utilises existing Tunsgten monitor scripts and inserts the results into New Relic.

Usage
tungsten_newrelic_event --account [New Relic Account ID] --key [New Relic Insights API Insert Key] [options]

Where:

OptionDescriptionProduct
--accountUse to spceify your New Relic Account ID.CTTR
--connector
Aliases: -c
Run check_tungsten_services -c to check for the Connector.CT
--critical
Aliases: -C
Specify the Critical alert latency level in seconds; optionally used for check_tungsten_latency.
Default: 15
CTTR
--curlUse to specify full path the curl binary.CTTR
--debug
Aliases: -d
Enabling debug also implies enabling of verbose. Debug is VERY chatty, avoid unless essential.CTTR
--help
Aliases: -h
Showe help text.CTTR
--hostnameUse to specify full path the hostname binary.CTTR
--keyUse to specify your New Relic Insights API Insert key.CTTR
--latency
Aliases: -l
Run check_tungsten_latency, optionally specify --warn and --crit.CTTR
--node
Aliases: -n
Will execute check_tungsten_services -r which on a Tungsten Cluster node will check the Manager and the Replicator, and on a standalone Tungsten Replicator node, will just check the Replicator.CTTR
--noexecDo not execute the Tungsten Nagios Check script.CTTR
--online
Aliases: -o
Run check_tungsten_online, optionally specify a service with --serviceCTTR
--policy
Aliases: -p
Run check_tungsten_policyCTTR
--progress
Aliases: -r
Run check_tungsten_progress, optionally specify a timeout with --timeout, optionally specify a service with --serviceCTTR
--serviceSpecify a service name; optionally used for check_tungsten_online and check_tungsten_progress.CTTR
--services
Aliases: -s
On a Tungsten Cluster node, will execute check_tungsten_services -r -cwhich will check the Manager, the Replicator and the Connector and on a standalone Tungsten Replicator instance, will executecheck_tungsten_services -r that will just check the Replicator.CTTR
--testDo not execute the New Relic API Insert call.CTTR
--timeout
Aliases: -t
Specify the time to wait for progress to occur; optionally used for check_tungsten_progress.
Default: 1
CTTR
--tmpfileUse to specify full path to the temp JSON file.
Default: ./new_relic_event.json
CTTR
--verbose
Aliases: -v
CTTR
--warn
Aliases: -w
Specify the Warning alert latency level in seconds; optionally used for check_tungsten_latency.
Default: 5
CTTR

By default all of the following Nagios check scripts under $CONTINUENT_ROOT/tungsten/cluster-home/bin are executed and the results of each are inserted into NewRelic as the associated EventType.

ExecutableEventType
check_tungsten_latencyCheckTungstenLatency
check_tungsten_onlineCheckTungstenOnline
check_tungsten_policyCheckTungstenPolicy
check_tungsten_progressCheckTungstenProgress
check_tungsten_services -r -cCheckTungstenServices
Tungsten Clustering Only
check_tungsten_services -rCheckTungstenServices
check_tungsten_services -rCheckTungstenNode
check_tungsten_services -cCheckTungstenConnector
Tungsten Clustering Only

If you specify a check to execute by using one or more cli args, then only those checks specified will be run.

curl must be installed and available on the PATH.

You must provide your New Relic Account ID and your New Relic Insights API Insert Key for the script to function.