[rrd-users] python rrdupdate

Shabbir Ahmed shabbir1282 at gmail.com
Thu Apr 4 22:54:53 CEST 2013

hi, i collect data from inoctets and outoctets via snmp and then want to
update the rrd file but i get the following error,

I get the foloowing error:

cannot concatenate 'str' and 'tuple' objects


resUp = sess.getbulk(0,totalint, upBytes)
resDown = sess.getbulk(0,totalint, downBytes)
rrd_val = resUp+resDown

ret = rrdtool.update('/tmp/speed.rrd','N:' + rrd_val)
        if ret:
          print rrdtool.error()

kiindly help,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130405/73a5d62d/attachment.htm 

More information about the rrd-users mailing list