TechIsCool’s Webblog

Just Blogging about the World and My Experiences

Icinga 2.3 Dashes are no longer permitted

In Icinga 2.3 Dashes are no longer permitted in identifier names (as their semantics are ambiguous) this cause a bit of a headache for me since a pile of files had dashes.

I manually updated my commands.conf file since it was different from all the other files and then I ran

perl -p -e 's/(vars.)*-(?=.*=)/_/g' $(find -name "*.conf" -type f)

This shows what its going to do. If you want to run in place change

-p to -pi

I hope this helps someone

Leave a Reply

You must be logged in to post a comment.