This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hostname xx | |
FQDNLookup false | |
Interval 10 | |
<Include "/etc/collectd.d"> | |
Filter "*.conf" | |
</Include> | |
LoadPlugin syslog | |
LoadPlugin logfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2014-01-31 13:36:30] Replacing DS `connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `income' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_incoming' with another version. | |
[2014-01-31 13:36:30] Replacing DS `outgoing' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_outgoing' with another version. | |
[2014-01-31 13:36:30] Initialization complete, entering read-loop. | |
[2014-01-31 13:36:30] amqp plugin: Successfully opened connection to vhost "/sensu" on IP:port. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"loadBalancerUsageRecords": [ | |
{ | |
"averageNumConnections": xx, | |
"averageNumConnectionsSsl": xx, | |
"endTime": timestamp, | |
"id": xx, | |
"incomingTransfer": xx, | |
"incomingTransferSsl": xx, | |
"numPolls": xx, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2014-01-31 13:36:30] The read function "curl_json-Load_Balancer-https://API_url" is already registered. Check for duplicate "LoadPlugin" lines in your configuration! | |
[2014-01-31 13:36:30] Replacing DS `connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_connections' with another version. | |
[2014-01-31 13:36:30] Replacing DS `income' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_incoming' with another version. | |
[2014-01-31 13:36:30] Replacing DS `outgoing' with another version. | |
[2014-01-31 13:36:30] Replacing DS `ssl_outgoing' with another version. | |
[2014-01-31 13:36:30] Initialization complete, entering read-loop. | |
[2014-01-31 13:36:30] amqp plugin: Successfully opened connection to vhost "/sensu" on IP:port. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Sensu Twitter Handler | |
# === | |
# | |
# This handler reports alerts to a configured twitter handler. | |
# Map a twitter handle to a sensusub value in the twitter.json to get going! | |
# sensusub == subscription in the client object, not check.. | |
# see twitter.json for required values | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{..} | |
foo = Twitter::REST::Client.new do |config| | |
config.consumer_key = account[1]["consumer_key"] | |
config.consumer_secret = account[1]["consumer_secret"] | |
config.access_token = account[1]["access_token"] | |
config.access_token_secret = account[1]["access_token_secret"] | |
end | |
if @event['action'].eql?("resolve") | |
foo.update("RESOLVED - #{event_name}: #{@event['check']['notification']} Time: #{Time.now()}" ) | |
foo.create_direct_message(@user, "test_text") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/path_to_gem/twitter/rest/response/raise_error.rb:21:in `on_complete': Recipient (user, screen name, or id) parameter is missing. (Twitter::Error::BadRequest) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@server plugins]# ./rabbitmq-amqp-alive.rb -w rabbitmq_host -p my_pass -P 5671 -u my_user -v my_vhost | |
W, [2014-02-04T19:10:19.827147 #4555] WARN -- #<Bunny::Session:11666480 my_user@rabbitmq_host:5671, vhost=my_vhost>: Using TLS but no client certificate is provided! If RabbitMQ is configured to verify peer | |
certificate, connection upgrade will fail! | |
CheckRabbitAMQP UNKNOWN: SSL_connect returned=1 errno=0 state=SSLv3 read finished A: sslv3 alert handshake failure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. | |
"rabbitmq": { | |
"ssl": { | |
"private_key_file": "/etc/sensu/ssl/client_key.pem", | |
"cert_chain_file": "/etc/sensu/ssl/client_cert.pem" | |
}, | |
"port": 5671, | |
"host": "rabbitmq.mgmt-int", | |
"user": "my_user", | |
"password": "my_pass", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rackspace NewRelic plugin | |
# This script keeps this service running. | |
respawn | |
script | |
exec chdir /path_to_plugin_installation_directory/newrelic_rs_dfw | |
exec bundle exec ./bin/newrelic_rs | |
end script |