Using Kapacitor to rollup metrics

To start at the top, I’ve installed Kapacitor and tried to enable it to start on system startup, but I get this error…

systemctl enable kapacitor
Failed to execute operation: Too many levels of symbolic links

On the script syntax, I’m completely lost as to how in tickscript how to nest the two operations (derivative, then mean) with different time windows. From all outward appearances even if I manage to crack this, I’ll have to have two tickscripts (one for each field) right?