Hi,
i want to add a local check to my monitoring for one host precisely.
I followed this tutorial which is very well explained ( [ check_mk 5 ] How to add a custom local service check in check_mk monitoring - YouTube ) about how to add local checks.
So on my host in /urs/lib/check_mk_agent/local theres a little simple script for testing with this content:
#!/bin/bash
if [[ -f /tmp/hello ]]; then
status=0
statustxt="hello file exists"
else
status=2
statustxt="hello file missing"
fi
echo "$status FileCheck_hello - $statustxt"
unfortunately it does not even show up in check _mk after a full scan.
Did i miss something?
Hey Alessio,
I think that your problem ist very simple, because you use the wrong directory. If you want to install own PlugIns, so it is better to use: /usr/lib/check_mk_agent/plugins
Hi,
hm its not a plugin its a local check for a single host. Anyway i tried the other directory, it does not work either
Permisson are 755, the owner is root, script works fine if i execute it
Just to be sure, it is in the right directory
grep MK_LIBDIR /usr/bin/check_mk_agent
export MK_LIBDIR=’/usr/lib/check_mk_agent’
PLUGINSDIR=$MK_LIBDIR/plugins
LOCALDIR=$MK_LIBDIR/local
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.