Skip to content

Instantly share code, notes, and snippets.

View marianogg9's full-sized avatar

marianogg9

View GitHub Profile
Apr 7 08:10:21 ip-XX-XX-XX-XX sendmail[20504]: s342PtfZ013340: to=<[email protected]>, delay=3+05:44:26, xdelay=00:04:00, mailer=esmtp, pri=6874214, relay=hormail.com. [ip], dsn=4.0.0, stat=Deferred: Connection timed out with hormail.com.
start on startup
chdir /path/service_dir
exec ./service.sh
curl -X POST "http://graphite_url/events/" -d '{"date": "03/31/2014", "time": "17:00:00", "what": "Deploy Core (API)", "tags": "Core-deploy", "data": "Deploy Core (API) at Mon March 31 17:00:00 UTC 2014"}'
"token": {
"RAX-AUTH:authenticatedBy": [
""
],
"expires": "",
"id": "",
"tenant": {
"id": "",
"name": ""
}
1- to obtain credentials:
# curl -s https://rackspace_api_urlv2.0/tokens -X 'POST' -d '{"auth":{"passwordCredentials":{"username":"user_name", "password":"my_pass"}}}' -H "Content-Type: application/json" | python -m json.tool
2- adding credentials.txt
# vim /root/credentials.txt
[rackspace_cloud]
username = user_name
api_key = aws_key
26 Mar 16:46:37 - reading config file: /path/statsd/Config.js
26 Mar 16:46:37 - server is up
26 Mar 16:46:37 - DEBUG: Loading backend: ./backends/graphite
26 Mar 16:47:37 - DEBUG: numStats: 2
26 Mar 16:48:37 - DEBUG: numStats: 3
26 Mar 16:49:38 - DEBUG: numStats: 3
26 Mar 16:50:38 - DEBUG: numStats: 3
26 Mar 16:51:38 - DEBUG: numStats: 3
26 Mar 16:52:38 - DEBUG: numStats: 3
26 Mar 16:53:38 - DEBUG: numStats: 3
output.conf
output{
elasticsearch {
cluster => "logstash"
host => "ES_hostname"
embedded => "false"
}
statsd {
if [type] == "log_type" {
grok {
patterns_dir => "/path/patterns"
match => { "message" => "%{my_custom_defined}" }
}
date {
match => [ "timestamp", "%{TIMESTAMP_ISO8601}" ]
}
}
..
/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyrax/__init__.py", line 64, in <module>
from novaclient.v1_1 import client as _cs_client
File "/usr/lib/python2.6/site-packages/novaclient/v1_1/__init__.py", line 17, in <module>
from novaclient.v1_1.client import Client # noqa
File "/usr/lib/python2.6/site-packages/novaclient/v1_1/client.py", line 16, in <module>
from novaclient import client
/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/pyrax/__init__.py", line 64, in <module>
from novaclient.v1_1 import client as _cs_client
File "/usr/lib/python2.6/site-packages/novaclient/v1_1/__init__.py", line 17, in <module>
from novaclient.v1_1.client import Client # noqa
File "/usr/lib/python2.6/site-packages/novaclient/v1_1/client.py", line 16, in <module>
from novaclient import client