1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-26 01:58:18 +00:00

Updated Stats monitoring in check_mk_agent (markdown)

Steve Berg 2016-07-25 08:18:16 -05:00
parent e2dc800020
commit 3c7958f117

@ -37,4 +37,12 @@ After you reinventory the client where you installed this you should have three
After the logs rotated for the first time since I started using this check the ads_blocked_today perf data zero'd out. I'm not quite sure why yet though, check_mk should still see previous values even if current values are zero. After the logs rotated for the first time since I started using this check the ads_blocked_today perf data zero'd out. I'm not quite sure why yet though, check_mk should still see previous values even if current values are zero.
Found the problem. The script was returning ads_blocked and queries values with commas "," in them. Check_mk doesn't like that. So I've stripped the comma out of each returned number and it looks much better now. Found the problem. The script was returning ads_blocked and queries values with commas "," in them. Check_mk doesn't like that. So I've stripped the comma out of each returned number and it looks much better now.
Example graphs:
![Ads blocked - 1 week](https://github.com/BiloxiGeek/Contributions/blob/master/ads-blocked-1week.png)
![Ads percent - 1 week](https://github.com/BiloxiGeek/Contributions/blob/master/ads-percent-1week.png)
![DNS queries - 1 week](https://github.com/BiloxiGeek/Contributions/blob/master/dns-queries-1week.png)