Git Product home page Git Product logo

puppet-zabbix's People

Contributors

thomasvandoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-zabbix's Issues

not working

Sequence of steps (on puppet master)
sudo gem install open4
puppet module install thomasvandoren-zabbix

Here is zabbix.yaml

zabbix_host: 'zabbix1'
zabbix_port: '10051'
zabbix_sender: '/usr/bin/zabbix_sender'

"zabbix1" resolves to the IP address of zabbix server just fine.

Here is puppet.conf
[main]
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
privatekeydir = $ssldir/private_keys { group = service }
hostprivkey = $privatekeydir/$certname.pem { mode = 640 }
autosign = $confdir/autosign.conf { mode = 664 }
show_diff = false
hiera_config = $confdir/hiera.yaml
report = true
pluginsync = true

[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
default_schedules = false
masterport = 8140
environment = production
certname = foreman1.fjos.local
server = foreman1.fjos.local
listen = false
splay = false
splaylimit = 1800
runinterval = 1800
noop = false
configtimeout = 120
usecacheonfailure = true

[master]
autosign = $confdir/autosign.conf { mode = 664 }
reports = log,foreman,zabbix1 # no spaces after commas
external_nodes = /etc/puppet/node.rb
node_terminus = exec
ca = true
ssldir = /var/lib/puppet/ssl
certname = foreman1.domain1.local
strict_variables = false
environmentpath = /etc/puppet/environments
basemodulepath = /etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules

Here is the error
Feb 17 15:43:43 foreman1 puppet-master[1397]: Failed to send puppet data to zabbix (zabbix1:10051) for ubuntu-system1

Flapping 'Puppet has not run recently'

In some cases, the trigger 'Puppet has not run recently' will be flapping.
The cause of this is the item definition for puppet.run.time_since_last (last(system.localtime) - last(puppet.run.timestamp)) going negative in those cases, due to the last system.localtime being submitted before the last puppet.run.timestamp.
Replacing last(system.localtime) with now(x), where x is some valid item such as puppet.run.timestamp (but its value will be ignored), will fix the issue, assuming all clocks are synced.

Err: could not send report:

I've installed and configured according to the manual but cant seem to get it to run. The err out put is:
err: Could not send report: Error 400 on SERVER: Could not autoload zabbix: no such file to load -- open4

I am still a noob to the sys admin world. so bear with me. I have tried cp the open4 gems to the puppet gems dir as well as keeping it in the system gems dir. Not sure what else to look for.

I should mention this is running puppet 2.7.19 (Puppet Enterprise 2.6.1) on ubuntu12.04 lts server

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.