Skip to content

Instantly share code, notes, and snippets.

name "monitoring"
description "The Monitoring Server"
run_list(
"recipe[nagios::server]",
"recipe[nagios::pagerduty]"
)
default_attributes(
"nagios" => {
"user" => "root",
"notifications_enabled" => 1,
client
dev tun
proto udp
remote 107.redacted 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /redacted/.vpn/ca.crt
comp-lzo
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log /dev/log
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
user haproxy
group haproxy
verification@koality-master:~$ ./koality-snapshotter
Cloud provider not specified; defaulting to the stored settings value (aws)
Traceback (most recent call last):
File "./koality-snapshotter", line 9, in <module>
load_entry_point('koality==0.7.8', 'console_scripts', 'koality-snapshotter')()
File "/home/lt3/manager/python/lib/python2.7/site-packages/koality-0.7.8-py2.7.egg/scripts/server/snapshotter.py", line 53, in main
File "/home/lt3/manager/python/lib/python2.7/site-packages/koality-0.7.8-py2.7.egg/scripts/server/snapshotter.py", line 57, in snapshot
File "/home/lt3/manager/python/lib/python2.7/site-packages/koality-0.7.8-py2.7.egg/virtual_machine/snapshotter/snapshotter.py", line 81, in snapshot
File "/home/lt3/manager/python/lib/python2.7/site-packages/koality-0.7.8-py2.7.egg/virtual_machine/snapshotter/snapshotter.py", line 109, in spawn_virtual_machine
File "/home/lt3/manager/python/lib/python2.7/site-packages/koality-0.7.8-py2.7.egg/virtual_machine/ec2.py", line 122, in from_id_or_con
description "<%=@name%>"
start on virtual-filesystems
stop on runlevel [06]
setuid <%=@user%>
setgid <%=@group%>
expect daemon
expect fork
2014-02-18 07:46:21 UTC 52fa7da5.ff1 [4081]: [59] user=,db=,remote= LOG: unexpected pageaddr 14F/F5000000 in log file 336, segment 0, offset 0
2014-02-18 07:46:21 UTC 53030fcd.38e4 [14564]: [1] user=,db=,remote= LOG: streaming replication successfully connected to primary
2014-02-18 07:46:23 UTC 52fa7da5.ff1 [4081]: [60] user=,db=,remote= FATAL: directory "/mnt/postgresql/temp1" does not exist
2014-02-18 07:46:23 UTC 52fa7da5.ff1 [4081]: [61] user=,db=,remote= HINT: Create this directory for the tablespace before restarting the server.
2014-02-18 07:46:23 UTC 52fa7da5.ff1 [4081]: [62] user=,db=,remote= CONTEXT: xlog redo create tablespace: 13760724 "/mnt/postgresql/temp1"
2014-02-18 07:46:24 UTC 52fa7da3.fef [4079]: [2] user=,db=,remote= LOG: startup process (PID 4081) exited with exit code 1
2014-02-18 07:46:24 UTC 52fa7da3.fef [4079]: [3] user=,db=,remote= LOG: terminating any other active server processes
2014-02-18 22:27:25 UTC 5303de4a.43bf [17343]: [1] user=,db=,remote= LOG: startup process (PID 17351) exited with exit code 1
2014-02-18 22:27:25 UTC 5303de4a.43bf [17343]: [2] user=,db=,remote= LOG: aborting startup due to startup process failure
2014-02-18 22:29:01 UTC 5303dead.453f [17727]: [1] user=,db=,remote= LOG: database system was interrupted; last known up at 2014-02-18 20:12:10 UTC
2014-02-18 22:29:01 UTC 5303dead.453f [17727]: [2] user=,db=,remote= LOG: creating missing WAL directory "pg_xlog/archive_status"
2014-02-18 22:29:01 UTC 5303dead.453f [17727]: [3] user=,db=,remote= LOG: could not open tablespace directory "pg_tblspc/13760724/PG_9.1_201105231": No such file or directory
2014-02-18 22:29:01 UTC 5303dead.453f [17727]: [4] user=,db=,remote= LOG: could not open file "pg_xlog/0000000200000152000000F3" (log file 338, segment 243): No such file or directory
2014-02-18 22:29:01 UTC 5303dead.453f [17727]: [5] user=,db=,remote= LOG: invalid checkpoint record
2014-02-18 22:29:01 UTC 5303dead
@mago0
mago0 / gist:11061673
Created April 18, 2014 19:55
keybase.md
### Keybase proof
I hereby claim:
* I am mago0 on github.
* I am magoo (https://keybase.io/magoo) on keybase.
* I have a public key whose fingerprint is 455C CC16 85C1 7DDC 35DA 36D1 0948 D557 A10F D777
To claim this, I am signing this object:
* Mixlib::ShellOut::ShellCommandFailed occurred in chef run: python_pip[virtualenv] (python::virtualenv line 23) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
5404 ---- Begin output of /usr/bin/pip install --upgrade virtualenv ----
5405 STDOUT: Downloading/unpacking virtualenv
5406 Running setup.py egg_info for package virtualenv
5407 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
5408 warnings.warn(msg)
5409 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
5410 warnings.warn(msg)
5411 /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
5412 warnings.warn(msg)
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/ct_postgresql/recipes/pgbadger_web.rb
================================================================================
NoMethodError
-------------
undefined method ` ' for Chef::Resource::CookbookFile
Cookbook Trace:
---------------