The tungsten_newrelic_event script utilises existing tunsten monitor scripts and inserts the results into New Relic.
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.
Executable |
EventType |
---|---|
check_tungsten_latency |
CheckTungstenLatency |
check_tungsten_online |
CheckTungstenOnline |
check_tungsten_policy |
CheckTungstenPolicy |
check_tungsten_progress |
CheckTungstenProgress |
check_tungsten_services -r -c |
CheckTungstenServices |
check_tungsten_services -r |
CheckTungstenNode |
check_tungsten_services -c |
CheckTungstenConnector |
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.
You may obtain the API Insert Key at https://insights.newrelic.com/accounts/{New Relic Account ID}/manage/api_keys
tungsten_monitor [ --account
] [ --connector
, -c
] [ --critical {seconds}
, -C {seconds}
] [ --node
, -n
] [ --services
, -s
] [ --curl
] [ --debug
, -d
] [ --help
, -h
] [ --hostname
] [ --key
] [ --latency
, -l
] [ --noexec
] [ --online
, -o
] [ --policy
, -p
] [ --progress
, -r
] [ --service {SERVICE}
] [ --test
] [ --timeout {seconds}
, -t {seconds}
]
tmpfile [ --verbose
, --v
] [ --warn {seconds}
, -W {seconds}
]
Where:
Table 9.73. tungsten_monitor Command-line Options
Option | Description |
---|---|
--account | Use to spceify your New Relic Account ID |
--connector , -c | Run check_tungsten_services -c to check for the Connector |
-C {seconds} , --critical {seconds} | (default: 15) Specify the Critical alert latency level in seconds; optionally used for check_tungsten_latency |
-n , --node | Run check_tungsten_services -r to check for the Manager and the Replicator |
-s , --services | Run check_tungsten_services -r -c to check for the Manager, the Replicator and the Connector |
--curl | Use to specify full path the curl binary |
--debug , -d | Enabling debug also implies enabling of verbose. Debug is VERY chatty, avoid unless essential |
--help , -h | |
--hostname | Use to specify full path the hostname binary |
--key | Use to specify your New Relic Insights API Insert key |
--latency , -l | Run check_tungsten_latency, optionally specify --warn and --crit |
--noexec | Do not execute the Tungsten Nagios Check script |
--online , -o | Run check_tungsten_online, optionally specify a service with --service |
--policy , -p | Run check_tungsten_policy |
--progress , -r | Run check_tungsten_progress, optionally specify a timeout with --timeout, optionally specify a service with --service |
--service {SERVICE} | Specify a service name; optionally used for check_tungsten_online and check_tungsten_progress |
--test | Do not execute the New Relic API Insert call |
-t {seconds} , --timeout {seconds} | (default: 1) Specify the time to wait for progress to occur; optionally used for check_tungsten_progress |
tmpfile | Use to specify full path the temp JSON file. Default: ./new_relic_event.json |
--verbose , --v | |
-W {seconds} , --warn {seconds} | (default: 5) Specify the Warning alert latency level in seconds; optionally used for check_tungsten_latency |
Usage
shell> tungsten_newrelic_event --account {New Relic Account ID} --key {New Relic Insights API Insert Key} [args]