Peter, What sets:
if $use_nagios { include silc::nagios } Thanks, Matt 2009/8/20 Peter Meier <peter.me...@immerda.ch>: > > Hi > >> I'm trying to set-up a monitoring module that looks at what >> classes(modules) have been included for that node and then deploys the >> required monitoring scripts. > > For something like that I use exported resources, so within the class > itself I export a nagios-check, which then will be collected by the > nagios server and my service is monitored. > > for example for something simple like a tcp port monitoring for silc: > http://git.puppet.immerda.ch/?p=module-silc.git;a=blob;f=manifests/init.pp;h=deecb092cbeaad7765a83c25c15bd939ab1a5f33;hb=d79d8c9d76599fb3dfdce2cf8d77dcd4c517bf97#l9 > > which includes the silc::nagios class, which declares a nagios::service > for silc: > http://git.puppet.immerda.ch/?p=module-silc.git;a=blob;f=manifests/nagios.pp;h=99ca7f970500882e45fe471670478a2444662823;hb=d79d8c9d76599fb3dfdce2cf8d77dcd4c517bf97 > > which is behind (in the nagios module) an exported nagios resource to > the nagios server. > > a bit an alternative approach, but might fit your needs, doesn't it? > > cheers pete > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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 -~----------~----~----~----~------~----~------~--~---