The logs point me to the Porblem, that mydns somehow fails the DNS Test,
even thou it answers all querys normaly:
Sep 4 20:55:14 h1318938 monit[1475]: Starting monit daemon
Sep 4 20:55:14 h1318938 monit[1477]: Monit started
Sep 4 20:55:14 h1318938 monit[1477]: DNS: invalid reply code -- error
occured
Sep 4 20:55:14 h1318938 monit[1477]: 'mydns' failed protocol test [DNS]
at INET[localhost:53] via UDP
Sep 4 20:55:14 h1318938 monit[1477]: 'mydns' trying to restart
Sep 4 20:55:14 h1318938 monit[1477]: 'mydns' stop: /etc/init.d/mydns
Sep 4 20:55:14 h1318938 monit[1477]: 'mydns' start: /etc/init.d/mydns
Sep 4 20:55:34 h1318938 monit[1477]: Monit has not changed
Sep 4 20:55:34 h1318938 monit[1477]: DNS: invalid reply code -- error
occured
Sep 4 20:55:34 h1318938 monit[1477]: 'mydns' failed protocol test [DNS]
at INET[localhost:53] via UDP
Sep 4 20:55:34 h1318938 monit[1477]: 'mydns' trying to restart
Sep 4 20:55:34 h1318938 monit[1477]: 'mydns' stop: /etc/init.d/mydns
Sep 4 20:55:35 h1318938 monit[1477]: 'mydns' start: /etc/init.d/mydns
Sep 4 20:55:55 h1318938 monit[1477]: DNS: invalid reply code -- error
occured
Sep 4 20:55:55 h1318938 monit[1477]: 'mydns' failed protocol test [DNS]
at INET[localhost:53] via UDP
Sep 4 20:55:55 h1318938 monit[1477]: 'mydns' trying to restart
Sep 4 20:55:55 h1318938 monit[1477]: 'mydns' stop: /etc/init.d/mydns
Sep 4 20:55:56 h1318938 monit[1477]: 'mydns' start: /etc/init.d/mydns
Sep 4 20:56:16 h1318938 monit[1477]: DNS: invalid reply code -- error
occured
Sep 4 20:56:16 h1318938 monit[1477]: 'mydns' failed protocol test [DNS]
at INET[localhost:53] via UDP
Sep 4 20:56:16 h1318938 monit[1477]: 'mydns' trying to restart
Sep 4 20:56:16 h1318938 monit[1477]: 'mydns' stop: /etc/init.d/mydns
Sep 4 20:56:17 h1318938 monit[1477]: 'mydns' start: /etc/init.d/mydns
Sep 4 20:56:37 h1318938 monit[1477]: DNS: invalid reply code -- error
occured
Sep 4 20:56:37 h1318938 monit[1477]: 'mydns' failed protocol test [DNS]
at INET[localhost:53] via UDP
Sep 4 20:56:37 h1318938 monit[1477]: 'mydns' trying to restart
Sep 4 20:56:37 h1318938 monit[1477]: 'mydns' stop: /etc/init.d/mydns
Sep 4 20:56:37 h1318938 monit[1477]: 'mydns' start: /etc/init.d/mydns
Sep 4 20:56:57 h1318938 monit[1477]: 'mydns' service timed out and will
not be checked anymore
Scott Silva schrieb:
Is the pid file actually a pid file and not just a touched flag? Does
it contain the PID of the running daemon? I think monit checks this.
Yes:
# cat /var/run/mydns.pid
24454
Regards,
Samy
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general