Giter VIP home page Giter VIP logo

puppet-zabbix's Introduction

Zabbix Module

This module will install and configure a Zabbix Server or Proxy or Agent, according to your wishes.

Usage

Minimal server configuration

class { 'zabbix::server': }

This will do the typical install, configure and service management. Preseed file is autofill using alkivi_base module which :

  • search for mysql admin password in /root/.passwd/db/mysql
  • create zabbix password in /root/.passwd/db/zabbix

More server configuration

class { 'zabbix::server':
  listenPort              => '10051',
  sourceIp                => undef,
  logFile                 => '/var/log/zabbix-server/zabbix_server.log',
  logFileSize             => undef,
  debugLevel              => '3',
  pidFile                 => '/var/run/zabbix-server/zabbix_server.pid',
  dBHost                  => 'localhost',
  dBName                  => 'zabbix',
  dBUser                  => 'zabbix',
  dBPassword              => 'CHANGEME',
  startPollers            => '5',
  startIPMIPollers        => '0',
  startPollersUnreachable => '1',
  startTrappers           => '5',
  startPingers            => '1',
  startDiscoverers        => '1',
  startHTTPPollers        => '1',
  listenIp                => undef,
  housekeepingFrequency   => '1',
  maxHousekeeperDelete    => '500',
  disableHousekeeping     => '0',
  senderFrequency         => '30',
  cacheSize               => '8M',
  cacheUpdateFrequency    => '60',
  startDBSyncers          => '4',
  historyCacheSize        => '8M',
  trendCacheSize          => '4M',
  historyTextCacheSize    => '16M',
  timeout                 => '5',
  trapperTimeout          => '300',
  unreachablePeriod       => '45',
  unavailableDelay        => '60',
  alertScriptsPath        => '/home/alkivi/zabbix/alert-scripts/',
  externalScripts         => '/home/alkivi/zabbix/external-scripts',
  fpingLocation           => '/usr/bin/fping',
  fping6Location          => '/usr/sbin/fping6',
  motd                    => true,
}

Please consult the Zabbix documentation for explanations on configuration options: https://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_server

Proxy configuration

class { 'zabbix::proxy':
  hostname => 'flamagine.alkivi.fr',
}

More Proxy configuration

class { 'zabbix::proxy':
  hostname                => 'flamagine.alkivi.fr',
  server                  => 'zabbix.alkivi.fr',
  serverPort              => '10051',
  startPollers            => '5',
  startIPMIPollers        => '0',
  startPollersUnreachable => '1',
  startTrappers           => '5',
  startPingers            => '1',
  startDiscoverers        => '1',
  startHTTPPollers        => '1',
  listenPort              => '10051',
  heartbeatFrequency      => '60',
  configFrequency         => '3600',
  housekeepingFrequency   => '1',
  senderFrequency         => '30',
  proxyLocalBuffer        => '0',
  proxyOfflineBuffer      => '1',
  debugLevel              => '3',
  timeout                 => '5',
  trapperTimeout          => '5',
  unreachablePeriod       => '45',
  unavailableDelay        => '60',
  pidFile                 => '/var/run/zabbix-proxy/zabbix_proxy.pid',
  logFile                 => '/var/log/zabbix-proxy/zabbix_proxy.log',
  alertScriptsPath        => '/home/alkivi/zabbix/alert-scripts/',
  externalScripts         => '/home/alkivi/zabbix/external-scripts',
  fpingLocation           => '/usr/bin/fping',
  fping6Location          => '/usr/sbin/fping6',
  tmpDir                  => '/tmp',
  pingerFrequency         => '60',
  dBHost                  => 'localhost',
  dBName                  => 'zabbix',
  dBUser                  => 'zabbix',
  dBPassword              => 'CHANGEME',

  sourceIp                => undef,
  listenIp                => undef,
  logFileSize             => undef,

  motd                    => true,
}

Please consult the Zabbix documentation for explanations on configuration options: https://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_proxy

Agent configuration

class { 'zabbix::agent':
  hostname => 'web.alkivi.fr',
}

More Agent configuration

class { 'zabbix::agent':
  logFile      => '/var/log/zabbix-agent/zabbix_agent.log',
  logFileSize  => undef,
  debugLevel   => '3',
  server       => ['127.0.0.1'],
  serverActive => ['127.0.0.1'],
  raid         => false,
  mysql        => false,
  smart        => true,
  backuppc     => false,
  ups          => false,
  motd         => true,
}

raid, mysql, smart, backuppc, ups are boolean that trigger the installation of custom scripts to monitoring. Check our github page, zabbix module will be present (soon ...)

Limitations

  • This module has been tested on Debian Wheezy, Squeeze.

License

All the code is freely distributable under the terms of the LGPLv3 license.

Contact

Need help ? [email protected]

Support

Please log tickets and issues at our Github

puppet-zabbix's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.