[Nagios-devel] restrict check_disk to local mounts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] restrict check_disk to local mounts

Post by Guest »

--PHhcuy+49g
Content-Type: text/plain; charset=us-ascii
Content-Description: message body and .signature
Content-Transfer-Encoding: 7bit


I don't know if the current behavior of check_disk is intentional, but I
noticed today that when I had a CD NFS mounted on a Solaris system
check_disk reported a disk-full situation. The attached patch to
configure.in tries df with the -l flag in a couple situations. That's not a
perfect solution (a locally mounted CD would still be reported as full) but
in any case it seems to me that check_disk should only be reporting the
status of local disks.

Keep or toss depending on the check_disk author's views on the matter.

--
Skip Montanaro
Got gigs? http://www.musi-cal.com/
Got spam? http://spambayes.sf.net/


--PHhcuy+49g
Content-Type: application/octet-stream
Content-Disposition: attachment;
filename="configure.in.diff"
Content-Transfer-Encoding: base64

KioqIC90bXAvc2tpcC9jb25maWd1cmUuaW4ufjF+NmZHNnBuCUZyaSBKdWwgMTEgMTE6MTQ6
NDQgMjAwMwotLS0gL3RtcC9za2lwL2NvbmZpZ3VyZS5pbjZmR0gwdAlGcmkgSnVsIDExIDEx
OjE0OjQ0IDIwMDMKKioqKioqKioqKioqKioqCioqKiA2NzQsNjg0ICoqKioKLS0tIDY3NCw2
OTQgLS0tLQogIGlmIHRlc3QgLW4gIiRERl9DT01NQU5EIgogIHRoZW4KICAJQUNfREVGSU5F
X1VOUVVPVEVEKERGX0NPTU1BTkQsIiRERl9DT01NQU5EIixbcGF0aCBhbmQgYXJncyBmb3Ig
ZGYgY29tbWFuZF0pCisgZWxpZiBkZiAtUGsgLWwgMj4vZGV2L251bGwgfCBlZ3JlcCAtaSBb
Il4oL2Rldi98W2EtekEtWl06KVthLXowLTkvXFxdKyArWzAtOV0rICtbMC05XSsgK1swLTld
KyArWzAtOV0rJSArL1thLXowLTkvXFxdKiJdID4vZGV2L251bGwKKyB0aGVuCisgCUFDX1BB
VEhfUFJPRyhQ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siXi9kZXYvW2EtejAtOS9dKyArWzAtOV0rICtbMC05XSsgK1swLTld
KyArWzAtOV0rJSArL1thLXowLTkvXSoiXSA+L2Rldi9udWxsCiAgdGhlbgogIAlBQ19QQVRI
X1BST0coUEFUSF9UT19ERixkZikK
--PHhcuy+49g--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked