Python-rrdtool try except rrdtool.error module object has no attribute error
I have this code that gives this error on Linux and will be grateful if you can help
When i run the above i get the below error
The code is intended to skip this error while updating the rrd file
Appreciate if you can help me get a solution for this
abc.xyz in python means you're looking for an attribute (object, function, variable...) xyz inside the object abc. In your case, do you know if attribute rrdtool.error exists? Even if it does it should be a valid exception class (meaning, it should be derived from Exception class)
If you don't know or don't care what exception to catch exactly, you can always use the generic except block
I have a Python script that updates an rrd file with data it pulls from a database. Here is a snippet of the Python code
for i in range(numrowed):
row = curred.fetchone()
time_stamp = row
rx_max = row
ret =... (1 Reply)
Hi Guys,
Why do we use RRDtool in MRTG?
I have implemented MRTG for some routers,
I have read some notes about RRDTOOL also but don't know what is use of these tool.
Any one one please explain me the use of RRDTOOL in their own words? (1 Reply)
Mit perlscript:
#!/usr/bin/perl
#
# copyright Per Hansen 2009
#
#
# temp.pl
use lib qw(/opt/rrdtool-1.4.1/lib/perl);
use RRDs;
# sti til rrdtool databases
my $rrd = '/var/lib/rrd';
# sti til færdige grafer (1 Reply)
I tried to compile the RRDtool on HP-UX (IA56). I have gcc-3.4.3 and perl 5.8.0
I got this:
Writing Makefile for RRDs
cd perl-shared && make
/opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv... (2 Replies)