Cacti- add new device graph doesnt work

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
charan2016
Posts: 8
Joined: Fri Feb 26, 2016 3:48 am

Cacti- add new device graph doesnt work

Post by charan2016 »

Hello all,
I am new to cacti previously managed by someone else. the issue i have is when i add new device the graph is not recording. But all the old devices are recording perfectly. i tried to activate debug mode and see the result below:
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='OrionCom - KANNAN Charan - Traffic - eth0/2' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/lib/cacti/rra/orioncom_-_kannan_charan_traffic_in_1560.rrd':'traffic_in':AVERAGE \
DEF:b='/var/lib/cacti/rra/orioncom_-_kannan_charan_traffic_in_1560.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdefe#002A97FF:'Outbound' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n'

RRDTool Says:

OK


Could someone please help me to find a solution. i tried to google but i end up not finding a solution.

THanks in advance.
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Cacti- add new device graph doesnt work

Post by micke2k »

What is the status of the host under the device screen? Is it up?

What does cacti.log say?
charan2016
Posts: 8
Joined: Fri Feb 26, 2016 3:48 am

Re: Cacti- add new device graph doesnt work

Post by charan2016 »

hello micke2k,

the status is showing as UP.

where do i find the cacti.log..???

if you are refering to the path. it shows all files found. hav
Cacti path
Cacti path
Cacti_path.PNG (83.07 KiB) Viewed 1183 times
e attached this here.
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Cacti- add new device graph doesnt work

Post by micke2k »

System utilities -> show cacti log.

Set logging to high under settings.

Can you show a printscreen of the graph?
charan2016
Posts: 8
Joined: Fri Feb 26, 2016 3:48 am

Re: Cacti- add new device graph doesnt work

Post by charan2016 »

hello micke2k,

Please see the attachment which you wanted.

THanks
Attachments
Graph
Graph
Graph.PNG (90.61 KiB) Viewed 1171 times
Few information on the log
Few information on the log
Cacti-log.PNG (68.14 KiB) Viewed 1171 times
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Cacti- add new device graph doesnt work

Post by micke2k »

Copy the full "/usr/bin/rrdtool update" line and run in from cli. what happens?

Check everything in here aswell: http://forums.cacti.net/about15136.html
charan2016
Posts: 8
Joined: Fri Feb 26, 2016 3:48 am

Re: Cacti- add new device graph doesnt work

Post by charan2016 »

hello mike,

Sorry for the late reply. it still doesnt work. when i try to update the rrdtool :

RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Jan 2 2014 19:43:03

Usage: rrdtool [options] command command_options
* update - update an RRD

rrdtool update filename
[--template|-t ds-name:ds-name:...]
[--daemon <address>]
time|N:value[:value...]

at-time@value[:value...]

[ time:value[:value...] ..]

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages


And also when i run the debug now it shows differently:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='OrionCom - KANNAN Charan - Traffic - eth0/2' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/lib/cacti/rra/orioncom_-_kannan_charan_traffic_in_1580.rrd':'traffic_in':AVERAGE \
DEF:b='/var/lib/cacti/rra/orioncom_-_kannan_charan_traffic_in_1580.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n' \
LINE1:cdefe#002A97FF:'Outbound' \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s\n'

RRDTool Says:

ERROR: opening '/var/lib/cacti/rra/orioncom_-_kannan_charan_traffic_in_1580.rrd': No such file or directory
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Cacti- add new device graph doesnt work

Post by micke2k »

is there any files in the folder? /var/lib/cacti/rra/

Only old ones i guess?

Whats the permissions on the folder? Running SElinux on centos?
charan2016
Posts: 8
Joined: Fri Feb 26, 2016 3:48 am

Re: Cacti- add new device graph doesnt work

Post by charan2016 »

Hello Mike,

the permission on the folder rra is full access.

i am using ubuntu 14.04.
Attachments
Permission.PNG
Permission.PNG (82.26 KiB) Viewed 1080 times
User avatar
micke2k
Cacti User
Posts: 261
Joined: Wed Feb 03, 2016 3:38 pm

Re: Cacti- add new device graph doesnt work

Post by micke2k »

charan2016 wrote:Hello Mike,

the permission on the folder rra is full access.

i am using ubuntu 14.04.
Is the file created?

Look in cacti.log after a debug run for "rrtool create graphname". Try to run that command.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests