Adding to default graphs

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

Moderators: Developers, Moderators

Post Reply
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Adding to default graphs

Post by tilli »

Hello...

I am using the discovery template to add devices, once the devices are added the following things are graphed

- Interface - Traffic (bits/sec)
- ucd/net - CPU Usage
- ucd/net - Load Average
- ucd/net - Memory Usage

I wanted to add more graphs by default for each interfaces on the device.

- Interface - Errors/Discards
- Interface - Non-Unicast Packets
- Interface - Unicast Packets


I have added these extra graph templates in the HOST template but they extra things are not graphed for each interface
as shown in the image below.

Can anyone please help me figure out how to set extra graph templates that would graph each interface automatically..

Thanks for your help....
Attachments
host-temp.gif
host-temp.gif (56.49 KiB) Viewed 2163 times
graph.gif
graph.gif (48.58 KiB) Viewed 2163 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Do the RRD's for these datasources get created ? My guess is that you are lacking permissions for whatever account is running your poller, meaning that no RRD's will be created.

Turn on graph debug and post the output.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

Here is the result from the gaph in the debug mode
Thanks for your help


RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="cranberry - Errors/Discards" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="errors/sec" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/cranberry_errors_in_21409.rrd":discards_in:AVERAGE \
DEF:b="/var/www/cacti/rra/cranberry_errors_in_21409.rrd":errors_in:AVERAGE \
DEF:c="/var/www/cacti/rra/cranberry_errors_in_21409.rrd":discards_out:AVERAGE \
DEF:d="/var/www/cacti/rra/cranberry_errors_in_21409.rrd":errors_out:AVERAGE \
LINE1:a#FFAB00FF:"Discards In" \
GPRINT:a:LAST:" Current\:%8.2lf%s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:b#F51D30FF:"Errors In" \
GPRINT:b:LAST:" Current\:%8.2lf%s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:b:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:c#C4FD3DFF:"Discards Out" \
GPRINT:c:LAST:"Current\:%8.2lf%s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:c:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:d#00694AFF:"Errors Out" \
GPRINT:d:LAST:" Current\:%8.2lf%s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:d:MAX:"Maximum\:%8.2lf%s\n"

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/cranberry_errors_in_21409.rrd': No such file or directory
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

I have followed through the debugging file and i have tried to the best of my ability to try to fix this issue.. if there was a problem with the way the RRD tool was working then i would not get any graphs... But i am getting other things being graphed on all the interfaces..


This issue here is that when the discovery plugin adds a new device it creates the graph for it, but the Unicast graph for example is not graphed for each individual interface automatically...

Can you please help... if this is unclear then i am ready to provide more explanation.

Thanks
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
RRDTool Version - RRDTool 1.2
Plugins - discovery, autom8, tools
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Time to find out where things are going wrong.

With the cacti logging level set to debug, wait for a polling cycle to finish. Then find your "cranberry" device (you need to know its HOST[##]) in the cacti.log. Track what happens when cacti tries to poll the device for the interface errors/discard info (I think it's DS[21409]). No data returned? Manually snmpwalk the OID(s) which cacti tried to use. If the snmpwalk doesn't return any data either than the device doesn't support it.
User avatar
tilli
Posts: 22
Joined: Tue Jul 14, 2009 9:16 am

Post by tilli »

when i do php -q cmd.php 365 365

i get the following output
No log handling enabled - turning on stderr logging


And when i look in the cacti.log the following out put is shown..

09/28/2009 11:51:03 AM - CMDPHP: Poller[0] Host[365] DS[21417] SNMP: v2: xxx.xx.x.xxx, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: 0.02


can you please help me understand where i am going wrong

Thanks
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
RRDTool Version - RRDTool 1.2
Plugins - discovery, autom8, tools
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Good, cacti was able to get data. Next is the rrdtool portion. Search the log for what happens to cranberry_errors_in_21409.rrd. "rrdtool create" or "rrdtool update" run? If rrdtool create is occurring every polling cycle, then you have a permission problem which is preventing the rrd file from getting created.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest