[Puppet Users] Monitoring Puppet with Zabbix
Hello! Is there a way to monitor puppet runs with zabbix? Here is what i want to monitor: - a host's puppet run is more than 20 minutes ago - a puppet run fails I have searched through the internet, but I only found solutions which works with zabbix-sender and my colleagues do not want to install zabbix-sender, or to use report-processors which work like zabbix-sender. I hope someone can help me or maybe someone has a solution he uses.. Thank you! Greets -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/82ae77e5-1653-4298-b381-96aae98897a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Monitoring Puppet with Zabbix
Has nobody an idea...? Am Donnerstag, 10. Dezember 2015 16:10:24 UTC+1 schrieb hoize: > > Hello! > > Is there a way to monitor puppet runs with zabbix? > Here is what i want to monitor: > - a host's puppet run is more than 20 minutes ago > - a puppet run fails > > I have searched through the internet, but I only found solutions which > works with zabbix-sender and my colleagues do not want to install > zabbix-sender, or to use report-processors which work like zabbix-sender. > > I hope someone can help me or maybe someone has a solution he uses.. > > Thank you! > > Greets > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/770f59fd-e5c1-4063-8f49-be6c7ac12ef5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Monitoring Puppet with Zabbix
Hello, thank you for your reply! We often have many changes which are automatically done, so we need to run puppet that often. I thougt about this way yet, because we are using Zabbix-Agent UserParameters. But -honestly- I don't know how to realise this and I'm actually not able to write a ruby script.. You must know, I'm a newbie. ^^ I'll have a look at this and give a short feedback if I found a solution! Thank you! Am Montag, 18. Januar 2016 11:41:21 UTC+1 schrieb Thomas Müller: > > > > Am Donnerstag, 10. Dezember 2015 16:10:24 UTC+1 schrieb hoize: >> >> Hello! >> >> Is there a way to monitor puppet runs with zabbix? >> Here is what i want to monitor: >> - a host's puppet run is more than 20 minutes ago >> > > not related but interesting: why you are running puppet that often? > > >> - a puppet run fails >> >> I have searched through the internet, but I only found solutions which >> works with zabbix-sender and my colleagues do not want to install >> zabbix-sender, or to use report-processors which work like zabbix-sender. >> >> >> > there is no "out of the box" solution IMHO. if you have the abbility to > add ZABBIX Agent UserParameters ( > https://www.zabbix.com/documentation/2.0/manual/config/items/userparameters) > you could write a ruby script which parses the last_run_summary.yaml file > (get the path: puppet agent --configprint lastrunfile), which contains all > the required information. > > - Thomas > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/58eae707-2bb0-4a63-8a55-77be9ee26e36%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: Monitoring Puppet with Zabbix
Hello, sorry but in the past there was honestly no time to look at this problem. Today I had some "sparetime" and built a short script, which reads from the puppet - last_run_summary.yaml-file. This script is started by zabbix via a zabbix-user-parameter. I'm now able to monitor if a puppetrun is more than 20 minutes ago, if any errors came up and the puppetrun-time! *If someone needs this script or help, don't hasitate to contact me!* I thank you all very much!!! -Hoize Am Dienstag, 19. Januar 2016 12:29:57 UTC+1 schrieb Neil - Puppet List: > > Hello > > Using puppetdb the a query against its api would be my choice if you want > not to add custom bits to you puppet infrastructure, which is an entirely > reasonable thing to wish to avoid. > > Neil > On 18 Jan 2016 07:02, "hoize" > wrote: > >> Has nobody an idea...? >> >> Am Donnerstag, 10. Dezember 2015 16:10:24 UTC+1 schrieb hoize: >>> >>> Hello! >>> >>> Is there a way to monitor puppet runs with zabbix? >>> Here is what i want to monitor: >>> - a host's puppet run is more than 20 minutes ago >>> - a puppet run fails >>> >>> I have searched through the internet, but I only found solutions which >>> works with zabbix-sender and my colleagues do not want to install >>> zabbix-sender, or to use report-processors which work like zabbix-sender. >>> >>> I hope someone can help me or maybe someone has a solution he uses.. >>> >>> Thank you! >>> >>> Greets >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/770f59fd-e5c1-4063-8f49-be6c7ac12ef5%40googlegroups.com >> >> <https://groups.google.com/d/msgid/puppet-users/770f59fd-e5c1-4063-8f49-be6c7ac12ef5%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2f7c3ae1-1e01-4f50-a63f-3b3f88f40db0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Implement Puppet Master into our productive environment
Hello! Tthe last months I installed and tested a Puppet Master in a testing environment. But now I have to imigrate it into our Productive Environment. So I have some questions: 1. How many nodes can Puppet Master (Open Source) maximal provide? 2. If it is necessary to cluster for about 50 - 60 nodes: Is it possible to cluster Puppet Master in connection with Foreman. Thank You very much! Greets Hoize -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b9278dec-f0ef-440d-9c65-d3abf3003e98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Puppet Open Source with own Certificates
Hello! Because I can't find anything with google search to my problem with Puppet Open Source, I hope someone of you can help me. On my masterserver there I have installed Foreman running on Apache and Puppet Master. I wanted to replace the certificates of Apache with own certificates to eradicate problems with the Browser (Certificate Trust). But then I got another problem: The nodes could not communicate with the Master. So I decided to replace all certs with own certs, on the nodes and on the master. But how could I do this? I hope you can help me. At PuppetLabs-Docs I only found the configuration for Puppet Enterprise for my issue. Thank You! Greets Manuel Holzner -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0f8d8e8d-6d72-4065-9325-8d9630a472af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Open Source with own Certificates
Hi, Sorry I havn't been at work the last week. Thank you very much for your answer. At the moment I have installed the puppet own certs on my master. Did you replace the certs? If yes, could you give me a short introduction, please? Thank You! Hoize Am Freitag, 6. März 2015 15:16:30 UTC+1 schrieb Felix.Frank: > > On 03/05/2015 08:33 AM, hoize wrote: > > > > I hope you can help me. At PuppetLabs-Docs I only found the > > configuration for Puppet Enterprise for my issue. > > Hi, > > apart from some path names, it should be applicable to open source puppet. > > Can you link the specific howto you are following, and indicate where > you stumbled? > > Thanks, > Felix > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/70074a27-54c7-4a7b-903f-b9cc9e6efe24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Open Source with own Certificates
Hi! I took the foreman-installer, which installed PuppetMaster, Apache2, MySQL,... Yes, the certificates are used by puppet and by foreman.. But even if I only change the paths of the SSL-Engine in the Apache2 sites-config to my own certificates, the web-browser works fine, butt puppet can't communicate with the nodes.. Thank You! Hoize Am Montag, 16. März 2015 15:15:28 UTC+1 schrieb RIlindo Foster: > > Hi Hoize, > > To clarify, did you put Foreman on top of your existing Puppet > infrastructure or did you use the Puppet Master that Foreman installed? It > would make sense if it were the latter, because Foreman re-uses Puppet's > certificates for its own SSL setup. That, in turn, would explain why the > nodes stopped communicating with the master as it looks like you may have > overwrote Puppet's certificates with your own. > > - Rilindo > > On 03/05/2015 01:33 AM, hoize wrote: > > Hello! > > Because I can't find anything with google search to my problem with Puppet > Open Source, I hope someone of you can help me. > > On my masterserver there I have installed Foreman running on Apache and > Puppet Master. > > I wanted to replace the certificates of Apache with own certificates to > eradicate problems with the Browser (Certificate Trust). > But then I got another problem: The nodes could not communicate with the > Master. > > So I decided to replace all certs with own certs, on the nodes and on the > master. > But how could I do this? > > I hope you can help me. At PuppetLabs-Docs I only found the configuration > for Puppet Enterprise for my issue. > > Thank You! > > Greets Manuel Holzner > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users...@googlegroups.com . > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/0f8d8e8d-6d72-4065-9325-8d9630a472af%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/0f8d8e8d-6d72-4065-9325-8d9630a472af%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/950287ba-397a-48b1-a707-ca3e2cf83bc0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Open Source with own Certificates
Hi! After a few hours of trial and error my problem is solved. Here is the Solution: /etc/apache2/sites-enabled/02-foreman.conf: SSLEngine on SSLCertificateFile #Here you have to use SSLCertificateKeyFile #your own signed certificate + key /etc/puppet/foreman.yaml: ... :ssl_ca: # Here you have to use the cert of your CA (which created your Certificate for your Webserver) ... The other certificates are self-signed certs from puppet. So my Browser-SSL-Failure is fixed and the nodes (puppet agents) get the certs signed from puppetmaster. Thank You! Hoize -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e7b84bf1-b5ba-4b70-a071-a030e054d933%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Puppet Reports
Instead of PuppetDB there I have installed MySQL. Yes, of course I can grab the reports from MySQL, but I think it would be a better way to define nxlog in the puppet.conf, where you can choose if the logs should be for example stored in logfiles, foreman, and so on. Does anybody know a way to configure puppet or nxlog for this issue? Am Freitag, 10. April 2015 13:00:36 UTC+2 schrieb Christopher Wood: > > You can grab the reports from puppetdb, perhaps? Or there's a bunch of > ways to handle reports, you can probably shim in your own if you really > need to: > > https://docs.puppetlabs.com/references/latest/report.html > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/319ececd-ee3a-4fe2-b39c-1f5dc28a527e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Timezone of Foreman-Logs / Puppet-Reports
Hello! I am searching for a solution to change the timezone of the Foreman-Logs in the MySQL Database. The Timezone of MySQL is the right one (UTC +2 / CEST), but I'm not sure if the problem is in foreman or in puppet or both. The Date/Time entry of the logs is timezone UTC. Does anyone has a solution? Thank You! Hoize -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a68e1159-c1d5-4639-8564-a2b4e9a370e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] uncomment line in file
Hello! I want to uncomment a line in a file, for example: */root/.bashrc* # export LS_OPTIONS='--color=auto' *after change:* export LS_OPTIONS='--color=auto' After some searching for a solution, I found the Augeas-Tool and then the Augeas-Shellvar-Provider. So I tried it: shellvar { "export LS_OPTIONS": ensure => present, target => "/root/.bashrc", uncomment => true, } But I always get this error, regardless how I paraphrase the ressource "shellvar". An alternative solution would be great, too. But with the file_line ressource, I can't imagine, that there is an very short and easy way. I hope someone can help me! Thank You! Hoize -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7e435d9e-42a1-4516-b627-6eaf58518976%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] uncomment line in file
Hi Garrett, do you mean to add the lines again, with file_line? I thought about this option, too. It would be a great way to uncomment this lines, but if it is easier with file_line, I will do it so. Am Donnerstag, 25. Juni 2015 09:08:44 UTC+2 schrieb Garrett Honeycutt: > > On 6/25/15 2:09 AM, hoize wrote: > > Hello! > > > > I want to uncomment a line in a file, for example: > > > > _/root/.bashrc_ > > # export LS_OPTIONS='--color=auto' > > > > > > _after change:_ > > export LS_OPTIONS='--color=auto' > > > > After some searching for a solution, I found the Augeas-Tool and then > > the Augeas-Shellvar-Provider. > > So I tried it: > > > > shellvar { "export LS_OPTIONS": > > ensure => present, > > target => "/root/.bashrc", > > uncomment => true, > > } > > > > But I always get this error, regardless how I paraphrase the ressource > > "shellvar". > > > > An alternative solution would be great, too. But with the file_line > > ressource, I can't imagine, that there is an very short and easy way. > > > > I hope someone can help me! > > > > Thank You! > > > > Hoize > > Hi Hoize, > > Since we're talking about a comment, does it really matter if it is > still in the file? Bash certainly does not think so. The file_line() > function should work well for you if you want to manage individual lines > as opposed to the entire file. I would recommend this approach for its > simplicity instead of Augeas. > > Best regards, > -g > > -- > Garrett Honeycutt > @learnpuppet > Puppet Training with LearnPuppet.com > Mobile: +1.206.414.8658 > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c69026bf-0c3f-448d-ac7a-dc31c9c08b6d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Copy File from one Puppet Agent to another Puppet Agent
Hello! I have a problem and hope someone of you has a idea how to solve this. I would like to save a configuration file of nxlog on another Puppet (Agent) Node. The problem is, I have the template of nxlog, in which puppet has to write some facts about the node (hostname, operatingsystem). This file has not to be stored on the node (which facts about are), but on the Syslog-Server, where another Puppet Agent is running. My idea wos now to take the Ressource "file" and put in the path-option the path to the share of the syslog-system, like so: file { "$hostname.conf": ensure => present, path=> "//server/share/$hostname.conf", source => template("default_nxlog_debian/default.conf.erb") } But this is not working. Is there any way to put in the "Path-Option" another Server/Share? Or do you have another solution for my Problem? Thank you! Hoize -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/57538e07-e292-4eb0-a95f-32c3005b5b14%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Copy File from one Puppet Agent to another Puppet Agent
Thank you for your answer. I will now check this, but I think it sounds good! :) Am Mittwoch, 1. Juli 2015 15:41:38 UTC+2 schrieb Craig Dunn: > > > My idea wos now to take the Ressource "file" and put in the path-option > the > > path to the share of the syslog-system, like so: > > > > file { "$hostname.conf": > > ensure => present, > > path=> "//server/share/$hostname.conf", > > source => template("default_nxlog_debian/default.conf.erb") > > } > > If I understand you correctly, then I think exported resources is what > you are looking for - assuming you want to put it into > /etc/something/$hostname.conf on the syslog server (for example) then > you could do something like... > > (on the agents) > @@file { "/etc/something/${::hostname}.conf": > ensure => file, > content => template('default_nxlog_debian/default.conf.erb'), > tag => 'ngix_config_file', > } > > This will cause the resource to be stored on the puppet master, rather > than applied to the node, you can then collect all the resources on > the syslog server by having something like this in the manifest > > File <<| tag == 'ngix_config_file' |>> > > See: > https://docs.puppetlabs.com/puppet/latest/reference/lang_exported.html > for more detailed docs. > > Regards > Craig > > > > -- > Enviatics | Automation and configuration management > http://www.enviatics.com | @Enviatics > Puppet Training http://www.enviatics.com/training/ > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/208fee76-0e77-4534-85f4-d01fc7231634%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Copy File from one Puppet Agent to another Puppet Agent
Am I right, that exported resources are only working with puppetdb? Can you explain to me, what puppetdb does? I always thought, that puppetdb is a database-environment like MySQL. I have Puppet running with Foreman. And instead of the PostgreSQL-Database i installed MySQL. Can I additionally install Puppetdb beside MySQL? Thank You! Am Mittwoch, 1. Juli 2015 15:41:38 UTC+2 schrieb Craig Dunn: > > > My idea wos now to take the Ressource "file" and put in the path-option > the > > path to the share of the syslog-system, like so: > > > > file { "$hostname.conf": > > ensure => present, > > path=> "//server/share/$hostname.conf", > > source => template("default_nxlog_debian/default.conf.erb") > > } > > If I understand you correctly, then I think exported resources is what > you are looking for - assuming you want to put it into > /etc/something/$hostname.conf on the syslog server (for example) then > you could do something like... > > (on the agents) > @@file { "/etc/something/${::hostname}.conf": > ensure => file, > content => template('default_nxlog_debian/default.conf.erb'), > tag => 'ngix_config_file', > } > > This will cause the resource to be stored on the puppet master, rather > than applied to the node, you can then collect all the resources on > the syslog server by having something like this in the manifest > > File <<| tag == 'ngix_config_file' |>> > > See: > https://docs.puppetlabs.com/puppet/latest/reference/lang_exported.html > for more detailed docs. > > Regards > Craig > > > > -- > Enviatics | Automation and configuration management > http://www.enviatics.com | @Enviatics > Puppet Training http://www.enviatics.com/training/ > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/90f9ed78-f91b-4140-9501-a8e2d04ab242%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.