Skip to content

Instantly share code, notes, and snippets.

View kannan4k's full-sized avatar

Kannan Ponnusamy kannan4k

View GitHub Profile
@kannan4k
kannan4k / gist:c686969d39e97e9bf85b
Created April 21, 2015 11:17
apt-update problem when i ran pull-requests job
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Cloning resource attributes for execute[apt-get-update-periodic] from prior resource (CHEF-3694)
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Previous execute[apt-get-update-periodic]: /var/chef/cache/cookbooks/apt/recipes/default.rb:52:in `from_file'
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Current execute[apt-get-update-periodic]: /var/chef/cache/cookbooks/apt/recipes/nodejs.rb:12:in `from_file'
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Cloning resource attributes for package[grub-pc] from prior resource (CHEF-3694)
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Previous package[grub-pc]: /var/chef/cache/cookbooks/lg_tftproot/recipes/grub.rb:14:in `from_file'
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] WARN: Current package[grub-pc]: /var/chef/cache/cookbooks/lg_grub/recipes/default.rb:18:in `from_file'
==> portal-pull-requests: [2015-04-21T10:47:14+00:00] INFO: Processing
@kannan4k
kannan4k / backup_health.py
Last active August 29, 2015 14:19
Backup health check
#!/usr/bin/env python
import os
import sys
import datetime
#rsync config path
rsync_secrets = "/etc/rsyncd.lg-secrets"
backup_root = "/backup"
# Exit statuses recognized by Nagios
"call_ep": {
"fwdport": 33082,
"fwdwebport": 38082,
"keyname": "Google Moscow",
"rescue": true
},