Updated Stats monitoring in check_mk_agent (markdown)

BiloxiGeek 2016-07-02 17:05:44 -05:00
parent 19cbb3c881
commit 4cf79c6ee6
1 changed files with 1 additions and 1 deletions

@ -1,6 +1,6 @@
I've written this extremely simple local check for the check_mk_agent. If you've installed the agent on your Pi-Hole place this into an executable file wherever your check_mk_agent expects to find local plugins. Alternatively this could be installed on any system that has access to the Pi-Hole console, I decided to put it on the Pi-Hole directly. I named mine "mk_pihole_stats.py" but as long as it's in the correct subdirectory and the agent script can execute it it should work just fine.
After you reinventory the client where you installed this you should have two new local checks. PiHole_ads and PiHole_percent.
After you reinventory the client where you installed this you should have two new local checks. PiHole_Ads and PiHole_Percent.
#!/usr/bin/python
# Simple (always OK) check_mk local check to track # of ads blocked today.