THIS ARTICLE IS DEPRECATED! RRDTOOL NO LONGER APPLIES TO CLUSTERCONTROL.
This article describes how to resolve problems with graphs:
- Verify that 'rrdtool' is installed by running from a terminal on the ClusterControl server:
which rrdtool
Expected result:
/usr/bin/rrdtool - Check that you have a /etc/cmon_rrd.cnf file, and that it contains (please note that password, hostname, port, imagedir, may differ on your platform
##cmon rrd config file
##port of mysql server holding cmon database
mysql_port=3306
##hostname/ip of mysql server holding cmon database
mysql_hostname=10.176.131.76
##password for 'cmon' user on the 'mysql_hostname'
mysql_password=cmon
mysql_bindir=/usr/local//mysql/bin/
### imagedir for ubuntu/debian:
imagedir=/var/www/cmon/graphs/
### imagedir for redhat/centos:
#imagedir=/var/www/html/cmon/graphs/
rrdtool=/usr/bin/rrdtool
rrd_datadir=/var/lib/cmon/ - Run in turn (the tools must be installed in /usr/bin/ ):
/usr/bin/cmon_create_rrd
/usr/bin/cmon_update_rrd
/usr/bin/cmon_create_graphs 1d mini
All three command should return without errors, if you can't determine what the error is, please file a Support request. - Verify that you have cron running:
ps -ef |grep cron
If not, install 'cron', google how to do this.
Should print out something like:
root 641 1 0 2012 ? 00:01:25 cron - Verify you have /etc/cron.d/cmon and it contains:
#
# cron-jobs for cmon
#
CMON_BINDIR=/usr/bin/
MAILTO=root
*/1 * * * * root test -x $CMON_BINDIR/cmon_rrd_all && $CMON_BINDIR/cmon_rrd_all $CMON_BINDIR > /dev/null 2>&1
*/10 * * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1d" "mini"> /dev/null 2>&1
*/10 * * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1h" "mini" > /dev/null 2>&1
*/10 * * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1h" "large" > /dev/null 2>&1
*/10 * * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1d" "large" > /dev/null 2>&1
* 3 * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1w" "mini" > /dev/null 2>&1
30 3 * * * root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1w" "large"> /dev/null 2>&1
* 4 * * 0 root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1m" "mini" > /dev/null 2>&1
30 4 * * 0 root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1m" "large"> /dev/null 2>&1
* 5 * * 0 root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1y" "mini" > /dev/null 2>&
30 5 * * 0 root test -x $CMON_BINDIR/cmon_create_graphs && bash $CMON_BINDIR/cmon_create_graphs "1y" "large"> /dev/null 2>&1
Comments
0 comments
Please sign in to leave a comment.