Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 20, 2019 5:43 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Cacti 1.2.1 not generating rrd file
PostPosted: Thu Jan 24, 2019 7:13 am 
Offline

Joined: Mon Jan 21, 2019 3:47 am
Posts: 6
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 120 times ]
Top
 Profile  
 
 Post subject: Re: Cacti 1.2.1 not generating rrd file
PostPosted: Thu Jan 24, 2019 7:51 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 236
Location: Long Island, New York, USA
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.e17
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.45-17.e17.remi
Maint @ 1.2
Monitor @ 2.3.4
Thold @ 1.0.4


Top
 Profile  
 
 Post subject: Re: Cacti 1.2.1 not generating rrd file
PostPosted: Thu Jan 24, 2019 8:59 am 
Offline

Joined: Mon Jan 21, 2019 3:47 am
Posts: 6
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.


Top
 Profile  
 
 Post subject: Re: Cacti 1.2.1 not generating rrd file
PostPosted: Thu Jan 24, 2019 9:02 am 
Offline

Joined: Mon Jan 21, 2019 3:47 am
Posts: 6
Please check my error log.


Attachments:
cacti-error2.png
cacti-error2.png [ 106.92 KiB | Viewed 115 times ]
Top
 Profile  
 
 Post subject: Re: Cacti 1.2.1 not generating rrd file
PostPosted: Thu Jan 24, 2019 2:25 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2474
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group