kuroei / auto-zabbix-ver3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# about the subM list
part -1-
 git://github.com/laradji/zabbix.git
 git://github.com/burtlo/ark.git
 git://github.com/sneal/7-zip.git
 git://github.com/opscode-cookbooks/windows.git
 git://github.com/opscode-cookbooks/chef_handler.git
 git://github.com/opscode-cookbooks/build-essential.git
 git://github.com/chocolatey/chocolatey-cookbook.git
 git://github.com/juliandunn/oracle-instantclient.git
 git://github.com/opscode-cookbooks/database.git
 git://github.com/opscode-cookbooks/aws.git
 git://github.com/opscode-cookbooks/mysql-chef_gem.git
 git://github.com/hw-cookbooks/postgresql.git
 git://github.com/opscode-cookbooks/apt.git
 git://github.com/opscode-cookbooks/openssl.git
 git://github.com/sethvargo/chef-sugar.git
 git://github.com/opscode-cookbooks/xfs.git
 git://github.com/agileorbit-cookbooks/java.git
 git://github.com/yevgenko/cookbook-php-fpm.git
 git://github.com/opscode-cookbooks/ufw.git
 git://github.com/opscode-cookbooks/iptables.git
 git://github.com/opscode-cookbooks/firewall.git
 git://github.com/opscode-cookbooks/php.git
 git://github.com/opscode-cookbooks/iis.git
 git://github.com/opscode-cookbooks/xml.git

part -2-
* /yum-epel  -> github.com/opscode-cookbooks/yum-epel.git
but you need to edit the yum-epel.repositories like this

<code>
 description node['yum'][repo]['description']
 mirrorlist node['yum'][repo]['mirrorlist']
 enabled node['yum'][repo]['enabled']
 exclude node['yum'][repo]['exclude']
 failovermethod node['yum'][repo]['failovermethod']
 includepkgs node['yum'][repo]['includepkgs']
 metadata_expire node['yum'][repo]['metadata_expire']
 priority node['yum'][repo]['priority']
</code>

* /cpan -> github.com/melezhik/cookbooks/cpan

# how to use this cookbook
you need to do the cookbook list like this. please mmake sure u do the list by the current sort
1 database::mysql
2 mysql::server
3 zabbix --> this is the zabbix agent, it will install a agent on this server
4 zabbix::database 
5 zabbix::server --> this is the zabbix server, it will install your zabbix server
6 zabbix::web it will install a zabbix web-server 

if you don't user the cloud, you need right the cookbook list into your runlist.
but if you use the cloud, please don't write the runlist into your Custom_json.

# Custom json
this is a test json for cloud

{
"mysql": {
    "server_root_password": "password"
 },
"zabbix": {
    "server": {
      "install": true,
      "install_method": "source",
      "version":"2.2.0"    //the config file use the CacheSize,so you need to up or zabbix version to 2.1.0 after
    },
    "web": {
      "install": true,
      "fqdn": "localhost"
    },
    "agent": {
      "install": true,
      "install_method": "source",
      "servers": ["localhost","localhost"]
    },
    "database": {
      "install_method": "mysql",
      "dbname": "zabbix",
      "dbuser": "zabbix",
      "dbhost": "localhost",
      "dbpassword": "password",
      "dbport": "3306"
    }
  }
}

# others 
 #cloud infor --> please use this cookbook on the layer-php, if you run it on a welayer-web.
it will got error like this:

# about cookbook zbx-ser-conf
this one is used to add the agent info from the cloud json by the Zabbix-api. make sure you will do it  on the zabbix-server.

# about cookbook zbx-agent-conf
this one is used to add the server info.






https://developer.apple.com/library/ios/samplecode/SquareCam/Introduction/Intro.html

About


Languages

Language:Ruby 99.8%Language:Shell 0.2%