TinyDNS aka djbdns
TinyDNS aka djbdns
Agent
If this device has no agent, install the agent 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
svc -t /service/dns is sometimes enough. On a Gentoo install, it does not reconnect the logging. A full restart is then necessary.