<html><head><base href="https://gist.github.com/raw/c623bb584b87875a2283/f6c11f5a80690d3ad3fb9aded35758091b3058f9/gistfile1.txt"></head><body style="-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><base href="https://gist.github.com/raw/c623bb584b87875a2283/f6c11f5a80690d3ad3fb9aded35758091b3058f9/gistfile1.txt">Hi,<div><br></div><div>Running an old version of collectd here (4.5.2) working with Thresholds w/ an Exec Plugin and I must be missing something.</div><div><br></div><div>I realize I may be doing this the wrong way so please pardon any crazyness,</div><div><br></div><div>Wanting to collect and alert based on the queue size in exim, so I setup a plugin that calls this,</div><div><br></div><div>echo "PUTVAL `hostname -f`/exim/queue_count N:`/usr/sbin/exim -bpc`"</div><div><br></div><div>I added queue_count to types.db which maybe bad, but I copied 'counter'...</div><div><br></div><div>I have an existing Threshold setup working with cpu/etc, so I just wanted to drop this into the Threshold block like, </div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; "> <Plugin Threshold></span></div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; "> <Plugin "exec"></span></div><pre style="word-wrap: break-word; white-space: pre-wrap;"> <Type "queue_count">
WarningMin 0.00
WarningMax 10.0
FailureMin 0.00
FailureMax 20.0
DataSource "value"
</Type>
</Plugin></pre><pre style="word-wrap: break-word; white-space: pre-wrap;"></Threshold>
</pre><div><pre style="word-wrap: break-word; white-space: pre-wrap; "><Plugin exec></pre><pre style="word-wrap: break-word; white-space: pre-wrap; "> Exec "nobody" "/etc/exim/collectd_mailq.sh"
</Plugin>
</pre><div><br></div></div><div>What am I missing here? I would love to know as I have a graph that has stats... it counts beautifully... but I don't have Thresholds working :(</div><div><br></div><div>I can attach the rest of the collectd.conf if requested, but didn't see it was pertinent as it works with the exception of this.</div><div><br></div><div>Thanks!</div></body></html>