Hey guys,
I was thinking about turning my nrpe.cfg file into a template. So that I
could customize lines like the following:
command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p
/dev/*vda*
I would need to use just the name of the partition out of the following
list:
partitions => {"*vda1*"=>{"mount"=>"/", "filesystem"=>"ext4",
"uuid"=>"4c951027-0926-4814-9ab2-622a633fe925", "size"=>"10483712"}}
So here I would want to use 'vda1'. How can I express this in a puppet
template so that I use only this part of the fact? I'd want to be able to
replace 'vda' in this example with 'vda1' from the partitions fact.
Thank you,
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAOZy0emo7xtmQFeO1shsbsfxW28CrA%3DP3%3DWFMjsh9xqyS-0o9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.