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" <leftath...@gmail.com> wrote:

> 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 feature of Puppet.  When I got it working, I teared up a
> bit.  :)
> 
> I believe it's http://github.com/DavidS/puppet-nagios
> 
> 
> (mobile edition)
> 
> On Sep 30, 2010, at 3:04 PM, Greg Haase <gha...@syntheticgenomics.com> wrote:
> 
>> Greetings, 
>> 
>> I am working on getting Nagios implemented with Puppet so that when I add a
>> node to Puppet a Nagios configuration file is generated.
>> 
>> I can get nagios installed and configured on the server and the client with
>> no problems.  Yet getting the client configuration file on to the server is
>> not happening. I did have it working at one point in time yet It seems that
>> I cannot get back to that configuration.
>> 
>> I am relying on notation using the @@ and <<||>> I found somewhere in the
>> documentation yet I did not find a proper discussion of exactly how it
>> works.  I don't feel that I have a proper understanding of how it works.
>> 
>> What I understand is that by using the
>> 
>> @@name {}
>> 
>> I can load data into a "global object" that is accessible from any puppet
>> member. Who uses the
>> 
>> name <<||>> 
>> 
>> Notation to call the data stored in that global object.
>> 
>> 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.
>> 
>> Here is a listing of what I understand as being a way to use this:
>> 
>> Is this correct?
>> 
>> 
>> -----------------
>> class nagios-server{
>>       ........ A bunch of other stuff ..........
>>    file { "/etc/nagios/":
>>        ensure => 'directory',
>>        mode => 755,
>>        owner  => nagios,
>>        group  => nagios,
>>        recurse => true;
>>    }
>> Nagios_host  <<|target == "/etc/nagios/nagios_hosts.${fqdn}.cfg"|>>
>> }
>> -----------------
>> class nagios-client {
>>    @@nagios_host { $fqdn:
>>        target => "/etc/nagios/nagios_hosts.${fqdn}.cfg",
>>        ensure => present,
>>        alias => $hostname,
>>        address => $ipaddress,
>>        use => "my-servers",
>>        check_command => "check-host-alive",
>>        max_check_attempts => 3,
>>        hostgroups => "my-servers",
>>        contact_groups => "admins",
>>    }
>>    ........ A bunch of other stuff ..........
>> }
>> -----------------
>> 
>> Could someone please point me in the right direction to some documentation
>> that could help clarify this  the use of the @@ and <<||>>?
>> 
>> 
>> I'd greatly appreciate it.
>> 
>> Thanks
>> 
>> Greg
>> Greg Haase
>> gha...@syntheticgenomics.com
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com.
>> 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 puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to