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
root@nono:~# valgrind --tool=helgrind /opt/collectd/sbin/collectd -C /opt/collectd/etc/collectd.conf.orig | |
==15196== Helgrind, a thread error detector | |
==15196== Copyright (C) 2007-2011, and GNU GPL'd, by OpenWorks LLP et al. | |
==15196== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info | |
==15196== Command: /opt/collectd/sbin/collectd -C /opt/collectd/etc/collectd.conf.orig | |
==15196== | |
option = Hostname; value = nono; | |
option = FQDNLookup; value = true; | |
option = PIDFile; value = /opt/collectd/var/run/collectd.pid; | |
Done parsing `/opt/collectd/share/collectd/types.db' |
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
# gdb /opt/collectd/sbin/collectd ./core.10266 | |
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5) | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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
[root@wastest85 case6]# gdb /opt/collectd/sbin/collectd opt/collectd/var/lib/collectd/core.10033 | |
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5) | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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
//http://jsfiddle.net/Gv7Tg/27/ | |
var dashCtrl = { | |
onChart:[], // ch: , id: // | |
//graphite vars | |
data_mode: 0, //1=hicharts //0= graphite original | |
graphite_url: null, //null = current host | |
//zoom synchronization vars | |
controllingChart:null, | |
defaultTickInterval:5, |
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
# gdb /opt/collectd/sbin/collectd ./core.apache.16Dec2014 | |
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-45.el5) | |
Copyright (C) 2009 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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 |
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
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
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
package main | |
import ( | |
l "github.com/Sirupsen/logrus" | |
g "github.com/soniah/gosnmp" | |
"log" | |
"sync" | |
"time" | |
) |
OlderNewer