[inputs.exec]: exec: exit status 1 for command

Hi Team,

We are trying to store the certificate expiry details in influx via Inline protocol functionality (.sh script)

But we are getting below error in influx logs … Colud anyone suggest me what is the issue in my case ?

E! Error in plugin [inputs.exec]: exec: exit status 1 for command ‘abc/ajju/xyz/script.sh $env’

  1. This means that your script exited with an error. Without seeing the
    script we have no idea what the error might be.

  2. What does your script do if you run it from the command line as the Influx
    user?

Antony.

Hi Pooh,

If i run the script in commandline with influx user its working fine…

Can see data getting properly in inline protocol format.