Are there any errors in the Kapacitor logs? Maybe a permissions issue since the scripts exists in the test user home dir its not likely any other user will be able to execute it.
On Monday, November 28, 2016 at 1:50:51 PM UTC-7, [email protected] wrote: > > > Hi, i'm new working with Kapacitor. I cannot make work the .exec command > on my cpu_alert.tick. > > Here is my .tick file > > stream > // Select just the cpu measurement from our example database. > |from() > .measurement('cpu') > |alert() > .crit(lambda: "usage_idle" < 70) > // Whenever we get an alert write it to a file. > .log('/tmp/alerts.log') > .exec('/home/test/TICK/myfile.py') > > Here is myfile.py > > f = open('file.txt','w') > f.write('works') > f.close() > > however, the arlets.log is working as well as this > https://docs.influxdata.com/kapacitor/v1.1/introduction/getting_started/ > describes, but the python file seems to be never called. > > Thanks > > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/7284aab4-d903-43c9-b0a6-b9b9c8b0813c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
