pl hlep me to re-setup cacti. Now all broken
Moderators: Developers, Moderators
pl hlep me to re-setup cacti. Now all broken
Hi, I am new to linux and cacti but love to use it. I was adding new devices, arranging graph tree and wanted to use weather map. However I wanted to get interface description and using ifAlis I did it. Then I lost interface ID. So I re inserted IfDescr. Then I got only ethernet but not the interface id. So I add ifName as well. I did all this on data queries. Now all my graphs are gone. Pl help me to get this going before I loose my job.
Data Queries > SNMP - Interface Statistics> In/Out Bits >
I have
Data Template - Interface - Traffic
name |host_description| - Traffic - |query_ifDescr|
name |host_description| - Traffic - |query_ifName|
name |host_description| - Traffic - |query_ifIP| - |query_ifName|
name |host_description| - Traffic - |query_ifIP|/|query_ifDescr|
rrd_maximum |query_ifSpeed|
Graph Template - Interface - Traffic (bits/sec)
titile |host_description| - Traffic - |query_ifDescr| - |query_ifName|
title |host_description| - Traffic - |query_ifDescr|/|query_ifIndex|
title |host_description| - Traffic - |query_ifIP| (|query_ifDescr|)
Data Templates> Interface - Traffic>
Data Templates Name [edit: Interface - Traffic]
Data Source Name | host_description| - Traffic - |query_ifDescr| - |query_ifName|
Graph Templates> Interface - Traffic (bits/sec) >
Template Name Interface is - Traffic (bits/sec)
Graph Title is |host_description| - Traffic - |query_ifDescr| - |query_ifName|
When RRD graph debug is on I got the following
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="B100-CR - Traffic - TenGigabitEther - Te1/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:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/b100-cr_traffic_in_2739.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/b100-cr_traffic_in_2739.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=+,TIME,1322780435,GT,a,a,UN,0,a,IF,IF,TIME,1322780435,GT,b,b,UN,0,b,IF,IF,+ \
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" \
RRDTool Says:
ERROR: RPN stack underflow
Data Queries > SNMP - Interface Statistics> In/Out Bits >
I have
Data Template - Interface - Traffic
name |host_description| - Traffic - |query_ifDescr|
name |host_description| - Traffic - |query_ifName|
name |host_description| - Traffic - |query_ifIP| - |query_ifName|
name |host_description| - Traffic - |query_ifIP|/|query_ifDescr|
rrd_maximum |query_ifSpeed|
Graph Template - Interface - Traffic (bits/sec)
titile |host_description| - Traffic - |query_ifDescr| - |query_ifName|
title |host_description| - Traffic - |query_ifDescr|/|query_ifIndex|
title |host_description| - Traffic - |query_ifIP| (|query_ifDescr|)
Data Templates> Interface - Traffic>
Data Templates Name [edit: Interface - Traffic]
Data Source Name | host_description| - Traffic - |query_ifDescr| - |query_ifName|
Graph Templates> Interface - Traffic (bits/sec) >
Template Name Interface is - Traffic (bits/sec)
Graph Title is |host_description| - Traffic - |query_ifDescr| - |query_ifName|
When RRD graph debug is on I got the following
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="B100-CR - Traffic - TenGigabitEther - Te1/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:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/b100-cr_traffic_in_2739.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/rra/b100-cr_traffic_in_2739.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefi=+,TIME,1322780435,GT,a,a,UN,0,a,IF,IF,TIME,1322780435,GT,b,b,UN,0,b,IF,IF,+ \
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" \
RRDTool Says:
ERROR: RPN stack underflow
- Attachments
-
- cacti1.png (111.75 KiB) Viewed 1245 times
Re: pl hlep me to re-setup cacti. Now all broken
I am searching everywhere get a proper fix. So far no luck
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: pl hlep me to re-setup cacti. Now all broken
The cdefi is broken. But it is never used. Which Graph Template are you using here?
R.
R.
Re: pl hlep me to re-setup cacti. Now all broken
I am using Graph Template - Interface - Traffic (bits/sec)gandalf wrote:The cdefi is broken. But it is never used. Which Graph Template are you using here?
R.
titile |host_description| - Traffic - |query_ifDescr| - |query_ifName|
Pl tell me way out. Thanks
- Attachments
-
- graphtemp.png (127.39 KiB) Viewed 1221 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: pl hlep me to re-setup cacti. Now all broken
Please select the last item (Comment) and post the resulting screenshot
R.
R.
Re: pl hlep me to re-setup cacti. Now all broken
I have select the comment (Item 9) and pased the screen shot here. Once I went to this area to explore how to add two graphs. Is that attempt saved without proper config and giving me this problem?gandalf wrote:Please select the last item (Comment) and post the resulting screenshot
R.
Since you are kindly helping me out I will wait for your instructions to delete it and see or any as per your instruction.
- Attachments
-
- comment.png (94.92 KiB) Viewed 1209 times
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: pl hlep me to re-setup cacti. Now all broken
As a first attempt, please delete that entry (you will do this from the previous screen)
R.
R.
Re: pl hlep me to re-setup cacti. Now all broken
Thanks gandalf. It works fine. No data loss. Everything works fine. I started setting up weathermap. So far things moving fine. Thank you very much for putting me to the right direction. I will keep posting my progress. Thanks again.gandalf wrote:As a first attempt, please delete that entry (you will do this from the previous screen)
R.
Who is online
Users browsing this forum: No registered users and 0 guests