Opcua, telegraf, bad status, problem

I use INPUT OPCUA.LISTENER in telegraf, I collect data from kepware (opcua Server).
I have problem with bad status.
How do I change output data when the status is bad,
I need: When the status signal == bad I would like my output data for example equals: “MACHINE OFF”. This is possible?
At the moment, when the status is bad, Telegraf does not send any information about this.
In database, I have last value with status good

Hello @Michu123,
What version of InfluxDB are you using?
You could use Flux to do this processing after.

Or you could use the execd processor plugin and code that logic in the language of your choice.

Here’s a repo with an example of using the execd processor plugin so you understand the file system etc

1 Like