Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative Native Method #2

Open
zfouts opened this issue Jan 10, 2020 · 2 comments
Open

Alternative Native Method #2

zfouts opened this issue Jan 10, 2020 · 2 comments

Comments

@zfouts
Copy link

zfouts commented Jan 10, 2020

While investigating doing this on my own (and then finding yours), I learned you can actually dump the shell script and call pihole natively in the same way you the curl/jq command is doing..

Please see the following:

# PiHole monitoring
[[inputs.httpjson]]
  name = "pihole1_stats"
  servers = [
    "http://pihole.example.com/admin/api.php",
  ]
  response_timeout = "5s"
  method = "GET"```
@gmmoreira
Copy link
Owner

Hi @zfouts. Sorry for the delay.
Have you noticed any differences between the data outputted by my script and the data directly from the pi-hole API? It's been a while since I used pi-hole.

@zfouts
Copy link
Author

zfouts commented Aug 29, 2020

Hi @zfouts. Sorry for the delay.
Have you noticed any differences between the data outputted by my script and the data directly from the pi-hole API? It's been a while since I used pi-hole.

Oh so sorry, I don't notice much at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants