Ethernet Stats(RFC1643) - XML

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

mait
Posts: 16
Joined: Wed Feb 23, 2005 2:14 am

Post by mait »

hey,

correct me if i'm wrong, but 'G' should be Giga or billions.
which would mean that your device is seeing 4280000000 of these errors on you interface ...

try to change the data type to counter on all of those data sources
(console -> data templates -> SNMP(INDEXED) - dot3Stats(RFC1643) -> data source type: from 'gauge' to 'counter'

Mait
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

G is an abbrevation for Giga.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
I import those xml files and rfc1643.xml.
Tthen I add as associated data query and run these query and I get:
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/www/htdocs/cacti/resource/snmp_queries/rfc1643.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Located input field 'dot3StatsIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.7.2.1.1'
+ Found item [dot3StatsIndex='1'] index: 1 [from value]
+ Found item [dot3StatsIndex='2'] index: 2 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='FastEthernet1/0/0'] index: 1 [from value]
+ Found item [ifDescr='FastEthernet1/0/1'] index: 2 [from value]
+ Found item [ifDescr='Serial1/1/0'] index: 3 [from value]
+ Found item [ifDescr='Serial1/1/1'] index: 4 [from value]
+ Found item [ifDescr='Serial1/1/2'] index: 5 [from value]
+ Found item [ifDescr='Serial1/1/3'] index: 6 [from value]
+ Found item [ifDescr='Serial1/1/4'] index: 7 [from value]
+ Found item [ifDescr='Serial1/1/5'] index: 8 [from value]
+ Found item [ifDescr='Serial1/1/6'] index: 9 [from value]
+ Found item [ifDescr='Serial1/1/7'] index: 10 [from value]
+ Found item [ifDescr='ATM4/0/0'] index: 11 [from value]
+ Found item [ifDescr='Serial4/1/0'] index: 12 [from value]
+ Found item [ifDescr='Serial4/1/1'] index: 13 [from value]
+ Found item [ifDescr='Serial4/1/2'] index: 14 [from value]
+ Found item [ifDescr='Serial4/1/3'] index: 15 [from value]
+ Found item [ifDescr='Serial4/1/4'] index: 16 [from value]
+ Found item [ifDescr='Serial4/1/5'] index: 17 [from value]
+ Found item [ifDescr='Serial4/1/6'] index: 18 [from value]
+ Found item [ifDescr='Serial4/1/7'] index: 19 [from value]
+ Found item [ifDescr='Serial5/1/0'] index: 20 [from value]
+ Found item [ifDescr='Serial5/1/1'] index: 21 [from value]
+ Found item [ifDescr='Serial5/1/2'] index: 22 [from value]
+ Found item [ifDescr='Serial5/1/3'] index: 23 [from value]
+ Found item [ifDescr='ATM4/0/0-atm layer'] index: 24 [from value]
+ Found item [ifDescr='ATM4/0/0.0-atm subif'] index: 25 [from value]
+ Found item [ifDescr='ATM4/0/0-aal5 layer'] index: 26 [from value]
+ Found item [ifDescr='ATM4/0/0.0-aal5 layer'] index: 27 [from value]
+ Found item [ifDescr='Null0'] index: 28 [from value]
+ Found item [ifDescr='Loopback0'] index: 29 [from value]
+ Found item [ifDescr='Multilink1'] index: 30 [from value]
+ Found item [ifDescr='Multilink2'] index: 31 [from value]
+ Found item [ifDescr='Multilink3'] index: 32 [from value]
+ Found item [ifDescr='FastEthernet1/0/0.1'] index: 33 [from value]
+ Found item [ifDescr='FastEthernet1/0/0.4'] index: 34 [from value]
+ Found item [ifDescr='FastEthernet1/0/0.8'] index: 35 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='ethernetCsmacd(6)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Found item [ifType='ppp(23)'] index: 3 [from value]
+ Found item [ifType='ppp(23)'] index: 4 [from value]
+ Found item [ifType='ppp(23)'] index: 5 [from value]
+ Found item [ifType='ppp(23)'] index: 6 [from value]
+ Found item [ifType='ppp(23)'] index: 7 [from value]
+ Found item [ifType='ppp(23)'] index: 8 [from value]
+ Found item [ifType='ppp(23)'] index: 9 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 10 [from value]
+ Found item [ifType='ds3(30)'] index: 11 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 12 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 13 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 14 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 15 [from value]
+ Found item [ifType='ppp(23)'] index: 16 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 17 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 18 [from value]
+ Found item [ifType='propPointToPointSerial(22)'] index: 19 [from value]
+ Found item [ifType='ppp(23)'] index: 20 [from value]
+ Found item [ifType='ppp(23)'] index: 21 [from value]
+ Found item [ifType='ppp(23)'] index: 22 [from value]
+ Found item [ifType='ppp(23)'] index: 23 [from value]
+ Found item [ifType='atm(37)'] index: 24 [from value]
+ Found item [ifType='atmSubInterface(134)'] index: 25 [from value]
+ Found item [ifType='aal5(49)'] index: 26 [from value]
+ Found item [ifType='aal5(49)'] index: 27 [from value]
+ Found item [ifType='other(1)'] index: 28 [from value]
+ Found item [ifType='softwareLoopback(24)'] index: 29 [from value]
+ Found item [ifType='ppp(23)'] index: 30 [from value]
+ Found item [ifType='ppp(23)'] index: 31 [from value]
+ Found item [ifType='ppp(23)'] index: 32 [from value]
+ Found item [ifType='l2vlan(135)'] index: 33 [from value]
+ Found item [ifType='l2vlan(135)'] index: 34 [from value]
+ Found item [ifType='l2vlan(135)'] index: 35 [from value]
After that I select my interfaces and try to draw graph.
But debug graph says that:
RRDTool Says:

ERROR: opening '/www/htdocs/cacti/rra/ir_1_alignmenterrors_10212.rrd': No such file or directory
What ,s the problem?
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

Seems like permissions on fs. Try enable debug from the webGUI and go thrugh it.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I use 0.8.5a
And, rfc1643.xml has same permission like other xml files like this:
[root@localhost snmp_queries]# ls -la
total 36
drwxr-xr-x 2 tceydeli users 4096 May 12 11:24 .
drwxr-xr-x 4 tceydeli users 4096 Mar 31 2004 ..
-rw-r--r-- 1 tceydeli users 1330 Mar 31 2004 host_disk.xml
-rw-r--r-- 1 tceydeli users 3914 May 5 08:02 interface.xml
-rw-r--r-- 1 tceydeli users 3049 Mar 31 2004 kbridge.xml
-rw-r--r-- 1 tceydeli users 1379 Mar 31 2004 net-snmp_disk.xml
-rw-r--r-- 1 tceydeli users 1577 Mar 31 2004 netware_cpu.xml
-rw-r--r-- 1 tceydeli users 1944 Mar 31 2004 netware_disk.xml
-rw-r--r-- 1 tceydeli users 3529 May 12 11:24 rfc1643.xml
Additionally, you can see below my graph and data source debug:
Graph debug:
ERROR: opening '/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd': No such file or directory
And data source debug:
/usr/local/rrdtool-1.0.46/bin/rrdtool create \
/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd \
--step 300 \
DS:IntMacReceiveErr:GAUGE:600:0:U \
DS:IntMacTransmitErr:GAUGE:600:0:U \
DS:LateCollisions:GAUGE:600:0:U \
DS:CarrierSenseErrors:GAUGE:600:0:U \
DS:DeferredTrans:GAUGE:600:0:U \
DS:FrameTooLongs:GAUGE:600:0:U \
DS:ExcessiveCollision:GAUGE:600:0:U \
DS:SQETestErrors:GAUGE:600:0:U \
DS:AlignmentErrors:GAUGE:600:0:U \
DS:SingleCollisionFra:GAUGE:600:0:U \
DS:MultipleCollFrames:GAUGE:600:0:U \
DS:FCSErrors:GAUGE:600:0:U \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
and rra directory output:
[root@localhost rra]# ls *10350*
ls: *10350*: No such file or directory
So,what is the problem :(
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I use 0.8.5a
And, rfc1643.xml has same permission like other xml files like this:
[root@localhost snmp_queries]# ls -la
total 36
drwxr-xr-x 2 tceydeli users 4096 May 12 11:24 .
drwxr-xr-x 4 tceydeli users 4096 Mar 31 2004 ..
-rw-r--r-- 1 tceydeli users 1330 Mar 31 2004 host_disk.xml
-rw-r--r-- 1 tceydeli users 3914 May 5 08:02 interface.xml
-rw-r--r-- 1 tceydeli users 3049 Mar 31 2004 kbridge.xml
-rw-r--r-- 1 tceydeli users 1379 Mar 31 2004 net-snmp_disk.xml
-rw-r--r-- 1 tceydeli users 1577 Mar 31 2004 netware_cpu.xml
-rw-r--r-- 1 tceydeli users 1944 Mar 31 2004 netware_disk.xml
-rw-r--r-- 1 tceydeli users 3529 May 12 11:24 rfc1643.xml
Additionally, you can see below my graph and data source debug:
Graph debug:
ERROR: opening '/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd': No such file or directory
And data source debug:
/usr/local/rrdtool-1.0.46/bin/rrdtool create \
/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd \
--step 300 \
DS:IntMacReceiveErr:GAUGE:600:0:U \
DS:IntMacTransmitErr:GAUGE:600:0:U \
DS:LateCollisions:GAUGE:600:0:U \
DS:CarrierSenseErrors:GAUGE:600:0:U \
DS:DeferredTrans:GAUGE:600:0:U \
DS:FrameTooLongs:GAUGE:600:0:U \
DS:ExcessiveCollision:GAUGE:600:0:U \
DS:SQETestErrors:GAUGE:600:0:U \
DS:AlignmentErrors:GAUGE:600:0:U \
DS:SingleCollisionFra:GAUGE:600:0:U \
DS:MultipleCollFrames:GAUGE:600:0:U \
DS:FCSErrors:GAUGE:600:0:U \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
and rra directory output:
[root@localhost rra]# ls *10350*
ls: *10350*: No such file or directory
So,what is the problem :(
magnetyk
Posts: 34
Joined: Tue May 10, 2005 10:04 am

Post by magnetyk »

I've got a specific error when i try to add a graph to my host :

Code: Select all

Notice: Undefined index: oid_index in /usr/share/cacti/lib/data_query.php on line 149

Notice: Undefined index: oid_index in /usr/share/cacti/lib/data_query.php on line 152

Warning: Variable passed to each() is not an array or object in /usr/share/cacti/lib/data_query.php on line 174

Warning: Variable passed to each() is not an array or object in /usr/share/cacti/lib/data_query.php on line 490

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/lib/data_query.php:149) in /usr/share/cacti/host.php on line 104
How can i resolve these errors ??
Skept
Posts: 12
Joined: Sun Jul 03, 2005 1:30 pm

Post by Skept »

magnetyk wrote:I've got a specific error when i try to add a graph to my host :

Code: Select all

Notice: Undefined index: oid_index in /usr/share/cacti/lib/data_query.php on line 149

Notice: Undefined index: oid_index in /usr/share/cacti/lib/data_query.php on line 152

Warning: Variable passed to each() is not an array or object in /usr/share/cacti/lib/data_query.php on line 174

Warning: Variable passed to each() is not an array or object in /usr/share/cacti/lib/data_query.php on line 490

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/lib/data_query.php:149) in /usr/share/cacti/host.php on line 104
How can i resolve these errors ??
It means that the rfc1643.xml file is not in your /path/to/cacti/resource/snmp_queries/ folder
emerillat
Posts: 17
Joined: Mon Mar 21, 2005 8:44 am

Post by emerillat »

Okay, i have this installed under Cacti 0.8.6g and am using it against a Baystack 470. It appears to be working alright except I am not getting any graphs. When I created the host template it let me select the graph template but in my device it shows up under Associated Graph Templates and says not graphing? Any ideas on how to fix this?

Thanks!
royce
Cacti User
Posts: 79
Joined: Wed Dec 29, 2004 7:37 am
Location: Sweden

Post by royce »

no graph as in no image, or no information in the image?
emerillat
Posts: 17
Joined: Mon Mar 21, 2005 8:44 am

Post by emerillat »

Sorry, figured it out, i had the templates in my host template but didn't create the graphs in the device config.
ghost_o
Posts: 9
Joined: Sat Mar 25, 2006 5:15 pm

Post by ghost_o »

TFC wrote:I use 0.8.5a
And, rfc1643.xml has same permission like other xml files like this:
[root@localhost snmp_queries]# ls -la
total 36
drwxr-xr-x 2 tceydeli users 4096 May 12 11:24 .
drwxr-xr-x 4 tceydeli users 4096 Mar 31 2004 ..
-rw-r--r-- 1 tceydeli users 1330 Mar 31 2004 host_disk.xml
-rw-r--r-- 1 tceydeli users 3914 May 5 08:02 interface.xml
-rw-r--r-- 1 tceydeli users 3049 Mar 31 2004 kbridge.xml
-rw-r--r-- 1 tceydeli users 1379 Mar 31 2004 net-snmp_disk.xml
-rw-r--r-- 1 tceydeli users 1577 Mar 31 2004 netware_cpu.xml
-rw-r--r-- 1 tceydeli users 1944 Mar 31 2004 netware_disk.xml
-rw-r--r-- 1 tceydeli users 3529 May 12 11:24 rfc1643.xml
Additionally, you can see below my graph and data source debug:
Graph debug:
ERROR: opening '/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd': No such file or directory
And data source debug:
/usr/local/rrdtool-1.0.46/bin/rrdtool create \
/www/htdocs/cacti/rra/ir_2_alignmenterrors_10350.rrd \
--step 300 \
DS:IntMacReceiveErr:GAUGE:600:0:U \
DS:IntMacTransmitErr:GAUGE:600:0:U \
DS:LateCollisions:GAUGE:600:0:U \
DS:CarrierSenseErrors:GAUGE:600:0:U \
DS:DeferredTrans:GAUGE:600:0:U \
DS:FrameTooLongs:GAUGE:600:0:U \
DS:ExcessiveCollision:GAUGE:600:0:U \
DS:SQETestErrors:GAUGE:600:0:U \
DS:AlignmentErrors:GAUGE:600:0:U \
DS:SingleCollisionFra:GAUGE:600:0:U \
DS:MultipleCollFrames:GAUGE:600:0:U \
DS:FCSErrors:GAUGE:600:0:U \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
and rra directory output:
[root@localhost rra]# ls *10350*
ls: *10350*: No such file or directory
So,what is the problem :(
I am having the exact issue with 8.6h - I know it is not a premission issue since when I add a completely new device, the other RRD files are created. When I run the query, it is successful and I can successfully select the interfaces from the "create graphs" page. When I run poller (both cmd and cactid), they results are just never polled. The other items (interface counters/CPU) are succcessfully polled and graphed though.

I have tries against several routers and switches (all cisco).

Any ideas?

Thanks,

Greg
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

With debugging logging enabled in cacti, see if that script is returning any data.

Also, I've made my own ethernet stat templates. Look at the 'mib protocol stats' link in my sig.
ghost_o
Posts: 9
Joined: Sat Mar 25, 2006 5:15 pm

Post by ghost_o »

BSOD2600 wrote:With debugging logging enabled in cacti, see if that script is returning any data.

Also, I've made my own ethernet stat templates. Look at the 'mib protocol stats' link in my sig.
That is indeed nice, but does not work with my switches and routers. It does actually generate teh RRDs though.

I am learning more of Cacti after 2 days of playing with it, so I can probbaly manage to get what I need done.

Thanks

-Greg
Allen K
Posts: 25
Joined: Sat Oct 15, 2005 9:34 pm

Post by Allen K »

Hrm.. I am having the same issues as a couple. Debug shows no problems other than the graphs not being created. While running the poller in debug it actually doesn't even run.. I have made sure all files are in the right places, and imported all the required xml's.
RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="PG-C-ABC-R1.P21-WS2950 - Packet Sizes - FastEthernet0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_64byte:AVERAGE \
DEF:b="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_65to127byte:AVERAGE \
DEF:c="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_128to255byte:AVERAGE \
DEF:d="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_256to511byte:AVERAGE \
DEF:e="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_512to1023byte:AVERAGE \
DEF:f="/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd":rmon_1024to1518byte:AVERAGE \
LINE1:a#0000FF:"64" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#00FF00:"65-127" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:c#FF0000:"128-255" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:d#AAABA1:"256-511" \
GPRINT:d:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:e#FFF200:"512-1023" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:f#F24AC8:"1024-1518" \
GPRINT:f:LAST:"Current\:%8.2lf %s" \
GPRINT:f:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

ERROR: opening '/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd': No such file or directory
Data Source Debug

/usr/local/bin/rrdtool create \
/usr/local/www/0000000.0000000.000/webfiles/rra/pgcabcr1_p21ws2950_rmon_65to127byte_1704.rrd \
--step 300 \
DS:rmon_64byte:COUNTER:600:0:1000000000 \
DS:rmon_1024to1518byte:COUNTER:600:0:1000000000 \
DS:rmon_256to511byte:COUNTER:600:0:1000000000 \
DS:rmon_128to255byte:COUNTER:600:0:1000000000 \
DS:rmon_512to1023byte:COUNTER:600:0:1000000000 \
DS:rmon_65to127byte:COUNTER:600:0:1000000000 \
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:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN: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 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

Anybody have any ideas for this one?
Last edited by Allen K on Thu Mar 30, 2006 2:05 am, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests