The path to collectPoints.bat should be absolute, not relative. You are
missing the leading slash.

On Fri, Oct 21, 2016 at 3:34 PM, <[email protected]> wrote:

> I have a one line batch script that has the following command
>
> echo pos_heartbeat,fingerprint=asdf324 value=1
>
> The script is called "collectPoints.bat
>
> the inputs.exec portion of my telegraf.config looks like this:
>
> [[inputs.exec]]
> #   ## Commands array
>    commands = [
>      "tmp/collectPoints.bat"
>    ]
> #
> #   ## Timeout for each command to complete.
> #   timeout = "5s"
> #
> #   ## measurement name suffix (for separating different commands)
> #   name_suffix = "_mycollector"
> #
> #   ## Data format to consume.
> #   ## Each data format has it's own unique set of configuration options,
> read
> #   ## more about them here:
> #   ## https://github.com/influxdata/telegraf/blob/master/docs/
> DATA_FORMATS_INPUT.md
>     data_format = "influx"
>
> When I run telegraf -config telegraf.conf -test
>
> I get the following when it gets to inputs.exec:
> "Errors encountered: [exec: exit status 1 for command
> 'tmp/collectPoints.bat']"
>
> I've tried all sorts of modifications to collectPoints.bat, but not sure
> what's up. This seems like it should be really straight forward. Any
> direction woul dbe greatly appreciated.
>
> --
> 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/a9ad8d83-6786-4295-976c-a29b5cba1fa1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sean Beckett
Director of Support and Professional Services
InfluxDB

-- 
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/CALGqCvOMvrYtumWUrREONCPUy4LiVOaQ0VqPt7nc71QUaZTtMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to