thomasvandoren / puppet-zabbix Goto Github PK
View Code? Open in Web Editor NEWNot actively developed - A puppet module and report processor for zabbix.
Not actively developed - A puppet module and report processor for zabbix.
Sequence of steps (on puppet master)
sudo gem install open4
puppet module install thomasvandoren-zabbix
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.