ricoberger / script_exporter

Prometheus exporter to execute scripts and collect metrics from the output or the exit status.
MIT License
354 stars 82 forks source link

How to run scripts for windows? #24

Closed sanindd closed 4 years ago

sanindd commented 4 years ago

Hi, what scripts can I use on win. I tried to use python script in title #! python but got an error Script parameter is missing. scripts:

What am I doing wrong?

ricoberger commented 4 years ago

Hi @sanindd, the error Script parameter is missing. indicates that the script parameter is missing. When you open the following url the error shouldn't occur and your should get the result of your script: http://localhost:9469/probe?script=my_script

sanindd commented 4 years ago

Yes thank you. What does this error mean? %1 is not a valid Win32 application.

sanindd commented 4 years ago

I figured out my mistake. thank)