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
// Copyright 2019 The Mangos Authors | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use file except in compliance with the License. | |
// You may obtain a copy of the license at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
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
{ | |
"level": "info", | |
"msg": "main: internal scheduler enabled", | |
"time": "2019-11-01T07:31:16Z" | |
} | |
{ | |
"build.limit": 0, | |
"expires": "0001-01-01T00:00:00Z", | |
"kind": "trial", | |
"level": "debug", |
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": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
0.- Stop graphite-web | |
/etc/init.d/apache2 stop | |
1.- Backup SQLite db | |
export GRAPHITE_ROOT=/opt/graphite | |
PYTHONPATH=$GRAPHITE_ROOT/webapp django-admin.py dumpdata --settings=graphite.settings -e contenttypes --natural > sqlite_graphite_dump.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
#!/bin/bash | |
# (c) Toni Moreno | |
# tool to import / export graphs and dashboards to mysql db | |
# NOTE: be sure you have granted FILE privileges | |
# if apparmor is configured you should add to | |
# /etc/apparmor.d/usr.sbin.mysqld | |
# /tmp/* rw, | |
LOCAL_SETINGS="/opt/graphite/webapp/graphite/local_settings.py" |
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
package main | |
import ( | |
l "github.com/Sirupsen/logrus" | |
g "github.com/soniah/gosnmp" | |
"log" | |
"sync" | |
"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
import urllib | |
import urllib2 | |
import random | |
import sys | |
import json | |
import time | |
import pprint | |
datafrom = '-12hours' | |
delay = 0.3 |
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
Packet sanity verified, we got all the bytes (1183) | |
parseRawField: version | |
0 02 01 01 04 0f 76 68 67 | |
8 32 61 32 55 48 4a 34 77 | |
Parsed version 1 | |
parseRawField: community | |
0 04 0f 76 68 67 32 61 32 | |
8 55 48 4a 34 77 32 70 5f | |
Parsed community XXXXXXXXXX | |
SNMP Packet is GET RESPONSE |
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
[23/Sep/2015:12:48:51 +0200] "POST /api/datasources/proxy/1/render HTTP/1.1" 200 4017 "http://xxxxx.xxxxx.xx/dashboard/db/my-dashboard-a" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36" 926864913 | |
[23/Sep/2015:12:48:51 +0200] "POST /api/datasources/proxy/1/render HTTP/1.1" 200 22905 "http://xxxxx.xxxxx.xx/dashboard/db/my-dashboard-a" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36" 931985676 | |
[23/Sep/2015:12:58:53 +0200] "POST /api/datasources/proxy/1/render HTTP/1.1" 200 23031 "http://xxxxx.xxxxx.xx/dashboard/db/my-dashboard-a" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36" 926310351 | |
[23/Sep/2015:13:08:53 +0200] "POST /api/datasources/proxy/1/render HTTP/1.1" 200 21692 "http://xxxxx.xxxxx.xx/dashboard/db/my-dashboard-a" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/53 |
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/python | |
import os | |
import mmap | |
import struct | |
import time | |
import sys | |
import signal | |
import optparse |
NewerOlder