a new Mongodb monitor script

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
mousehouse
Posts: 1
Joined: Tue May 21, 2013 10:15 pm

a new Mongodb monitor script

Post by mousehouse »

Hi, all
I am using centos 6.3 and cacti 0.8.8a, and work a script and template out for monitor my MongoDB.
It is a solution other than Pernoca's, it do not use ssh, now I share it here.
Any question and problem can follow this thread.
Attachments
get_mongo_server_status2.sh
(6.56 KiB) Downloaded 592 times
cacti_host_template_mongodb_server_-_ht.xml
(139.02 KiB) Downloaded 426 times
VanDaMe
Posts: 7
Joined: Wed Aug 27, 2008 10:35 pm

Re: a new Mongodb monitor script

Post by VanDaMe »

Hi

I tried your script, however I got this error on debug mode on

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='mongodb servers - MongoDB Server Cursors - GT' \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
LINE1:#FF6044FF:'total open'  \
GPRINT::LAST:'     Current\:%8.2lf %s'  \
GPRINT::AVERAGE:'Average\:%8.2lf %s'  \
GPRINT::MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:#74C366FF:'client cursors '  \
GPRINT::LAST:'Current\:%8.2lf %s'  \
GPRINT::AVERAGE:'Average\:%8.2lf %s'  \
GPRINT::MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:#F9FD5FFF:'timedOut'  \
GPRINT::LAST:'       Current\:%8.2lf %s'  \
GPRINT::AVERAGE:'Average\:%8.2lf %s'  \
GPRINT::MAX:'Maximum\:%8.2lf %s\n' 
RRDTool Says:
ERROR: parameter '#FF6044FF' does not represent a number in line LINE1:#FF6044FF:total open
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests