On Thu, 19 Sep 2019 08:24:46 +0200 Harald Dunkel <harald.dun...@aixigo.com> 
wrote:
> Would it be possible to either *keep* drbd-overview (I am using it
> for monitoring) or to add drbdtop to Debian?

While not nearly as pleasant to work with as drbd-overview, drbdadm can
produce output marginally servicable for use in crontabs, including
uninitialized drbd resources.

    set -o pipefail
    /sbin/drbdadm sh-status | /usr/bin/pee \
      '! /bin/grep ^_cstate | /bin/grep -v Connected' \
      '! /bin/grep ^_peer   | /bin/grep -v Secondary' \
      '! /bin/grep ^_role   | /bin/grep -v Primary'   \
      '! /bin/grep ^_disk   | /bin/grep -v UpToDate'  \
      '! /bin/grep ^_pdsk   | /bin/grep -v UpToDate'
    # /usr/bin/pee from the moreutils package

Reply via email to