It is not really clear to me the
difference between local checks and mrpe. Reading the official
documentation, in my understanding they do just the same thing (run custom
script) in a differenct way.
On the https://mathias-kettner.de/checkmk_localchecks.html there is nice and
for dir in $DIRS
count=$(ls $dir | wc --lines)
if [ $count -lt 50 ] ; then
elif [ $count -lt 100 ] ; then
echo "$status Filecount_$dir count=$count;50;100;0; $statustxt - $count
files in $dir"
I placed this script in /usr/lib/check_mk_agent/local/testscript, did and
inventory (cmk -I) and I got the new service applied to my host.
The point is that I could have done the same thing using mpre with something
This is just a simple bash script that respect the nagios return codes
(0,1,2,3) but the same concept would apply to any official nagios plugins
So...the question is:
apart the fact that they use a different mechanism, is there any good reason or
case for which I should use one of them?
checkmk-en mailing list