This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # We're going to use fpm to create the package. | |
| # https://github.com/jordansissel/fpm | |
| sudo gem install fpm | |
| cd ~ | |
| # This is where we'll install the compiled collectd into | |
| mkdir ~/collectd-package | |
| # Get the source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # | |
| # collectd - start and stop the statistics collection daemon | |
| # http://collectd.org/ | |
| # | |
| # Copyright (C) 2005-2006 Florian Forster <[email protected]> | |
| # Copyright (C) 2006-2009 Sebastian Harl <[email protected]> | |
| # | |
| ### BEGIN INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| graphite::gr_max_updates_per_second: 60 | |
| graphite::gr_storage_schemas: | |
| - name: "default" | |
| pattern: ".*" | |
| retentions: "1s:60m,1m:7d,5m:3y,1h:10y" | |
| - name: "CCIS Linux Stats" | |
| pattern: "CCIS.systems.linux.*" | |
| retentions: "1s:7d,1m:14d,5m:3y,1h:10y" | |
| graphite::gr_web_servername: graphite.ccs.neu.edu | |
| graphite::gr_enable_carbon_relay: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all_hosts = [ ] | |
| import redis as _redis | |
| _remHost = "IPADDRESS" | |
| _r = _redis.Redis(host=_remHost, port=6379, db=0, password="PASSWORD") | |
| _setname = "known-hosts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| msimmons@spyhunter:~/tmp/redis$ fpm -s dir -t deb -n redis -v 2.8.10 -C root/ -p redis-2.8.10_x64.deb / | |
| /usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /tmp/package-dir-staging20140609-8799-oyq623/etc/logstash/agent/config/patterns (Errno::EACCES) | |
| from /usr/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir' | |
| from /usr/lib/ruby/1.8/fileutils.rb:172:in `mkdir' | |
| from /usr/lib/ruby/1.8/fileutils.rb:171:in `each' | |
| from /usr/lib/ruby/1.8/fileutils.rb:171:in `mkdir' | |
| from /var/lib/gems/1.8/gems/fpm-1.1.0/lib/fpm/package/dir.rb:166:in `copy' | |
| from /var/lib/gems/1.8/gems/fpm-1.1.0/lib/fpm/package/dir.rb:145:in `clone' | |
| from /usr/lib/ruby/1.8/find.rb:39:in `find' | |
| from /usr/lib/ruby/1.8/find.rb:38:in `catch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exec { 'install-redis': | |
| command => "make && make install PREFIX=${redis_bin_dir}", | |
| cwd => $redis_src_dir, | |
| path => '/bin:/usr/bin', | |
| unless => "test $(${redis_bin_dir}/bin/redis-server --version | cut -d ' ' -f 1) = 'Redis'", | |
| require => [ Exec['unpack-redis'], Package['gcc'] ], | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vlanXML = CLI("sh vlan id " + vlan + " | xml", 0) | |
| vlanDOM = parseString(''.join(vlanXML.get_raw_output())[:-6]) | |
| vlanElement = vlanDOM.getElementsByTagName("vlanshowinfo-vlanid")[0] | |
| vlanID = vlanElement.firstChild.nodeValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@precise64:/etc# cat graphite-api.yaml | |
| search_index:/opt/graphite/storage/index | |
| finders: | |
| - graphite_api.functions.SeriesFunctions | |
| - graphite_api.functions.PieFunctions | |
| whisper: | |
| directories: | |
| - /opt/graphite/storage/whisper | |
| time_zone: America/New_York |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@precise64:/opt/graphite/storage/whisper/collectd/precise64/disk-sda1/disk_merged# whisper-info.py read.wsp | |
| maxRetention: 63072000 | |
| xFilesFactor: 0.5 | |
| aggregationMethod: average | |
| fileSize: 2561812 | |
| Archive 0 | |
| retention: 1800 | |
| secondsPerPoint: 1 | |
| points: 1800 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node default { | |
| class { 'apt': | |
| always_apt_update => true, | |
| } | |
| apt::ppa { 'ppa:raravena80/collectd5': } | |
| class { '::collectd': | |
| require => Class['apt'], |