I can't create Traffic graphs

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

Moderators: Developers, Moderators

Post Reply
pancho_lopez
Posts: 3
Joined: Thu Feb 03, 2005 1:08 pm

I can't create Traffic graphs

Post by pancho_lopez »

Hi guys.

I have checked the post in the forum, but they haven't solved my problem.

I installed cacti, and everythings is ok, it displays the mayority of the graphs of the Linux Local Machine template(process, logged users, memory usage, disk space, load avarage, etc).

So I decided to create traffic graph (this was the reason I installed cacti). So, I read the manual and I followed the instructions from the FAQ. Once I finished what the FAQ said, I tried to wiev the traffic graphs, but they appear like a broken square, and the others graphics appears as usual.

The manual said

Code: Select all

the second option is to have Cacti call the snmpget and snmpwalk binaries from your ucd-snmp or net-snmp installation.
You can use the about page to determine whether to are using "built-in" or "external" SNMP support.
First, the snmpget and snmpwalk commands works correrctly, and I typed their path in Configuration->Settings->Paths.


My system is a RedHat enterprice 3 and I installed the RPM's for net-snmp:

net-snmp-5.0.9-2.30E.6.i386.rpm
net-snmp-devel-5.0.9-2.30E.6.i386.rpm
net-snmp-utils-5.0.9-2.30E.6.i386.rpm

Any IDEA???


grettings
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you configured your SNMP daemon on the device you are trying to query traffic statistics?

Also, what version of cacti are you running?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pancho_lopez
Posts: 3
Joined: Thu Feb 03, 2005 1:08 pm

snmpd is configured

Post by pancho_lopez »

Hi guys:

The version of cacti is cacti-0.8.6c

Yes, I've configured the snmpd deamon, but I still can't see any traffic graph

Code: Select all

$snmpd -v

NET-SNMP version:  5.0.9
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

ANd I have the following snmp packages:

Code: Select all

 
$ rpm -qa |grep snmp

net-snmp-devel-5.0.9-2.30E.6
net-snmp-5.0.9-2.30E.6
net-snmp-utils-5.0.9-2.30E.6

I configured SNMP with the following command. Since it's the first time I configured SNMP i don't know if it is correct.

Code: Select all

 snmpconf -g basic_setup

The Above command created the following /etc/snmp/snmp.conf file

Code: Select all

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  pavel
rwuser  auth
rwuser  pavel

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  pavel
rouser  pavel

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public alfa
rocommunity  public 192.168.0.0

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  public 192.168.0.1
rwcommunity  public 192.168.0.0
rwcommunity  public alfa



###########################################################################
# SECTION: Extending the Agent
#
#   You can extend the snmp agent to have it return information
#   that you yourself define.

# pass: Run a command that intepretes the request for an entire tree.
#   The pass program defined here will get called for all
#   requests below a certain point in the mib tree.  It is then
#   responsible for returning the right data beyond that point.
#
#   arguments: miboid program
#
#   example: pass .1.3.6.1.4.1.2021.255 /path/to/local/passtest
#
#   See the snmpd.conf manual page for further information.
#
#   Consider using "pass_persist" for a performance increase.

pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
#   The following check up on various aspects of a host.

# proc: Check for processes that should be running.
#     proc NAME [MAX=0] [MIN=0]
#
#     NAME:  the name of the process to check for.  It must match
#            exactly (ie, http will not find httpd processes).
#     MAX:   the maximum number allowed to be running.  Defaults to 0.
#     MIN:   the minimum number to be running.  Defaults to 0.
#
#   The results are reported in the prTable section of the UCD-SNMP-MIB tree
#   Special Case:  When the min and max numbers are both 0, it assumes
#   you want a max of infinity and a min of 1.

proc  httpd 1 0
proc  httpd 5 1
proc  mysqld 2 1
proc  squid 3 1

# disk: Check for disk space usage of a partition.
#   The agent can check the amount of available disk space, and make
#   sure it is above a set limit.
#
#    disk PATH [MIN=100000]
#
#    PATH:  mount path to the disk in question.
#    MIN:   Disks with space below this value will have the Mib's errorFlag set.
#           Can be a raw byte value or a percentage followed by the %
#           symbol.  Default value = 100000.
#
#   The results are reported in the dskTable section of the UCD-SNMP-MIB tree

disk  / 2500
disk  /home 3000
disk  / 5000
disk  /home 2000
disk  /web 30000
disk  /tmp 1000

# load: Check for unreasonable load average values.
#   Watch the load average levels on the machine.
#
#    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#
#    1MAX:   If the 1 minute load average is above this limit at query
#            time, the errorFlag will be set.
#    5MAX:   Similar, but for 5 min average.
#    15MAX:  Similar, but for 15 min average.
#
#   The results are reported in the laTable section of the UCD-SNMP-MIB tree

load  12.0 24 10
load  .1 .5 .9

# file: Check on the size of a file.
#   Display a files size statistics.
#   If it grows to be too large, report an error about it.
#
#    file /path/to/file [maxsize_in_bytes]
#
#      if maxsize is not specified, assume only size reporting is needed.
#
#   The results are reported in the fileTable section of the UCD-SNMP-MIB tree


file  /usr/local/bin 1000
file  /bin 1000






###########################################################################
# SECTION: Trap Destinations
#
#   Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver
#   arguments: host [community] [portnum]

trapsink  alfa public 161

# informsink: A SNMPv2c inform (acknowledged trap) receiver
#   arguments: host [community] [portnum]

informsink  alfa public 161

# trapcommunity: Default trap sink community to use
#   arguments: community-string

trapcommunity  public
trapcommunity  public

# authtrapenable: Should we send traps when authentication failures occur
#   arguments: 1 | 2   (1 = yes, 2 = no)

authtrapenable  1
authtrapenable  1



###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation Unknown (edit /etc/snmp/snmpd.conf)
syslocation  Mexico
syslocation  Mexico

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
syscontact  pavel

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 12



#
# Unknown directives read in from other files by snmpconf
#
com2sec notConfigUser  default       public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
access  notConfigGroup ""      any       noauth    exact  systemview none none
Did I miss something that doesn't allow me to create traffic graphs???



grettings
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Not that I can see..

Can you walk the SNMP tree?

Code: Select all

snmpwalk -v 1 -c <SNMP Community> <Host>
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pancho_lopez
Posts: 3
Joined: Thu Feb 03, 2005 1:08 pm

poller.php in DEBUG mode

Post by pancho_lopez »

Also I checked some post inthe forum, and one of them says that, it's recoomendable to set poller.php in debug mode, and then run polller.php from the console:

Code: Select all


[cacti@alfa cacti]$ php poller.php
02/04/2005 09:23:06 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q /home/pavel/public_html/cacti/cmd.php 0 7]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
02/04/2005 09:23:07 AM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
02/04/2005 09:23:07 AM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
02/04/2005 09:23:07 AM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
02/04/2005 09:23:07 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1107530586:563884
02/04/2005 09:23:07 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1107530586:4096532
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
02/04/2005 09:23:07 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1107530586:0.00:0.00:0.00
OK u:0.00 s:0.00 r:1.01
02/04/2005 09:23:07 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/localhost_users_6.rrd --template users 1107530586:1
OK u:0.00 s:0.00 r:1.01
02/04/2005 09:23:07 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/localhost_proc_7.rrd --template proc 1107530586:72
OK u:0.00 s:0.00 r:1.01
Waiting on 1/1 pollers.
02/04/2005 09:23:08 AM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
02/04/2005 09:23:08 AM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
02/04/2005 09:23:08 AM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_load_1min_10.rrd --template load_1min:load_5min:load_15min 1107530586:0.00:0.00:0.00
OK u:0.00 s:0.01 r:2.02
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_mem_swap_9.rrd --template mem_swap 1107530586:4096532
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_mem_buffers_8.rrd --template mem_buffers 1107530586:563088
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_users_11.rrd --template users 1107530586:1
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_proc_12.rrd --template proc 1107530586:72
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_13.rrd --template hdd_free:hdd_used 1107530586:2833096:33628
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_14.rrd --template hdd_used:hdd_free 1107530586:99856:19037208
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_15.rrd --template hdd_used:hdd_free 1107530586:32828:33453664
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_16.rrd --template hdd_used:hdd_free 1107530586:4659780:28826712
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_19.rrd --template hdd_used:hdd_free 1107530586:43808:1869824
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_20.rrd --template hdd_used:hdd_free 1107530586:970392:30294344
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_hdd_free_21.rrd --template hdd_used:hdd_free 1107530586:70824:6623396
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_27.rrd   --step 300   DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:2.03
02/04/2005 09:23:08 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_27.rrd --template traffic_in:traffic_out N:830695753:3173575275
ERROR: opening '/home/pavel/public_html/cacti/rra/red_anuies_traffic_in_27.rrd': No such file or directory
OK u:0.00 s:0.01 r:2.04
Waiting on 1/1 pollers.
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_46.rrd   --step 300   DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:3.06
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_44.rrd   --step 300   DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:3.06
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_44.rrd --template traffic_out:traffic_in N:43243530:43243380
ERROR: opening '/home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_44.rrd': No such file or directory
OK u:0.00 s:0.01 r:3.06
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_28.rrd   --step 300   DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:3.07
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_28.rrd --template traffic_in:traffic_out N:43243230:43243080
ERROR: opening '/home/pavel/public_html/cacti/rra/red_anuies_traffic_in_28.rrd': No such file or directory
OK u:0.00 s:0.01 r:3.07
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_26.rrd   --step 300   DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:3.08
02/04/2005 09:23:09 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/red_anuies_traffic_in_26.rrd --template traffic_out:traffic_in N:884814633:3132355743
ERROR: 

opening '/home/pavel/public_html/cacti/rra/red_anuies_traffic_in_26.rrd': No such file or directory

OK u:0.00 s:0.01 r:3.08
02/04/2005 09:23:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_46.rrd   --step 300   DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:4.09
02/04/2005 09:23:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_46.rrd --template traffic_out:traffic_in N:3173613701:830724233
ERROR: 

opening '/home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_46.rrd': No such file or directory
OK u:0.00 s:0.01 r:4.09

02/04/2005 09:23:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_45.rrd   --step 300   DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600:0:100000000  DS:traffic_in:COUNTER:600:0:100000000  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:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797  
ERROR: Duplicate DS name: traffic_in
OK u:0.00 s:0.01 r:4.10
02/04/2005 09:23:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_45.rrd --template traffic_in:traffic_out N:3132385682:884847086
ERROR: 

opening '/home/pavel/public_html/cacti/rra/prueba_feb_3_traffic_in_45.rrd': No such file or directory

OK u:0.00 s:0.01 r:4.10
02/04/2005 09:23:10 AM - SYSTEM STATS: Time: 4.1289 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4

After checking this output I think that the problem is that poller.php can't locate the rrd files that correspond to traffic garphs.
But How can I create the rrd files for the traffic graphs???


Also I checked the crontab, and it's working as usual.

Code: Select all

/etc/crontab
*/5 * * * * cactiuser php /Users/systame/www/cacti/poller.php > /dev/null 2>&1 

grettings[/quote]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

ERROR: Duplicate DS name: traffic_in
You have what I can call a classic cacti bug.

Check out http://forums.cacti.net/viewtopic.php?t=4820 for information on fixing it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests