1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 13:37:02 +02:00

Added basic plugin support to agent

This commit is contained in:
Alexander Reinert 2017-07-01 12:57:22 +02:00
parent 1a76173f13
commit c12aa0652d
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,10 @@ proc handle_connection { channelId clientAddress clientPort } {
}
}
foreach plugin [glob -nocomplain "[file dirname [info script]]/plugins/*"] {
puts $channelId "[exec $plugin]"
}
flush $channelId
close $channelId

View File

@ -13,6 +13,8 @@ fi
# create necessary directories
mkdir -p ${ADDON_DIR}
chmod 755 ${ADDON_DIR}
mkdir -p ${ADDON_DIR}/plugins
chmod 755 ${ADDON_DIR}/plugins
mkdir -p ${RCD_DIR}
chmod 755 ${RCD_DIR}