librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
118 stars 188 forks source link

check_mrpe not working with busybox sed (librenms docker) #393

Open clyso opened 2 years ago

clyso commented 2 years ago

when running check_mrpe inside container (busybox sed) I receive following error:

sed: unterminated {

when running on container host (gnu sed) works as expected

clyso commented 2 years ago

following change fixed the problem: instead of sed '/^<<<mrpe>>>/,/^<<</{//!b};d' use sed '/^<<<mrpe>>>/,/^<<</{//!b;};d'

summary: add a semikolon before the closing bracket