Skip to content

Instantly share code, notes, and snippets.

View filler's full-sized avatar

Nick Silkey filler

View GitHub Profile
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage
Cache Battery 0 in controller 0 is Learning (Active) [probably harmless]
Cache Battery 0 in controller 1 is Learning (Active) [probably harmless]
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage -b bat=0:0,1:0
OK - System: 'PowerEdge 1950', SN: 'J8YPRB1', 16 GB ram (8 dimms), 2 logical drives, 16 physical drives
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage -b bat_charge=0:0,1:0
OK - System: 'PowerEdge 1950', SN: 'J8YPRB1', 16 GB ram (8 dimms), 2 logical drives, 16 physical drives
-bash-2.05b$ /usr/local/nagios/libexec/check_openmanage --version
check_openmanage 3.6.5
Copyright (C) 2008-2011 Trond H. Amundsen
Installing atop python 2.4 had busted wgets in the honeypot.
Bug @ http://code.google.com/p/kippo/issues/detail?id=38
Author demanded 2.5+
Installed previously using vendor 2.4:
yum install python-setuptools.noarch python-devel gcc
easy_install pycrypto
easy_install pyasn1
curl -O -C - "http://pypi.python.org/packages/source/T/Twisted/Twisted-10.2.0.tar.bz2"
tar xvfj Twisted-10.2.0.tar.bz2
rdj:~ silkey$ sudo gem list | grep -E 'vagrant|veewee'
vagrant (0.7.2)
rdj:~ silkey$ vagrant
Tasks:
vagrant box # Commands to manage system boxes
vagrant destroy # Destroy the environment, deleting the created virtual machines
vagrant halt # Halt the running VMs in the environment
vagrant help [TASK] # Describe available tasks or one specific task
vagrant init [box_name] [box_url] # Initializes the current folder for Vagrant usage
vagrant package # Package a Vagrant environment for distribution
rdj:~ silkey$ sudo gem list | grep -E 'vagrant|veewee'
vagrant (0.7.2)
rdj:~ silkey$ sudo gem install veewee
Fetching: trollop-1.16.2.gem (100%)
Fetching: gherkin-2.1.5.gem (100%)
Building native extensions. This could take a while...
Fetching: json_pure-1.4.6.gem (100%)
Fetching: cucumber-0.8.5.gem (100%)
(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
# ./delldset_v2.1.0.112_A00.bin
Dell System E-Support Tool (DSET) Options:
Choose an option:
1) Read DSET Release Notes First
Show latest information concerning features and known issues
rdj:~ silkey$ ls -sal /dev/bpf*
0 crw------- 1 root wheel 23, 0 Mar 15 09:02 /dev/bpf0
0 crw------- 1 root wheel 23, 1 Mar 15 09:02 /dev/bpf1
0 crw------- 1 root wheel 23, 2 Mar 11 13:02 /dev/bpf2
0 crw------- 1 root wheel 23, 3 Mar 11 13:02 /dev/bpf3
rdj:~ silkey$ sudo chmod 644 /dev/bpf*
rdj:~ silkey$ ls -sal /dev/bpf*
0 crw-r--r-- 1 root wheel 23, 0 Mar 15 09:02 /dev/bpf0
0 crw-r--r-- 1 root wheel 23, 1 Mar 15 09:02 /dev/bpf1
0 crw-r--r-- 1 root wheel 23, 2 Mar 11 13:02 /dev/bpf2
@filler
filler / stackops bomb post 'deploy a node'
Created March 23, 2011 22:07
after clicking through the 2903874928374 questions on installer.stackops or whatever
ERROR: Unexpected error while running command.
Command: mount /cdrom
Exit code: 32
Stdout: ''
Stderr: 'mount: no medium found on /dev/sr0\n'
ERROR: Unexpected error while running command.
Command: apt-get install -y mysql-server
Exit code: 100
Stdout: 'Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n mysql-server: Depends: mysql-server-5.1 but it is not going to be installed\n'
Stderr: 'E: Broken packages\n'
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:375:in `add_oneshot_timer': ran out of timers; use #set_max_timers to increase limit (RuntimeError)
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:375:in `add_timer'
from /usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/outputs/elasticsearch.rb:152:in `receive_http'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:65:in `call'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:65:in `errback'
from /usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/outputs/elasticsearch.rb:150:in `receive_http'
from /usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/outputs/elasticsearch.rb:141:in `call'
from /usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/outputs/elasticsearch.rb:141:in `receive'
from /usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/agent.rb:122:in `output'
...
@filler
filler / gist:916116
Created April 12, 2011 18:46
i think i dos'ed elasticsearch?
W, [2011-04-12T14:44:59.031527 #28237] WARN -- logstash: ["Failure configuring index (http failed to connect?)", "http://localhost:9200/logstash", {"settings"=>{"logs"=>{"mappings"=>{"@source_host"=>{"type"=>"string"}, "@source_path"=>{"type"=>"string"}, "@tags"=>{"type"=>"string"}, "@timestamp"=>{"type"=>"date"}, "@source"=>{"type"=>"string"}, "@fields"=>{"type"=>"object", "properties"=>{"HOSTNAME"=>{"type"=>"string"}}}, "@message"=>{"type"=>"string"}}}}}]
W, [2011-04-12T14:44:59.031755 #28237] WARN -- logstash: [#<EventMachine::HttpClient:0x2b6dda0b0478 @socks_state=nil, @chunk_header={}, @deferred_timeout=nil, @content_decoder=nil, @headers=nil, @method="PUT", @redirects=0, @callbacks=[#<Proc:0x00002b6dd902d3a8@/usr/lib/ruby/gems/1.8/gems/logstash-0.2.20110405105154/lib/logstash/outputs/elasticsearch.rb:51>], @disconnect=nil, @parser=#<EventMachine::HttpClientParser:0x2b6dda0b03b0>, @last_effective_url=#<Addressable::URI:0x15b6ed058610 URI:http://localhost:9200/logstash>, @parser_nbytes=0, @data=#<EventM