On Fri, Dec 21, 2018 at 01:31:40PM +0100, Vincent Lefevre wrote:
> > > > monit is spamming me with spurious "monit alert --  Link up eth0"
> > > > messages every 2 minutes! I currently have no Ethernet cable, so
>                                                  ^^^^^^^^^^^^^^^^^
> > > > that "Link up eth0" is wrong, and there are no recent lines about
>            ^^^^^^^^^^^^^^^^^^^^^^^
> > > > eth0 in the journalctl output.
> > 
> > Please, show /proc/net/dev on system, which is spamming.
> 
> Inter-|   Receive                                                |  Transmit
>  face |bytes    packets errs drop fifo frame compressed multicast|bytes    
> packets errs drop fifo colls carrier compressed
>   eth0: 956331421  927630    0    0    0     0          0      5275 101028194 
>  623527    0    0    0     0       0          0
> 
> > > [CEST Jun 23 12:19:47] info     : 'eth0' link data collection succeeded
> > > [CEST Jun 23 12:19:47] error    : 'eth0' link down
> > 
> > It seems, you have an interface with cable unplugged.
> 
> Yes, as said above.

Ok, I see, thank you for patience.

Does it send you alert if you
remove "if changed link capacity then alert" line too, correct?
If so, I suspect that the currect monit's behaviour is correct and I suggest
you just adding "if failed link then unmonitor"-like line.

Reply via email to