Our approach is to combine the monitoring and the execution. Totally ditch the puppet client service and use nagios to run a "check_puppet" script which does the puppet run and reports the exit codes. This also covers things like having a defined retry interval, so if puppet runs and there are no changes, it'll come back and run again in an hour, but if there are changes, it will run in 10 minutes etc... works really well.
On 5 October 2011 04:36, Scott Smith <[email protected]> wrote: > It doesn't matter if puppetmasterd or puppetd are running and working if > your clients are failing catalog runs. > > Send reports, write a check that alerts on N hosts with failed reports over > X timeframe or something. > > > On Tue, Oct 4, 2011 at 8:09 PM, Tim Connors <[email protected]>wrote: > >> On Tue, 4 Oct 2011, Bernd Adamowicz wrote: >> >> > > -----Ursprüngliche Nachricht----- >> > > Von: [email protected] [mailto:puppet- >> > > [email protected]] Im Auftrag von Marcus, Allan B >> > > Gesendet: Dienstag, 4. Oktober 2011 15:47 >> > > An: [email protected] >> > > Betreff: [Puppet Users] How best to monitor puppet? >> > > >> > > We want to use Nagios to monitor out puppet server so we can be >> > > notified >> > > if it goes down. We are using Fusion Passenger and Apache on Red Hat. >> > > >> > > Any suggestion for what and how to monitor? >> > >> > We use the basic checks for any Unix machine along with special checks >> for running Puppet master and client process where appropriate. A service >> which uses NRPE and a check_procs call on the Puppet boxes like these two >> examples works fine for us: >> > >> > Command[check_puppetmaster]=/usr/lib64/nagios/plugins/check_procs -w 1:1 >> -c 1:1 -C puppetmasterd >> > Command[check_puppetclient]=/usr/lib64/nagios/plugins/check_procs -w 1:1 >> -c 1:1 -C puppet >> > >> > Bernd >> > >> >> What about checking the logfile on the master to make sure that everything >> is checking in? Theoretically, the client daemons could be running and >> accepting port 8140, but the daemon could be locked up: >> >> http://cafuego.net/2011/09/24/keeping-eye-puppet-updated >> >> >> -- >> Tim Connors >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
