Cacti 1.2.1 not generating rrd file

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
foxprogrammer
Posts: 6
Joined: Mon Jan 21, 2019 3:47 am

Cacti 1.2.1 not generating rrd file

#1 Post by foxprogrammer » Thu Jan 24, 2019 7:13 am

Dear All

I am new in the Cacti, I tried to search but not able to find the solution. I am not able to generate the graph.
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-30' \
--pango-markup \
--title='Local Linux Machine - Disk Space - /dev/sda1' \
--vertical-label='bytes' \
--slope-mode \
--base=1024 \
--height=200 \
--width=700 \
--tabwidth '40' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti®' \
DEF:a='/opt/cacti/rra/1/24.rrd':'hdd_used':AVERAGE \
DEF:b='/opt/cacti/rra/1/24.rrd':'hdd_free':AVERAGE \
DEF:c='/opt/cacti/rra/1/24.rrd':'hdd_used':MAX \
DEF:d='/opt/cacti/rra/1/24.rrd':'hdd_free':MAX \
CDEF:cdefa='a,1024,*' \
CDEF:cdefe='b,1024,*' \
CDEF:cdefi='TIME,1548331652,GT,a,a,UN,0,a,IF,IF,TIME,1548331652,GT,b,b,UN,0,b,IF,IF,+,1024,*' \
AREA:cdefa#F51D307F:'Used ' \
GPRINT:cdefa:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
AREA:cdefe#002A977F:'Available':STACK \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n' \
LINE2:cdefi#000000FF:'Total ' \
GPRINT:cdefi:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefi:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefi:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:c#F51D30FF: \
LINE1.00:d#002A97FF::STACK
RRDtool Says:
ERROR: opening '/opt/cacti/rra/1/24.rrd': No such file or directory
Attachments
cacti-error1.png
cacti-error1.png (69.65 KiB) Viewed 324 times

User avatar
camerabob
Cacti User
Posts: 276
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Cacti 1.2.1 not generating rrd file

#2 Post by camerabob » Thu Jan 24, 2019 7:51 am

foxprogrammer wrote: .
.
.
ERROR: opening '/opt/cacti/rra/1/24.rrd': No such file or directory
That last line says it all. Check the permissions on the /opt/cacti/rra/1 folder and see if the cacti user is able to write there.
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.4 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

foxprogrammer
Posts: 6
Joined: Mon Jan 21, 2019 3:47 am

Re: Cacti 1.2.1 not generating rrd file

#3 Post by foxprogrammer » Thu Jan 24, 2019 8:59 am

Thanks for your quick response.
I have access on that folder I can create file on the command line. The problem it is not generating rrd file.

foxprogrammer
Posts: 6
Joined: Mon Jan 21, 2019 3:47 am

Re: Cacti 1.2.1 not generating rrd file

#4 Post by foxprogrammer » Thu Jan 24, 2019 9:02 am

Please check my error log.
Attachments
cacti-error2.png
cacti-error2.png (106.92 KiB) Viewed 319 times

netniV
Cacti Guru User
Posts: 2685
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti 1.2.1 not generating rrd file

#5 Post by netniV » Thu Jan 24, 2019 2:25 pm

That would suggest that no script has been defined for the template in question. Try running the Verbose Query option of the data query in quesiton to see what data is being parse/returned and post that here.

Post Reply