hit counter

Timeline

My development logbook

Gem Install Hipchat Problem

    Fetching: json-1.8.2.gem (100%)
    Building native extensions.  This could take a while...
    ERROR:  Error installing hipchat:
            ERROR: Failed to build gem native extension.

        /opt/sensu/embedded/bin/ruby extconf.rb
    creating Makefile

    make "DESTDIR="
    compiling generator.c
    make: gcc: Command not found
    make: *** [generator.o] Error 127


    Gem files will remain installed in /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/json-1.8.2 for inspection.
    Results logged to /opt/sensu/embedded/lib/ruby/gems/2.0.0/gems/json-1.8.2/ext/json/ext/generator/gem_make.out

Cannot Remove File

Why I cannot remove this file redis_output.rb?

    ~/d/z/a/v/c/z/f/d/s/e/handlers git:1685/setup-sensu-server-via-vagrant ❯❯❯ ls -l                                                                      ✭ ✖ ✱ ◼
    total 56
    -rwxr-xr-x  1 antkong  staff   2858 25 Feb 10:40 flapjack.rb
    -rwxr-xr-x  1 antkong  staff  11068 25 Feb 10:40 hipchat.rb
    -rw-r--r--  1 antkong  staff    941 25 Feb 10:40 redis_output.rb
    -rwxr-xr-x  1 antkong  staff   4594 25 Feb 10:40 ttl.rb
    ~/d/z/a/v/c/z/f/d/s/e/handlers git:1685/setup-sensu-server-via-vagrant ❯❯❯ git rm redis_output.rb                                                   ⏎ ✭ ✖ ✱ ◼
    fatal: pathspec 'redis_output.rb' did not match any files

    fatal: pathspec 'redis_output.rb' did not match any files
    ~/d/z/a/v/c/z/f/d/s/e/handlers git:1685/setup-sensu-server-via-vagrant ❯❯❯ git rm redis*.rb                                                         ⏎ ✭ ✖ ✱ ◼
    fatal: pathspec 'redis_output.rb' did not match any files

It is because I made a wrong assumpiton: the file is not under source control yet.

Installing Sensu Client 0.14 and 0.17.beta1

0.17.beta1 does work for me. Fall back to 0.14 but the sensu client window service stopped working too.

I think the windows service needs to be re-registered. Very troublesome

How to Add Apt Mulitverse in Chef

Use ‘ubuntu’ recipe

It is the output sources.list

    $ cat /etc/apt/sources.list
    #
    # Ubuntu trusty - Generated by Chef
    #

    deb http://us.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu trusty main restricted universe multiverse

    deb http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
    deb-src http://us.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

    #
    # Security updates
    #
    deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
    deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse