Hi there,
I'm writing a manifests for some Nagios check, like this:
nagios_service { 'check_http_test.salesforce.com':
> use => 'generic-service',
> check_command => 'remote-nrpe-tcp-check!test.salesforce.com!443',
> service_description => 'CON: test.salesforce',
> display_name => 'Connection check: test.salesforce.com:443',
> servicegroups => 'cloud',
> hostgroup_name => 'cloud-app',
> }
>
There are almost 30 of them and the the only difference between the checks
are that hostname and port number. Is there anyway to automate this
process, instead of specifying these 30 times statically? I was thinking
putting those values in an array and loop through it to generate the
resultant "nagios_service.cfg". How can I do that? Cheers!!
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.