Skip to content

Instantly share code, notes, and snippets.

View originalhat's full-sized avatar
👾
L I M I T L E S S

Devin Brown originalhat

👾
L I M I T L E S S
View GitHub Profile
@originalhat
originalhat / nagios-install-error
Created May 31, 2012 13:41
Nagios Install Errors (OSX)
groundhog-mac:nagios Devinb$ ./configure --with-gd-lib=/opt/local/lib --with-gd-inc=/opt/local/include \
> --prefix=/usr/local/nagios --with-cgiurl=/cgi-bin --with-htmlurl=/ \
> --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagioscmd
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
@originalhat
originalhat / bad-nagios
Created June 1, 2012 13:42
Nagios process not running
### Config Checks
$ sudo /usr/local/Cellar/nagios/3.4.1/bin/nagios -v /usr/local/etc/nagios/nagios.cfg
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
@originalhat
originalhat / gist:2855482
Created June 1, 2012 22:25
Installing Nagios on OSX (10.6.8)

Nagios Install - OSX (10.6.8)

Overview

Installing Nagios on linux is well documented and relativly straightforward. Installing Nagios on OSX however, can be a bit different, and in my case presented a number of unique issues that I hope this guide might address.

If you run into an odd error messages, check the Troubleshooting section below, it might have the answer you're looking for!

Requirements / Dependencies

@originalhat
originalhat / catalog-nagios-config-overview.md
Created June 12, 2012 20:12
Catalog-Nagios Configuration File Overview

Catalog-Nagios Configuration Files

An overview of the configurations files being utilized by the the file-age check process.

WMS

  1. wms-goes-config.yml
    • critical @ 3600
    • script-usage: mtime
    • test-drive:
@originalhat
originalhat / Cat.md
Created September 5, 2012 23:48
Test

Do I need to be logged in?

@originalhat
originalhat / git-basic.md
Created September 7, 2012 15:27
basic git commands for adding

see the status of shit

$ git status
# On branch develop
nothing to commit (working directory clean)

see branches

$ git branch

create a table...

# eq. to: CREATE TABLE nagios_contactgroup (project_id INT, name VARCHAR(255));
create_table :nagios_contactgroup do |t| # create table name
  t.integer :project_id                  # add a column called 'project_id'
  t.string  :name, :null => false        # add a column called 'name', it can't be null
end

add_index :nagios_contactgroup, :project_id # index a column in the 'nagios_contactgroup' table
@originalhat
originalhat / gist:4198855
Created December 3, 2012 22:50
Rocking out w/ HAML
//% Fixed Width Figures
function figureWidth()
{
var cap=$('figcaption'),
fig=$('figure'),
figWidth;
$(fig).each(function()
{
fig=$(this).children('img');
@originalhat
originalhat / adjust-responsive-navbar.md
Created December 12, 2012 17:04
Adjusting Bootstraps Responsive Collapse Threshold