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....
Adding to default graphs
Moderators: Developers, Moderators
Adding to default graphs
- Attachments
-
- host-temp.gif (56.49 KiB) Viewed 2163 times
-
- graph.gif (48.58 KiB) Viewed 2163 times
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
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.
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
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" \
GPRINTLAST:" Current\:%8.2lf%s" \
GPRINTAVERAGE:"Average\:%8.2lf%s" \
GPRINTMAX:"Maximum\:%8.2lf%s\n" \
LINE1:b#F51D30FF:"Errors In" \
GPRINTLAST:" Current\:%8.2lf%s" \
GPRINTAVERAGE:"Average\:%8.2lf%s" \
GPRINTMAX:"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
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" \
GPRINTLAST:" Current\:%8.2lf%s" \
GPRINTAVERAGE:"Average\:%8.2lf%s" \
GPRINTMAX:"Maximum\:%8.2lf%s\n" \
LINE1:b#F51D30FF:"Errors In" \
GPRINTLAST:" Current\:%8.2lf%s" \
GPRINTAVERAGE:"Average\:%8.2lf%s" \
GPRINTMAX:"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
Read through http://docs.cacti.net/manual:087:4_help ... #debugging yet ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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
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
Plugin Architecture - 2.4
RRDTool Version - RRDTool 1.2
Plugins - discovery, autom8, tools
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.
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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
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
Plugin Architecture - 2.4
RRDTool Version - RRDTool 1.2
Plugins - discovery, autom8, tools
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest