# Puppet module check\_disk custom / default values

**URL:** <https://community.icinga.com/t/puppet-module-check-disk-custom-default-values/5289>\
**Category:** Automation & Infrastructure\
**Tags:** puppet\
**Created:** [August 14, 2020, 1:42pm UTC](https://community.icinga.com/t/puppet-module-check-disk-custom-default-values/5289 "2020-08-14T13:42:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbits](https://community.icinga.com/letter_avatar_proxy/v4/letter/v/90db22/32.png) [@vbits](https://community.icinga.com/u/vbits)\
**Post date:** [August 14, 2020, 1:42pm UTC](https://community.icinga.com/t/puppet-module-check-disk-custom-default-values/5289/1 "2020-08-14T13:42:56Z")

</div>

Hi!  
i just started with puppet and as a junior administrator with the bad luck that the one who has to teach me doesn’t know how to work puppet either and even less the icinga module.  
I’ve had a problem for several days now that should be very simple.It turns out that I have many hosts with the icinga module check\_disk.  
but some of them I want to modify the critical value.  
I got it in:  
code/environments/production/modules/nagios\_nrpe\_server/templates/checks.cfg.erb  
Adding:  
\<% if (@hostname =~ /^devfsweb/) then -%\>  
{{ command[check\_disk]=sudo /usr/lib/nagios/plugins/check\_disk -l -w 25% -c 20%}}  
{{ \<% end -%\>}  
The problem is that the default check\_disk is not deleted, so there are 2 left in the host file /etc/nagios/nrpe.d/checks.cfg  
Extraneously icingaweb only shows me a check and luckily with the last added values (20%) but it is not very elegant to have both in the file.How could I delete the check\_disk with the default values?
