Message from discussion
Monitoring quotaFiles via Nagios
Received: by 10.50.0.148 with SMTP id 20mr127487ige.3.1352991930388;
Thu, 15 Nov 2012 07:05:30 -0800 (PST)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.50.36.133 with SMTP id q5ls62830igj.29.canary; Thu, 15 Nov
2012 07:05:08 -0800 (PST)
Received: by 10.50.181.233 with SMTP id dz9mr596172igc.1.1352991908474;
Thu, 15 Nov 2012 07:05:08 -0800 (PST)
Received: by 10.50.181.233 with SMTP id dz9mr596169igc.1.1352991908452;
Thu, 15 Nov 2012 07:05:08 -0800 (PST)
Return-Path: <fidel...@phillipkoebbe.com>
Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52])
by gmr-mx.google.com with ESMTPS id wu4si590486igb.3.2012.11.15.07.05.08
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 15 Nov 2012 07:05:08 -0800 (PST)
Received-SPF: pass (google.com: domain of fidel...@phillipkoebbe.com designates 209.85.219.52 as permitted sender) client-ip=209.85.219.52;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of fidel...@phillipkoebbe.com designates 209.85.219.52 as permitted sender) smtp.mail=fidel...@phillipkoebbe.com; dkim=pass header...@phillipkoebbe.com
Received: by mail-oa0-f52.google.com with SMTP id o6so2335008oag.39
for <mongodb-user@googlegroups.com>; Thu, 15 Nov 2012 07:05:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=phillipkoebbe.com; s=google;
h=from:content-type:subject:date:message-id:to:mime-version:x-mailer;
bh=0EDfkKRoqw67QCc4dCmVFq90gqPJPwmOYcmWT8YWAh4=;
b=cXTDtTT95x21fV8tbTFnaG6xFAjjxnGLZzrAh6akE+kbNBqTMuixWtyTwSjE0V1wth
1FmU54qFrHX1tGCOoWNKYgMvS1sB2j9aOYNHh/I/KcFyrGEpGWiKJaX7WMZFHySqorS8
t52UhVZ0CRv58DjAxvNCrKAaFJU+hOdFVomPU=
d=google.com; s=20120113;
h=from:content-type:subject:date:message-id:to:mime-version:x-mailer
:x-gm-message-state;
bh=0EDfkKRoqw67QCc4dCmVFq90gqPJPwmOYcmWT8YWAh4=;
b=psQF6DrqRlePAA0uEN9NoUR6CNPWJKISiWLlJqDdnIdIlvt+F0gwTSBHwSliRCWmWE
a97sbFfy34VOmtqarcPvkozc0u93kSBh3G0+0Q4p6uK4RNCtMeAW52TWlYx7YNFYcjUn
qnfLjALytsOOfbxLV6NZrj5Btw6Iyzq5//uhvoTLVkrjvDVH/wWSwZTXuD5DIoEUU/Ll
0SdkrdWhJT04BtheCw7FJ4WpG6Y0RtZVx5fRF/SasIYKvUmALutGIerPayt54jhKISXf
snMBgv0iq6ibSn5jsokGKSLJzo92nSjs0x71ppEix6y6NqycleD0Sk+taolMrA8kuiaZ
W7TA==
Received: by 10.182.69.73 with SMTP id c9mr1065583obu.33.1352991904661;
Thu, 15 Nov 2012 07:05:04 -0800 (PST)
Return-Path: <fidel...@phillipkoebbe.com>
Received: from [192.168.254.204] (173-85-70-2.dr03.crvl.il.frontiernet.net. [173.85.70.2])
by mx.google.com with ESMTPS id el2sm8313257obc.9.2012.11.15.07.05.03
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 15 Nov 2012 07:05:04 -0800 (PST)
From: Phillip Koebbe <fidel...@phillipkoebbe.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_513B1018-F152-4C6D-8689-218F9D25C6AC"
Subject: Monitoring quotaFiles via Nagios
Date: Thu, 15 Nov 2012 09:05:02 -0600
Message-Id: <BD15D1B6-8AA1-493B-BDE9-383337A1E...@phillipkoebbe.com>
To: mongodb-user@googlegroups.com
Mime-Version: 1.0 (Apple Message framework v1283)
X-Mailer: Apple Mail (2.1283)
X-Gm-Message-State: ALoCoQm8b49MIl9FKiIMhKdHeGicYQnia+MiNdyHA7leL1aJVCdGlNjAclNffFq47hmGQSphE14N
--Apple-Mail=_513B1018-F152-4C6D-8689-218F9D25C6AC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
We want to monitor quota usage via Nagios. In the shell, I can run =
db.runCommand({getCmdLineOpts: 1}) and find the number of quotaFiles and =
then use listFiles(dbPath) to see how many files there are. I'm trying =
to mimic this activity via the check_mongodb.py Nagios plugin which uses =
PyMongo to access the API. While I can get the information from =
getCmdLineOpts, I can't seem to find a way to get the list of files. Is =
there a way to get the number of files currently used by a database that =
is accessible via the API. Note that I'm not asking about how to do this =
in PyMongo, but whether something like this is even available via the =
API. If it is, I'll figure it out.
Thanks.
-- Phillip
--Apple-Mail=_513B1018-F152-4C6D-8689-218F9D25C6AC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>We want to monitor quota usage via Nagios. In the shell, I can =
run db.runCommand({getCmdLineOpts: 1}) and find the number of quotaFiles =
and then use listFiles(dbPath) to see how many files there are. I'm =
trying to mimic this activity via the check_mongodb.py Nagios plugin =
which uses PyMongo to access the API. While I can get the information =
from getCmdLineOpts, I can't seem to find a way to get the list of =
files. Is there a way to get the number of files currently used by a =
database that is accessible via the API. Note that I'm not asking about =
how to do this in PyMongo, but whether something like this is even =
available via the API. If it is, I'll figure it =
out.</div><div><br></div><div apple-content-edited=3D"true"><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: =
normal; font-weight: normal; letter-spacing: normal; line-height: =
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; =
"><div>Thanks.</div><div><br class=3D"Apple-interchange-newline">-- =
Phillip</div><div><br></div></span><br =
class=3D"Apple-interchange-newline">
</div>
<br></body></html>=
--Apple-Mail=_513B1018-F152-4C6D-8689-218F9D25C6AC--