- 没钱的公司:求爷爷告奶奶别挂啊
- 有钱的公司:啥产品不能买来用啊 DevOps产品截图
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
use AnyEvent; | |
use AnyEvent::PocketIO::Client; | |
use Data::Dumper; | |
use warnings; | |
use strict; | |
my $client = AnyEvent::PocketIO::Client->new; | |
my $channel = '3:::{"type":"subscribe","channel":"syslog"}'; | |
my $server = '192.168.1.199'; | |
my $port = '8080'; |
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
# | |
# This file has been created by OMD out of the following files: | |
# | |
# /omd/sites/cdn/etc/nagios/nagios.d/dependency.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/eventhandler.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/flapping.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/freshness.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/logging.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/misc.cfg | |
# /omd/sites/cdn/etc/nagios/nagios.d/mk-livestatus.cfg |
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 pandas | |
import numpy as np | |
import scipy | |
import statsmodels.api as sm | |
import os | |
import sys | |
import json | |
import traceback | |
import logging | |
from time import time |
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
use warnings; | |
use strict; | |
use 5.010; | |
#use Data::Dumper; | |
use PDL; | |
use PDL::Fit::Polynomial; | |
use PDL::Finance::Talib; | |
use Statistics::Distributions qw/tdistr/; | |
use Statistics::Normality qw/shapiro_wilk_test/; | |
use JSON; |
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/perl | |
use 5.010; | |
use warnings; | |
use strict; | |
use Geo::IP; | |
use Parse::Syslog::Line qw( parse_syslog_line ); | |
use Socket qw( getnameinfo NI_NUMERICHOST NI_NUMERICSERV ); | |
use POSIX qw( strftime ); | |
use AnyEvent; | |
use AnyEvent::Handle::UDP; |
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 python | |
""" | |
Read item history from zabbix, and plot as histogram | |
""" | |
import matplotlib | |
import numpy as np | |
import matplotlib.mlab as mlab | |
import matplotlib.pyplot as plt | |
import requests | |
import json |
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
[TcpInput] | |
address = ":5140" | |
parser_type = "message.proto" | |
decoder = "tcpdecoder" | |
[tcpdecoder] | |
type = "PayloadRegexDecoder" | |
match_regex = '^(?P<msg>.+)$' | |
[tcpdecoder.message_fields] |
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
{ | |
"order": 1, | |
"template": "heka", | |
"settings": { | |
"index.number_of_shards": 5, | |
"number_of_replicas": 1, | |
"index.refresh_interval": "10s" | |
}, | |
"mappings": { | |
"loadbalancer": { |
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
{"cluster_name":"es1003","version":97,"master_node":"Ut88M5SETsW5XsyyQyKbTQ","blocks":{"indices":{"logstash-weiboad-2015.07.13":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.02":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.12":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.01":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.11":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.10":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.06":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.06.26":{"4":{"description":"index closed","retryable":false,"levels":["read","write"]}},"logstash-weiboad-2015.07.05":{"4":{"d |
OlderNewer