I have installed mon 0.99.2 on a rh 7.3 box, kernel 2.4.18-3. Since I enabled nscd (2.2.5-34) I have bad problems when nameservers become non-reachable for a short time (shorter than mon check interval for them, so that I cannot solve this using mon dependencies -- this happens when the router becomes overloaded for a short time), nscd caches the negative entry for a *very*long*time*, so all monitors fail with some "unknown host" error, even if nameservers are alive and I can get the address:
<console> [root@memex mon.d]# host shannon shannon.sissa.it has address 147.122.11.123 shannon.sissa.it has address 147.122.11.124 [root@memex mon.d]# ./fping.monitor shannon shannon start time: Thu Dec 19 08:55:18 2002 end time : Thu Dec 19 08:55:18 2002 duration : 0 seconds ------------------------------------------------------------------------------ unreachable hosts ------------------------------------------------------------------------------ shannon address not found for shannon </console> from my /etc/nscd.conf: <snip> enable-cache hosts yes positive-time-to-live hosts 3600 negative-time-to-live hosts 20 suggested-size hosts 211 check-files hosts yes </snip> then, if I <console> [root@memex mon.d]# nscd --invalidate hosts </console> everything works fine again. so what's bad with my setup? Piero _______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon