Never noticed it didn't work for loopback interface.
Will dormant or carrier on the same path help?

It's the only way I know how, without using ip or ifconfig commands.

You can always develop a status check:

https://mmonit.com/monit/documentation/monit.html#PROGRAM-STATUS-TESTING

Just trying to help!
Em 06/12/2014 13:20, "Hermann" <[email protected]> escreveu:

> Hi,
>
> could you be a little more verbose?
>
> I do
>
>         # cat /sys/class/net/lo/operstate
>
> and get the output
>
>         unknown
>
> Ifconfig shows that lo is up.
>
> The OS is Debian Wheezy, if that matters.
>
> Hermann
>
>
> Am 06.12.2014 um 14:12 schrieb Rui Lapa:
> > Hello,
> >     Check /sys/class/net/lo/operstate for up via monit exec.
> >
> > My 1 cent,
> >     Rui Lapa
> >
> > Em 06/12/2014 12:14, "Hermann" <[email protected]
> > <mailto:[email protected]>> escreveu:
> >
> >     Hello,
> >
> >     I would like to monitor wether the "lo" network-interface is up and
> if
> >     not, bring it up.
> >
> >     How can this be done with monit?
> >
> >     Thank you in advance
> >
> >     Hermann
> >
> >
> >     --
> >     To unsubscribe:
> >     https://lists.nongnu.org/mailman/listinfo/monit-general
> >
> >
> >
> > --
> > To unsubscribe:
> > https://lists.nongnu.org/mailman/listinfo/monit-general
> >
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to