creating graphs from template

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

Moderators: Developers, Moderators

Post Reply
sander815
Posts: 13
Joined: Tue Aug 17, 2004 2:30 am

creating graphs from template

Post by sander815 »

i am trying to get cacti to graph traffic:
there i get this:

Maximum Value [traffic_in]
The maximum value of data that is allowed to be collected.

Maximum Value [traffic_out]
The maximum value of data that is allowed to be collected.

Custom Data [Template: Interface - Traffic]
Index Type
Index Value
Output Type ID

what do i have to fill in into the last 3 sections, index type etc?
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

Use the interface queries to graph traffic. Once you have your device added, open it under "Devices" At the bottom, you will see a section for queries, make sure the snmp - interface query is added. Then click add graphs in the upper-right corner. It will give you a list of your interfaces, check the one's you want, and click "create" in the lower-right corner. *poof* you have graphs, well if everything works right you do. :-)

Those three things will automatically get filled in by the query.
Dave
sander815
Posts: 13
Joined: Tue Aug 17, 2004 2:30 am

Post by sander815 »

no, can't get it to work:
when i goto graph managment, and check 1 of the traffic graphs, turn debug mode on i see this:

Code: Select all

RRDTool Says:


Notice:  Undefined variable:  regexps in /home/httpd/vhosts/default/htdocs/cacti/lib/rrd.php on line 308

Notice:  Undefined variable:  fetch_array in /home/httpd/vhosts/default/htdocs/cacti/lib/rrd.php on line 323
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
Notice:  Undefined variable:  regexps in /home/httpd/vhosts/default/htdocs/cacti/lib/rrd.php on line 308

Notice:  Undefined variable:  fetch_array in /home/httpd/vhosts/default/htdocs/cacti/lib/rrd.php on line 323
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data sourceERROR: opening '/home/httpd/vhosts/default/htdocs/cacti/rra/test_traffic_in_106.rrd': No such file or directory

although the verbose query looks ok:

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/httpd/vhosts/default/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='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='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName=''] index: [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: [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='softwareLoopback(24)'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd(6)'] index: 2 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='100000000'] index: 2 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='00:00:E0:4C:4A:43:AB'] index: 2 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='10.0.0.158'] index: 2 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found item [ifIP='192.168.1.110'] index: 2 [from regexp oid parse][
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest