Page 1 of 1

BTMon & RRDTool - rrdtool module could not be imported

Posted: Thu Nov 16, 2017 11:30 am
by haveaday
Hello,

I'm a neophyte here. Trying to get btmon working with rrd. I'm using a basic LAMP stack with perl, python, etc in place. I've installed RRDTool on the image and can confirm I'm able to launch rrdtool. When I try and run btmon with my config for RRDTool in place I get the following:

Code: Select all

$ ./btmon.py -c config.cfg
2017/11/16 16:27:47 btmon: 3.1.1
2017/11/16 16:27:47 python: 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2]
2017/11/16 16:27:47 platform: linux2
2017/11/16 16:27:47 device type: gem
2017/11/16 16:27:47 device list: ['']
2017/11/16 16:27:47 packet format: gem48ptbin
2017/11/16 16:27:47 schema: counters
2017/11/16 16:27:47 SOCKET: timeout: 60
2017/11/16 16:27:47 SOCKET: server host: 172.16.1.129
2017/11/16 16:27:47 SOCKET: server port: 8008
RRD Error: rrdtool module could not be imported.
Any suggestions?
Thanks
Ben

Re: BTMon & RRDTool - rrdtool module could not be imported

Posted: Thu Nov 16, 2017 12:49 pm
by mwall
you need to install the python module for rrdtool

for example, on debian systems do:

sudo apt-get install python-rrdtool

on redhat systems do:

sudo yum install rrdtool-python

Re: BTMon & RRDTool - rrdtool module could not be imported

Posted: Fri Nov 17, 2017 4:33 pm
by haveaday
Thanks, that was the problem.