collectd: fix dhcpcount

This commit is contained in:
Astro 2020-05-15 18:02:54 +02:00
parent 88b011772f
commit 6820f32570
2 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@ LoadPlugin ping
Interval 10
</Plugin>
{%- elif plugin == 'dhcpcount' and conf is True %}
{%- elif plugin == 'dhcpcount' and conf %}
LoadPlugin exec
<Plugin exec>
Exec "collectd" "/usr/bin/dhcpcount.rb"

View File

@ -17,6 +17,9 @@ collectd:
- template: 'jinja'
{%- if pillar['collectd'].get('dhcpcount') %}
ruby:
pkg.installed: []
/usr/bin/dhcpcount.rb:
file.managed:
- source: salt://collectd/dhcpcount.rb