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.
a new Mongodb monitor script
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Tue May 21, 2013 10:15 pm
a new Mongodb monitor script
- 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
Re: a new Mongodb monitor script
Hi
I tried your script, however I got this error on debug mode on
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
Who is online
Users browsing this forum: No registered users and 8 guests