Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Thanks, I will apply it. (I forgot to post to the ml before, so I am reposting this again) Best regards, Umberto Umberto Nicoletti | We are Pentium of Borg. +390415701366 unicoletti at prometeo.it | Division is futile. Prometeo S.R.L. The Software Experience | You will be approximated. Quoting Maciej Bogucki <maciej.bogucki at artegence.com>: > Cool, it works :) I like it! > > I have patch for it. You should check if /proc/drbd file exist, because > Your script fail if there is no drbd module loaded. > > --- chkdrbd.original 2005-07-05 15:13:15.761412973 +0200 > +++ chkdrbd 2005-07-05 15:12:55.505865889 +0200 > @@ -20,6 +20,12 @@ > exit 3 > fi > > +if [ ! -f /proc/drbd ] > +then > + echo "CRITICAL: /proc/drbd does not exist" > + exit 1 > +fi > + > STATUS=`grep "^ [$DEVICE]" /proc/drbd` > #echo $STATUS > > > > Umberto Nicoletti wrote: >> here: >> >> http://www.unicolet.org/linux/drbdnagios.html >> >> Regards, >> Umberto >> >> Umberto Nicoletti | We are Pentium of Borg. >> +390415701366 unicoletti at prometeo.it | Division is futile. >> Prometeo S.R.L. The Software Experience | You will be approximated. >> >> >> Quoting Maciej Bogucki <maciej.bogucki at artegence.com>: >> >>> Hello, >>> >>> Does anybody have monitoring script of drbd status for nagios? >>> >>> Best Regards >>> Maciej Bogucki >>> >>> _______________________________________________ >>> drbd-user mailing list >>> drbd-user at lists.linbit.com >>> http://lists.linbit.com/mailman/listinfo/drbd-user >>> >> >> >> >> >> > > > -- > PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9F74A406 > Key fingerprint = 6E44 9A4A 8743 9936 1E92 A0B4 F2A8 87F7 9F74 A406 > >