Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sargun's full-sized avatar

Sargun Dhillon sargun

  • Netflix
  • United States
View GitHub Profile
#!/usr/bin/python
import yaml, os
dropwizard_services = ['streamie', 'mugshot']
class dropwizard_healthcheck(object):
def __init__(self, servicename):
> GET /api/v1/messages/algo.json HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host: www.thunderdome.yammer.com
> Accept: */*
> Referer: https://www.yammer.com/application_support/desktop/production/2.8.5.0/YammerDesktopApp.html
>
< HTTP/1.1 200 OK
< Content-Length: 68
< Content-Type: application/json
<
for (GangliaHost GH : GC.getGangliaHosts().values())
{
final GangliaMetric hostmetric = GH.getGangliaMetric(metricName);
final Object metric = hostmetric.getValue();
if (metric instanceof Double)
{
metricarray.add(metric);
}
}
sdhillon@worker-007:~$ sudo cat /proc/5423/status
Name: ruby
State: R (running)
Tgid: 5423
Pid: 5423
PPid: 5422
TracerPid: 0
Uid: 20000 20000 20000 20000
Gid: 10003 10003 10003 10003
FDSize: 512
description "Monitoring wrapper"
start on runlevel [2345]
stop on runlevel [!2345]
export RUNLEVEL
pre-start script
while ! ping -c1 mon-001; do sleep 5; done
exit 0
end script
sdhillon@vpn-bidi# set apply-groups azure-to-trust security policies from-zone <*> to-zone <*> policy allow-ping match source-address any
[edit]
sdhillon@vpn-bidi# set apply-groups azure-to-trust security policies from-zone <*> to-zone <*> policy allow-ping match destination-address any
[edit]
sdhillon@vpn-bidi# set apply-groups azure-to-trust security policies from-zone <*> to-zone <*> policy allow-ping match application junos-icmp-all
[edit]
sdhillon@vpn-bidi# set apply-groups azure-to-trust security policies from-zone <*> to-zone <*> policy allow-ping then permit
service { 'procps': }
file { '/etc/sysctl.d/90-pgsql.conf':
notify => Service['procps'],
mode => 644,
owner => root,
group => root,
source => 'puppet:///modules/dbshard/90-pgsql.conf',
}
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 OK - - - 232.82 RiW ON
u1 RAID-10 OK - - 256K 931.303 RbW ON
VPort Status Unit Size Type Phy Encl-Slot Model
------------------------------------------------------------------------------
p0 OK u0 232.88 GB SATA 0 - ST9250610NS
p1 OK u0 232.88 GB SATA 1 - ST9250610NS
p2 OK u1 465.76 GB SATA 2 - ST9500620NS
[Mon Dec 10 16:52:00 2012 LOG: Err] RT-HAL,rt_msg_handler,580: route process failed
[Mon Dec 10 16:52:00 2012 LOG: Err] Failed jtm_alloc in mrvl_rt_nh_mc_install
[Mon Dec 10 16:52:00 2012 LOG: Err] Failed to install RT_NH entry (status: 2)
[Mon Dec 10 16:52:00 2012 LOG: Err] Failed to create the RT_NH entry (status: 2)[Mon Dec 10 16:52:00 2012 LOG: Err] RT-HAL,rt_entry_add_msg_proc,2366: rt_halp_vectors->rt_create failed
[Mon Dec 10 16:52:00 2012 LOG: Err] RT-HAL,rt_entry_add_msg_proc,2416: proto ipv4,len 64 prefix 239.255.255.250.10.161.3.5/64 nh 131127
Physical interface: ae15, Enabled, Physical link is Up
Interface index: 143, SNMP ifIndex: 649, Generation: 146
Description: ae15.cr2.sjc1
Link-level type: Ethernet, MTU: 1514, Speed: 20Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x0
Current address: 2c:21:72:9a:f3:0f, Hardware address: 2c:21:72:9a:f3:0f
Last flapped : 2012-02-25 15:05:43 PST (41w2d 03:19 ago)
Statistics last cleared: Never
Traffic statistics: