TinyDNS aka djbdns
TinyDNS aka djbdns
Agent
Install the agent on this device if it isn't already and copy the tinydns script to /usr/lib/check_mk_agent/local/
Note
We assume that you use DJB's Daemontools to start/stop tinydns. And that your tinydns instance is located in /service/dns, adjust this path if necessary.
-  Replace your log's runfile, typically located in/service/dns/log/runwith:#!/bin/sh exec setuidgid dnslog tinystats ./main/tinystats/ multilog t n3 s250000 ./main/
-  Create tinystats directory and chown: mkdir /service/dns/log/main/tinystats chown dnslog:nofiles /service/dns/log/main/tinystats
-  Restart TinyDNS and Daemontools: /etc/init.d/svscan restart
Note
Some say svc -t /service/dns is enough, on my install (Gentoo) it doesn't rehook the logging and I'm forced to restart it entirely.