Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
A plugin to extract (almost) all the information from the Pi-hole API.
Current Version
1.4.1
Last Release Date
February 23, 2024
Owner
David
Download URL
https://github.com/deividgdt/nagiosplugin_piholeapi
License
GPL
Compatible With
Installation
Just put it in the folder /usr/lib/nagios/plugin
Token
Get the token from the value WEBPASSWORD in the file /etc/pihole/setupVars.conf and put it in /usr/lib/nagios/plugin/apihole.token
Usage
Usage ./check_pihole_api -h pihole_ipaddress -p [ http || https ] -s [ clients || queries || ads ] || -i || -q || -t
-s (summary)
clients: Number of clients using Pihole as their DNS server queries: Number of DNS queries ads: Number and percentage of ads blocked. -p (protocol) Protocol to be used in the API call (http||https). By default: http
-i (information) show the version of the plugin
-q queries by type AAAA, A, SOA, TXT, PTR, ANY, SRV, IPV4, IPV6
-t Show a TOP number of queries by host
No usable output! How to resolve error message? $ ./check_pihole_api.sh -h localhost -t ./check_pihole_api.sh: line 57: /usr/local/nagios/libexec/pihole_api_getQuerySources.tmp: Permission denied ./check_pihole_api.sh: line 125: /usr/local/nagios/libexec/pihole_api_getQuerySources.tmp: No such file or directory TOP HOSTS BY QUERIES | $ ./check_pihole_api.sh -h localhost -s queries DNS QUERIES TODAY |Total= Is there a Guide for Dummies, please? Thanks.
Hello Baqwas. I have fixed the plugin, find the latest version working with Pihole 5.17 in my github. deividgdt/nagiosplugin_piholeapi
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!