1. README

These plugins can be installed in the plugins directory of the Linux agent
in /usr/lib/check_mk_agent/plugins/. Please only install the plugins that
you really need.

If you want a plugin to be run asynchronously and also in
a larger interval then the normal check interval, then you can
copy it to a subdirectory named after a number of *minutes*,
e.g.:

/usr/lib/check_mk_agent/plugins/60/mk_zypper

In that case the agent will:

 - Run this plugin in the background and wait not for it to finish.
 - Store the result of the plugin in a cache file below /etc/check_mk/cache.
 - Use that file for one hour before running the script again.

2. variables

ATTRIBUTE PATH

MK_CONFDIR

/etc/check_mk/

3. sample

3.1. on the client

vi /etc/check_mk/mrpe.cfg
statsLDAP /usr/lib/check_mk_agent/plugins/check_stats_ldap
vi /usr/lib/check_mk_agent/plugins/check_stats_ldap
#!/bin/sh

 attrib1="send"
 attrib2="receive"

 value1="$RANDOM"
 value2="$RANDOM"

 echo "$(date) - ${attrib1}: ${value1} - ${attrib2}: ${value2} | ${attrib1}=${value1};;;; ${attrib2}=${value2};;;;"

 exit 0
chmod +x /usr/lib/check_mk_agent/plugins/check_stats_ldap

3.2. on the server

check_mk -d srv002 | grep check_stats_ldap
check_mk -nv srv002