problem with commit

Hi guys have a problem with commit.
I’ve installed “fastnetmon” to detect and block ddos. The problem is that after executing a script, after ban or unban, my manual commit fails
I execute this way /usr/bin/sg vyattacfg -c “/config/scripts/ $1”
Fastnetmon works as root
maybe anyone can advise something how to execute script correctly to avoid the problem with commit.