Hi Al,

Thank you for your answer.

What I am trying to do is as follows:

I have successfully installed Nagios server on CentOS 6.6 using Puppet and 
example42/nagios module. I have also added a new host with some checks and 
works like a charm. However I was looking around trying to understand how 
should I go about when I want to add a host such as localhost.cfg, just by 
passing the required variables to the Hiera file. I have tried to use 
nagios::host and nagios::target but doesn't seem to work, all I get it is 
that the run was successful but nothing has been applied.

Do you think that I should use Icinga2?

Thank you for quick reply and for your answer.

Regards,
Sergiu 

On Wednesday, March 25, 2015 at 11:12:25 AM UTC, Alessandro Franceschi 
wrote:
>
> Do you want to add automatically new hosts on Nagios using exported 
> resources or you want to define your hosts "statically" with a bunch of 
> (hiera) data?
>
> Hiera entries for this module are as the ones you may expect from other 
> modules, for each class parameter there's a hiera lookup to the key: 
> $classname::parametername (for example nagios::template to define a custom 
> template for your nagios.cfg)
>
> Finally, if you want to automate your monitoring setup (new hosts are 
> automatically added to the nagios server using Puppet's exported resources) 
> I'd recommend definitively to use Icinga2 instead of Nagios. This allows 
> much easier and more compact management of the exported resources 
> (basically you can just export host resources, and you don't need to export 
> any service check resource)
>  
> al
>
>
>
> On Wednesday, March 25, 2015 at 10:38:19 AM UTC+1, Sergiu Cornea wrote:
>>
>> Good morning everyone,
>>
>> I am using Puppet 3.7 and the example42/nagios module. As I am a Puppet 
>> newbie I have tried to create hosts using hiera but it doesn't work. I have 
>> google it but I am just getting the example42/network module example for 
>> hiera.
>>
>> Could someone guide me into the right direction on how I will go about 
>> create a Hiera entry for this module?
>>
>> Thank you,
>>
>> Regards,
>> Sergiu
>>
>> This message and its attachments are private and confidential. If you 
>> have received this message in error, please notify the sender and remove it 
>> and its attachments from your system.
>>
>> The University of Westminster is a charity and a company 
>> limited by guarantee. Registration number: 977818 England. 
>> Registered Office: 309 Regent Street, London W1B 2UW.
>>
>
-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
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/d6ed185d-54fb-4a32-8e9b-ce3cfab83eb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to