rrd not generating graphs [Solved]

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

Moderators: Developers, Moderators

Post Reply
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

rrd not generating graphs [Solved]

Post by Marcelo »

Code: Select all

RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="FreeBSD - Disk Space - /dev/ad2s1d" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
DEF:a="/usr/local/share/cacti/rra/freebsd_hdd_free_21.rrd":hdd_used:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/freebsd_hdd_free_21.rrd":hdd_free:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=TIME,1146606162,GT,a,a,UN,0,a,IF,IF,TIME,1146606162,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:cdefa#F51D30:"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#002A97:"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#000000:"Total"  \
GPRINT:cdefi:LAST:"    Current\:%8.2lf %s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

ERROR: opening '/usr/local/share/cacti/rra/freebsd_hdd_free_21.rrd': No such file or directory
For each graph...same error...any clue?



Edit: Problem solved.
Last edited by Marcelo on Tue May 09, 2006 10:31 am, edited 2 times in total.
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

Update info:

Code: Select all

Data Source Debug

/usr/local/bin/rrdtool create \
/usr/local/share/cacti/rra/freebsd_hdd_free_23.rrd \
--step 300  \
DS:hdd_free:GAUGE:600:0:U \
DS:hdd_used:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
If i run manually this command (as cactiuser)...the graph appear...but no update later :(


EDIT: add comment about user
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

more info:

Code: Select all

05/07/2006 01:00:04 PM - SYSTEM STATS: Time:3.0350 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:12 RRDsProcessed:0



Edit: Problem with poller time solved.
Last edited by Marcelo on Sun May 07, 2006 11:02 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please check your crontabs for multiple occurences of the poller
- /etc/crontab
- /etc/cron.d/cacti
- crontabs of user root and cactiuser
THERE MUST BE ONLY ONE CRONTAB ENTRY

The, please check, that the user running the poller has write access to the ./rra directory
Reinhard
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

lvm wrote:Please check your crontabs for multiple occurences of the poller
- /etc/crontab
- /etc/cron.d/cacti
- crontabs of user root and cactiuser
THERE MUST BE ONLY ONE CRONTAB ENTRY
OK...sorry for the delay.Thx for the answer:

- Double check, only one entry in crontab
The, please check, that the user running the poller has write access to the ./rra directory
Reinhard
yap:

drwxr-xr-x 2 cactinoc cactinoc 512B Dec 31 1969 log
drwxr-xr-x 2 cactinoc cactinoc 512B May 7 12:50 rra

log and rra...same permissions, log update ok, but no graph yet.



The details about version's and variables:

Apache/2.0.55 (FreeBSD) PHP/5.1.2
cacti: 0.8.6h
cactid: 0.8.6f
MySQL: 5

Any other clue?

Thanks in advance.



PS: Sorry for my english, i'm speak spanish.
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

Aditional data:

When i check the device page on cacti admin, my test device, the status appears down (SNMP ERROR)...could be this the problem? I'm not interested in activate snmpd for my local device...is stricted necessary this option?
BTW, the data queries for the graph not require snmp:

1) Linux - Memory Usage


Edit: Info about query.
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

OK....adding a host with SNMP enabled...the rrd's appear.
it's correct this?
jmadrid2
Posts: 43
Joined: Thu May 04, 2006 9:32 am
Location: Bayonne, NJ

Post by jmadrid2 »

You dont necessarily need to use snmpd. You can also use netsaint statd so you dont have to enable SNMP.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

jmadrid2 wrote:You dont necessarily need to use snmpd. You can also use netsaint statd so you dont have to enable SNMP.
Correct. And there are more methods. Not using SNMP: please clear the community string of the device and it will not be tested for SNMP availability
Reinhard
Marcelo
Posts: 48
Joined: Tue May 02, 2006 4:46 pm

Post by Marcelo »

Ok, the tip of clear community works like a charm.
Thx a lot!
This problem solved.


PS: This tip is on the manual?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest