Re: [Puppet Users] Nagios default files being overwritten

2014-02-11 Thread Jason Antman
Agreed with what Matthias said. Puppet's naginator stuff doesn't play very well with non-Puppet nagios configurations. Essentially, you have to pick one of: - remove the default template from that file, and create it with Puppet elsewhere - put all of the contents of that file in Puppet - total

Re: [Puppet Users] Nagios default files being overwritten

2014-02-11 Thread Matthias Saou
On Tue, 11 Feb 2014 06:53:42 -0800 (PST) druide.st...@gmail.com wrote: > I have a strange problem here. Most of my Nagios configuration are > from file {} directive, but I also need to modify a couple of Nagios' > default configuration. To do this, I use classes like this: > > class nagios::gabar

Re: [Puppet Users] Nagios & Puppet

2013-10-17 Thread Sans
Hi steve, So, you have all the "services" defined statically on the Nagios server? That setup only works, I think, if you install your Nagios server at the very end of your deployment process and all the clients are up and ready before the server. If you do a parallel deployment, then there is

Re: [Puppet Users] nagios collector only finding some resources

2013-09-20 Thread Ken Barber
> What I do know from querying the database is that all the exported resources > are present in the puppetdb database (in catalog_resources). Did you query via the REST interface, or the database directly. The REST interface might be more clear, as this is pretty much what the puppetdb terminus us

Re: [Puppet Users] nagios collector only finding some resources

2013-09-20 Thread David Thompson
On 9/20/13 10:20 AM, Ken Barber wrote: What I do know from querying the database is that all the exported resources are present in the puppetdb database (in catalog_resources). Did you query via the REST interface, or the database directly. The REST interface might be more clear, as this is pre

Re: [Puppet Users] Nagios server automating

2013-09-01 Thread Gabriel Filion
Hi there, On 30/08/13 05:34 PM, mike wrote: > [..] > Error: Could not find any host matching 'node1.example.com' (config file > '/etc/nagios/resource.d/host_node1.example.com.cfg', starting on line 4) > Error: Could not expand hostgroups and/or hosts specified in service > (config file

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-06 Thread puppetlist
On Tue, Aug 06, 2013 at 06:20:09AM -0700, jcbollinger wrote: > > Because there is a difference between unmanaged resources and resources > that are managed 'absent'. Only resources that are actually declared for > the target node are managed, whether declared directly or via collection of > vi

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-06 Thread jcbollinger
On Monday, August 5, 2013 3:33:11 PM UTC-5, John Santana wrote: > > On Mon, Aug 05, 2013 at 04:22:41PM -0400, Gabriel Filion wrote: > > > > you need to export the resource with ensure => absent and run puppet on > > the host, then on the nagios server so that everything runs fine. > > Dozens

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-05 Thread Gabriel Filion
On 05/08/13 04:33 PM, puppetl...@downhomelinux.com wrote: > On Mon, Aug 05, 2013 at 04:22:41PM -0400, Gabriel Filion wrote: >> >> you need to export the resource with ensure => absent and run puppet on >> the host, then on the nagios server so that everything runs fine. > > Dozens of VMs are routi

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-05 Thread puppetlist
On Mon, Aug 05, 2013 at 04:22:41PM -0400, Gabriel Filion wrote: > > you need to export the resource with ensure => absent and run puppet on > the host, then on the nagios server so that everything runs fine. Dozens of VMs are routinely destroyed on a weekly basis and in an automated fashion based

Re: [Puppet Users] Nagios service not restarting when removing a host from the database

2013-08-05 Thread Gabriel Filion
Hi there, On 05/08/13 10:51 AM, John Santana wrote: > When I remove the host from the database via > > delete from fact_values where host_id='N'; > delete from resources where host_id='N'; > delete from hosts where id='N'; if you remove the host exported resource in the manifests and the DB, the

Re: [Puppet Users] Nagios & Puppet

2013-06-28 Thread Jakov Sosic
On 06/28/2013 04:57 PM, Stephen Jahl wrote: In my experience, exporting nagios_command resources doesn't work so well. What I've found works best, is to define nagios_command{}'s directly on the server, rather than exporting and collecting them there later. In my setup, the only resource that ex

Re: [Puppet Users] Nagios & Puppet

2013-06-28 Thread Stephen Jahl
In my experience, exporting nagios_command resources doesn't work so well. What I've found works best, is to define nagios_command{}'s directly on the server, rather than exporting and collecting them there later. In my setup, the only resource that export is the nagios_host. I define commands and

Re: [Puppet Users] Nagios & Puppet

2013-06-27 Thread Pete Brown
Shameless plug. I wrote a module to do pretty much what you are trying to achieve. http://forge.puppetlabs.com/rendhalver/monitoring It currently works on CentOS and Fedora. Debian/Ubuntu support is in progress. I also have a couple of other modules for managing nrpe and icinga Feel free to have a

Re: [Puppet Users] Nagios Contacts(groups)

2013-02-12 Thread Felix Frank
Hi, On 02/11/2013 02:12 PM, Jamie Cressey wrote: > > Is there a way to create a list such as ; > name1:username1:emailaddress1 > name2:username2:emailaddress2 classic use case for defined types. http://docs.puppetlabs.com/guides/language_guide.html#defined-resource-types Your type will look lik

Re: [Puppet Users] Nagios server howto for beginner ?

2012-10-15 Thread Matthias Saou
Hi, Nagios servers tend to quickly become complex beasts :-) I know what all of the advantages of managing them cleanly with puppet are, never missing a single typical check from being added ever again being the main one, but there are so many downsides that I'm still not entirely convinced that i

Re: [Puppet Users] Nagios

2012-10-12 Thread Gabriel Filion
On 2012-10-11 14:59, TFML wrote: > I've got a Nagios setup with puppet to add nodes/contacts/command > running at one datacenter, I'm trying to setup a second Nagios server > using the same manifests, but I'm getting this error: > > info: Retrieving plugin > info: Loading facts in snmpd > info: Lo

Re: [Puppet Users] Nagios

2012-10-11 Thread Peter Brown
How are you setting up the nagios resources? On 12 October 2012 04:59, TFML wrote: > I've got a Nagios setup with puppet to add nodes/contacts/command running at > one datacenter, I'm trying to setup a second Nagios server using the same > manifests, but I'm getting this error: > > info: Retrievi

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-11 Thread Peter Brown
On 12 September 2012 01:24, Gabriel Filion wrote: > On 12-09-10 11:32 PM, Peter Brown wrote: >>> hum, was the purge functionality ever fixed for nagios types? I've >>> > wanted to use that for some time but fwir it was not implemented. >> Purge generally works if you don't change the target for an

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-11 Thread Gabriel Filion
On 12-09-10 11:32 PM, Peter Brown wrote: >> hum, was the purge functionality ever fixed for nagios types? I've >> > wanted to use that for some time but fwir it was not implemented. > Purge generally works if you don't change the target for any of the > the nagios types and keep the names the same

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-10 Thread Peter Brown
On 11 September 2012 12:51, Gabriel Filion wrote: > On 12-09-10 10:46 PM, Bruno Leon wrote: >> resources { "nagios_service": >> #notify => Service["nagios3"] >> purge => true, >> } >> >> resources { "nagios_host": >> #notify => Service["nagios3"] >> purge => true, >> } >>

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-10 Thread Gabriel Filion
On 12-09-10 10:46 PM, Bruno Leon wrote: > resources { "nagios_service": > #notify => Service["nagios3"] > purge => true, > } > > resources { "nagios_host": > #notify => Service["nagios3"] > purge => true, > } > > > > And make Nagios service subrscribe to the file /etc

Re: [Puppet Users] Nagios purge deleted items and notify nagios service problem

2012-09-10 Thread Bruno Leon
resources { "nagios_service": #notify => Service["nagios3"] purge => true, } resources { "nagios_host": #notify => Service["nagios3"] purge => true, } And make Nagios service subrscribe to the file /etc/nagios (cheksum => mtime) -- Bruno On September 10, 2012 01:17

Re: [Puppet Users] Nagios and www-data users.

2012-09-05 Thread Darin Perusich
There should be a "nagcmd" group which both nagios and your apache user are members of. The nagios.cmd pipe should have permission of 0660 and ownership of nagios:nagcmd. If you were using check_mk livestatus then the livestatus.cmd socket would have the same perms and ownership. Usually this is t

Re: [Puppet Users] nagios service check_https

2012-08-23 Thread Peter Brown
No worries. Glad you got it working. On 23 August 2012 14:35, Marc Lucke wrote: > I inherited the module so I'm not sure. I did see some check_commands with ! > and was wondering; I didn't connect the dots. > > Thank you!! :) > > On 23/08/2012, at 2:18 PM, Peter Brown wrote: > >> Hi, >> >> $AR

Re: [Puppet Users] nagios service check_https

2012-08-22 Thread Marc Lucke
I inherited the module so I'm not sure. I did see some check_commands with ! and was wondering; I didn't connect the dots. Thank you!! :) On 23/08/2012, at 2:18 PM, Peter Brown wrote: > Hi, > > $ARG1 in a nagios check is what comes after the first ! in the check. > Which module are you using

Re: [Puppet Users] nagios service check_https

2012-08-22 Thread Peter Brown
Hi, $ARG1 in a nagios check is what comes after the first ! in the check. Which module are you using to generate your nagios setup? On 23 August 2012 13:44, Marc Lucke wrote: > I note that the check_https command that the puppet module generates is > check_http -H $HOSTNAME -S $ARG1 > > I'd lik

Re: [Puppet Users] Nagios hostgroup collation

2012-06-12 Thread Brian Gallew
As one who has previously used Puppet to drive Nagios configurations (and attempted to contribute patches to Puppetlabs), allow me offer a somewhat fabulous alternative: check_mk. check_mk is a package that can be used to generate your Nagios configuration in a programmatic fashion. Here's how it

Re: [Puppet Users] Nagios hostgroups

2011-08-16 Thread Jonathan Gazeley
Righto. The puppetmaster is 0.25.5-1.el5 on CentOS 5, while the puppet client is 0.25.5-1.el6 on CentOS 6. I'm aware this version is quite old now, but it looks like a significant amount of trouble to package a newer version for deployment via RPM along with its various dependencies. I'm succe

Re: [Puppet Users] Nagios hostgroups

2011-08-15 Thread Denmat
Hi, http://docs.puppetlabs.com/guides/exported_resources.html You will need to include more detail for further help, like version of puppet and a snippet of how you are realizing them. Do any other exported resources work in your manifest? Cheers, Den On 16/08/2011, at 2:08, key...@gmail.com w

Re: [Puppet Users] Nagios hostgroups

2011-08-15 Thread keymon
Sent from my Verizon Wireless BlackBerry -Original Message- From: Jonathan Gazeley Sender: puppet-users@googlegroups.com Date: Mon, 15 Aug 2011 17:03:02 To: Puppet Users Reply-To: puppet-users@googlegroups.com Subject: [Puppet Users] Nagios hostgroups Hi all, I'm using various exporte

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Martijn Grendelman
On 03-03-11 08:04, Gabriel Filion wrote: > On 11-03-02 02:27 PM, Brian Gallew wrote: >> I've found that Puppet/Naginator has the bad habit of occasionally >> breaking the Nagios config. Here's how I worked around this: 1) When >> you collect your Nagios resource, store them all in a temporary >> d

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Gabriel Filion
On 11-03-02 02:27 PM, Brian Gallew wrote: > I've found that Puppet/Naginator has the bad habit of occasionally breaking > the Nagios config. Here's how I worked around this: > 1) When you collect your Nagios resource, store them all in a temporary > directory (in my case, ~nagios/var/tmp) > 2) P

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Brian Gallew
I've found that Puppet/Naginator has the bad habit of occasionally breaking the Nagios config. Here's how I worked around this: 1) When you collect your Nagios resource, store them all in a temporary directory (in my case, ~nagios/var/tmp) 2) Purge that directory with a cron job every night (so

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Gabriel Filion
Hello, I finally abandoned the idea of having a group-based sane-looking Nagios configuration with puppet, because there are too many weirdnesses in Naginator. And unfortunately I can't really bring any help with patches since I don't write any ruby.. There are some great nagios modules out there

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Brian Gallew
Dude, I struggled with that for more than 6 months, and the position of the Puppet people was, "you're doing it wrong". Since that didn't help my problem I ended up doing it this way: 1) Create a new fact (see attached) that reports back to the master server on what classes are defined on the c

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Martijn Grendelman
On 02-03-11 14:49, Brian Gallew wrote: > Sadly, signs point to "no". Too bad. But since I run a patched Puppetmaster anyway, I can do what I want :-) Unfortunately, it doesn't solve my problem. I am trying to do the same thing as Gabriel Filion in this post: http://groups.google.com/group/puppet

Re: [Puppet Users] Nagios configuration arrays

2011-03-02 Thread Brian Gallew
Sadly, signs point to "no". On Wed, Mar 2, 2011 at 5:15 AM, Martijn Grendelman wrote: > Hi, > > A question for the devs. Will this: > > http://projects.puppetlabs.com/issues/4020 > > make it into a release any time soon? > > Best regards, > Martijn. > > -- > You received this message because you

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Jeff McCune
On Sep 30, 2010, at 3:04 PM, Greg Haase wrote: > I believe that in the past I was able to view this information on my puppet > server with > > ralsh nagios_host > > It would give me a listing of what was stored in nagios_host. Now when I do > this I see nothing. I'm not sure if you mean that y

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Daniel Pittman
Greg Haase writes: > I am exporting my resources to the database. I can verify that this is > occurring. Yet I am not getting all of the the > > Nagios_host <<|target ==nagios_hosts.${fqdn}.cfg|>> > > files written to my nagios server and I am interested in finding out how to > trace down this f

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-10-01 Thread Greg Haase
Avi, I am exporting my resources to the database. I can verify that this is occurring. Yet I am not getting all of the the Nagios_host <<|target ==nagios_hosts.${fqdn}.cfg|>> files written to my nagios server and I am interested in finding out how to trace down this functionality of the collec

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-09-30 Thread Avi Miller
Greg Haase wrote: Are you aware of any documentation that clearly explains how this collect/export functionality works? Exporting and collecting resources relies on stored configuration[1] being enabled on your Puppet Master. You should ensure that the database is configured and working befor

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-09-30 Thread Greg Haase
Stephen, Ah the David Schmitt nagios module. This is what I based my work on. I used it as a model. Are you aware of any documentation that clearly explains how this collect/export functionality works? Greg On 9/30/10 3:31 PM, "Steven Wagner" wrote: > Hi Greg, > > I'm on my phone at the mo

Re: [Puppet Users] Nagios Module and use of the @@ and <<||>> notation

2010-09-30 Thread Steven Wagner
Hi Greg, I'm on my phone at the moment so I don't have the exact link handy, but there is a module on GitHub that works. I tinkered with it a lot in my old setup but found most of my problems were due to not really understanding how the collect/export functionality worked. This is my favorite

Re: [Puppet Users] Nagios allowed hosts, how would you do it?

2010-07-27 Thread Gabriel Filion
On 20/07/10 08:06 AM, Tore wrote: > Hi, > > We currently have a module `nagios` which install nrpe and nagios > plugins for all nodes. The default node have this module included. > > Currently we have a customer who wants to monitor their own services. > We will still monitor them, but they want

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Douglas Garstang
On Tue, Jul 6, 2010 at 11:03 AM, James Turnbull wrote: > Douglas Garstang wrote: >> On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> Also, none of the other files created by puppet types are set to be readable only by root. I

Re: [Puppet Users] Nagios Types

2010-07-06 Thread James Turnbull
Douglas Garstang wrote: > On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >>> Also, none of the other files created by puppet types are set to be >>> readable only by root. I think this might be a bug in puppet. >>> Surprised no one has no

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Douglas Garstang
On Tue, Jul 6, 2010 at 12:46 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> Also, none of the other files created by puppet types are set to be >> readable only by root. I think this might be a bug in puppet. >> Surprised no one has noticed it before. > > http://proj

Re: [Puppet Users] Nagios Types

2010-07-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Also, none of the other files created by puppet types are set to be > readable only by root. I think this might be a bug in puppet. > Surprised no one has noticed it before. http://projects.puppetlabs.com/issues/3299 cheers pete -BEGIN PGP SIGN

Re: [Puppet Users] Nagios Types

2010-07-05 Thread Douglas Garstang
On Mon, Jul 5, 2010 at 6:57 PM, Gabriel Filion wrote: > On 2010-07-05 19:34, Douglas Garstang wrote: >> First off, does anyone use the puppet built in nagios types? >> >> I just started to play with them, and I noticed that nagios_host >> writes the nagios_host.cfg file as owned by root, and reada

Re: [Puppet Users] Nagios Types

2010-07-05 Thread Gabriel Filion
On 2010-07-05 19:34, Douglas Garstang wrote: > First off, does anyone use the puppet built in nagios types? > > I just started to play with them, and I noticed that nagios_host > writes the nagios_host.cfg file as owned by root, and readable by > root, and no on else. Is there a reason for that? S

Re: [Puppet Users] nagios client check?

2010-06-28 Thread Daniel Wittenberg
I was thinking I'd have to look at the master logs on server, but looks like each host has the state file. So am I correct in assuming that the state.yaml will only get updated/touched on successful run? This is why I was thinking of checking server logs on master to be sure that it completed

Re: [Puppet Users] nagios client check?

2010-06-28 Thread Todd Zullinger
Daniel Wittenberg wrote: > Anyone written a check for nagios to make sure their nodes are > checking in and updating correctly? I think I'd rather have a > passive check on the nagios server that just alerts me if something > hasn't checked in for last 24 hours rather than having antoher > dashboa

Re: [Puppet Users] Nagios checks

2010-06-02 Thread Disconnect
I do a very simple check: # warn if the state files are 90 minutes old, critical at 150 minutes nagios::service { "puppet_running": check_command => "check_puppet_age!7500!9000!2048!2047", notifications_enabled => 0, } } check_puppet_age is: command_line => '/usr/li

Re: [Puppet Users] Nagios checks

2010-06-01 Thread Todd Zullinger
Peter Berghold wrote: > Has anybody out there written a custom check for Nagios to determine > if puppetd and/or puppetmasterd is running? I am considering writing > one if not. FWIW, I've got an overengineered check_puppet and puppetstatus tool at: http://tmz.fedorapeople.org/scripts/puppetstatus

Re: [Puppet Users] Nagios checks

2010-05-28 Thread Joe McDonagh
On 05/27/2010 02:37 PM, Peter Berghold wrote: Has anybody out there written a custom check for Nagios to determine if puppetd and/or puppetmasterd is running? I am considering writing one if not. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

Re: [Puppet Users] Nagios checks

2010-05-27 Thread Richard Crowley
On Thu, May 27, 2010 at 12:19 PM, Michael DeHaan wrote: > On Thu, May 27, 2010 at 2:37 PM, Peter Berghold > wrote: >> Has anybody out there written a custom check for Nagios to determine if >> puppetd and/or puppetmasterd is running? I am considering writing one if >> not. I did a minimal check

Re: [Puppet Users] Nagios checks

2010-05-27 Thread Michael DeHaan
On Thu, May 27, 2010 at 2:37 PM, Peter Berghold wrote: > Has anybody out there written a custom check for Nagios to determine if > puppetd and/or puppetmasterd is running? I am considering writing one if > not. > I've found a few things: http://www.kallisti.net.nz/blog/2009/02/monitoring-puppet-

Re: [Puppet Users] Nagios based on David Schmitt's Complete Config : variables are empty

2010-03-08 Thread David Schmitt
On 3/2/2010 4:40 PM, Joe McDonagh wrote: gehel wrote: Hello ! I'm trying to implement a Nagios solution based on David Schmitt's Complete Config. But I the following error when running puppetd -t - v : notice: Starting catalog run err: //Node[monitoring]/nagios::target/Nagios::Host[]/File[/con

Re: [Puppet Users] Nagios based on David Schmitt's Complete Config : variables are empty

2010-03-02 Thread Joe McDonagh
gehel wrote: Hello ! I'm trying to implement a Nagios solution based on David Schmitt's Complete Config. But I the following error when running puppetd -t - v : notice: Starting catalog run err: //Node[monitoring]/nagios::target/Nagios::Host[]/File[/conf.d/ _host.cfg]/ensure: change from absent