This file contains 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
In collectd log | |
Jun 21 12:42:52 magna123 collectd[1415]: write_graphite plugin: Connecting to magna010.ceph.redhat.com:2003 via tcp failed. The last error was: failed to connect to remote host: Permission denied | |
Jun 21 12:44:22 magna123 collectd[1415]: write_graphite plugin: Connecting to magna010.ceph.redhat.com:2003 via tcp failed. The last error was: failed to connect to remote host: Permission denied | |
Jun 21 12:47:12 magna123 collectd[1415]: write_graphite plugin: Connecting to magna010.ceph.redhat.com:2003 via tcp failed. The last error was: failed to connect to remote host: Permission denied | |
Jun 21 12:52:42 magna123 collectd[1415]: write_graphite plugin: Connecting to magna010.ceph.redhat.com:2003 via tcp failed. The last error was: failed to connect to remote host: Permission denied | |
In audit log | |
type=AVC msg=audit(1498115272.402:51160): avc: denied { name_connect } for pid=1481 comm="writer#1" dest=2003 scontext=system_u:system_r:collectd_t:s0 tcontext=system_u:object_r:lmtp_port_t:s0 tclass=tcp_soc |
This file contains 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 python2 | |
import json | |
import glob | |
import os | |
import sys | |
import time | |
import argparse | |
This file contains 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
import requests | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
import os | |
import sys | |
import json | |
import time | |
import humanize | |
import progressbar | |
# turn off insecure warnings since BMC is self signed |
This file contains 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
import yaml | |
import threading | |
import logging | |
import json | |
import os | |
import subprocess | |
import socket | |
import sys | |
import fcntl | |
import select |
This file contains 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 python3 | |
import os | |
import fcntl | |
import subprocess | |
import logging | |
import time | |
import select | |
import json | |
import datetime | |
from urllib.request import urlopen |
This file contains 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
{ | |
"health": { | |
"host_facts": "active", | |
"list_daemons": "active", | |
"ceph_volume": "active", | |
"http_server": "active" | |
}, | |
"host": { | |
"scrape_timestamp": 1599777626.2632258, | |
"scrape_duration_secs": 0.01775193214416504, |
![Peek 2020-09-11 16-40.gif](https://gist.github.com/pcuzner/574113c5976e05a78a6334901eba6319/raw/ae2f8c8f3785dffe58079e06a98da122eaa23ee4/Peek%25202020-09-11%252016-40.gif)
This file contains 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
import datetime | |
import os | |
import json | |
# 1. ensure your host has python3-remoto installed | |
import remoto | |
# 2. Pick the location of the cephadm 'binary' to ship to the target | |
# cephadm_path = '/home/paul/git/ceph/src/cephadm/cephadm' | |
# cephadm_path = '/usr/sbin/cephadm' |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:140", | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", |
This file contains 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 python3 | |
import cherrypy | |
# Test: | |
# curl -H "Content-Type: application/json" http://localhost:8000/data --data '{"data":30}' -X POST | |
class Root: | |
def __init__(self): |
OlderNewer