Simple Dashing job (and associated dash html) to display SNMP interface percentages
##Dependencies
Add it to dashing's gemfile:
GET _search | |
{ | |
"size": 0, | |
"aggs": { | |
"2": { | |
"terms": { | |
"field": "sflow_ipv4_src", | |
"size": 10, | |
"order": { | |
"1": "desc" |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_sack = 1 | |
net.ipv4.tcp_fack = 1 | |
net.core.rmem_max = 134217728 | |
net.core.wmem_max = 134217728 | |
net.ipv4.tcp_rmem = 4096 87380 67108864 | |
net.ipv4.tcp_wmem = 4096 65536 67108864 | |
net.core.netdev_max_backlog = 250000 | |
net.ipv4.tcp_mtu_probing=1 |
d-i partman-auto/disk string /dev/cciss/c0d0 /dev/cciss/c0d1 | |
d-i partman-auto/method string lvm | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-md/device_remove_md boolean true | |
d-i partman-lvm/confirm boolean true | |
d-i partman-auto/purge_lvm_from_device boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto/choose_recipe select boot-root | |
d-i partman-auto/purge_lvm_from_device boolean true |
[[local|localrc]] | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- | |
USE_NEUTRON=True | |
#NOVA_BRANCH=${NOVA_BRANCH:-milestone-proposed} | |
#SWIFT_BRANCH=${SWIFT_BRANCH:-milestone-proposed} | |
#GLANCE_BRANCH=${GLANCE_BRANCH:-milestone-proposed} |
HPONCFG all << end_marker | |
<RIBCL VERSION="2.0"> | |
<LOGIN USER_LOGIN="Dontcare" PASSWORD="UsingAutologin"> | |
<USER_INFO MODE="write"> | |
<ADD_USER | |
USER_NAME="daniel" | |
USER_LOGIN="daniel" | |
PASSWORD="daniel123"> | |
<ADMIN_PRIV value ="Yes"/> | |
<REMOTE_CONS_PRIV value ="Yes"/> |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'snmp' | |
include SNMP | |
@results = Array.new | |
# Interface speed in mbps | |
interface_speed = 10000 | |
def get_snmp |
#!/bin/bash | |
#Values set by foreman finish scritp.. | |
H_NAME= | |
OS_NAME= | |
OS_MAJOR= | |
OS_MINOR= | |
IPV4= | |
NMASK= | |
GWAY= |