Graphs not showing in Red Hat 9 installation

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

Moderators: Developers, Moderators

tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Graphs not showing in Red Hat 9 installation

Post by tovythomas »

Hello,

I am newer to the use of cacti and am working on an installation. I have installed all the components. I am using Cacti 0.8.6c with RRD Tool 1.0.49 and PHP 4.2.2.

When I create a graph, I get the broken link. When I check the data source debug, I get the following.

/usr/local/rrdtool-1.0.49/bin/rrdtool create \
/var/www/html/cacti/rra/salem_twc_router_traffic_in_28.rrd \
--step 300 \
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 \

However, when I do the graph debug, I get the following,

ERROR: opening '/var/www/html/cacti/rra/salem_twc_router_traffic_in_28.rrd': No such file or directory

The file does not exist in the directory. Any ideas?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Has the poller run for at least one pass?

If so, can you set the logging, located in Settings -> General -> Poller Logging Level, to Debug and post on pass of the poller from the logs/cacti.log file.

This way we can help you debug the problem.
[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]
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Graphs not showing - fixed but with problems.

Post by tovythomas »

I have recently reinstalled the cacti and somehow the graphs will now generate. However, the graphs are not showing any data in them after several polling periods. I ran the php poller.php for debug results and received the following:


03/15/2005 02:30:40 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 2]
02/15/2005 02:30:40 PM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above is recommended for performance considerations.
02/15/2005 02:30:40 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
02/15/2005 02:30:40 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
02/15/2005 02:30:40 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:, output: 334120
02/15/2005 02:30:40 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:, output: 1172736
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/loadavg_multi.pl, output: 1min:3.61 5min:1.59 10min:0.84
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/unix_users.pl, output: 2
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[1] CMD: perl /var/www/html/cacti/scripts/unix_processes.pl, output: 80
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '10.1.220.251'.
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.1.220.251, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 619360594
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.1.220.251, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1,
output: 1384667376
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.1.220.251, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 1123947078
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 10.1.220.251, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2,
output: 422410733
02/15/2005 02:30:41 PM - CMDPHP: Poller[0] Time: 0.3037 s, Theads: N/A, Hosts: 2
02/15/2005 02:30:41 PM - POLLER: Poller[0] Parsed MULTI output field '1min:3.61' [map 1min->load_1min]
02/15/2005 02:30:41 PM - POLLER: Poller[0] Parsed MULTI output field '5min:1.59' [map 5min->load_5min]
02/15/2005 02:30:41 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.84' [map 10min->load_15min]
02/15/2005 02:30:41 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool create /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --step 300 DS:mem_buffers:GAUGE:600:0:U 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
02/15/2005 02:30:41 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:334120


Any Ideas on why there is no data. I have tried a netware server-volume information and the interface statistics on a Cisco router with the same results.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Check the permissions on the on the rra directory and files located in it. They are probably incorrect.
[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]
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Graphs not collecting data

Post by tovythomas »

I have checked the permissions and they are set to root which is the same user that the poller is using to collect the data in the crontab file.

Still no data though.
Attachments
graphs.gif
graphs.gif (48.64 KiB) Viewed 3408 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should run poller.php manually from the command line and look for errors.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Graphs not collecting data.

Post by tovythomas »

I have run the poller manually and it is not showing any errors. My graphs however arent picking up the data. Here is the screenshot of my graphs as of this morning. They have been polling all night.
Attachments
cactiscreengraphs.gif
cactiscreengraphs.gif (47.36 KiB) Viewed 3381 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Can you snmpwalk these devices from the cacti server?

Are you using SNMPv2? If so, make sure you are either using Cactid or have NET-SNMP utils installed.
[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]
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Graphs not collecting data.

Post by tovythomas »

I am using the cmd.php as opposed to the cactid poller. I know you can snmp walk these devices b/c I am using the cacti server on the same machine as MRTG which is using snmp to pull this same data I am trying with cacti.

I am using snmp v1.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, run the poller manually, in debug mode, and attempt to run the rrd update from the command line.

Code: Select all

usr/local/rrdtool-1.0.49/bin/rrdtool create /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --step 300 DS:mem_buffers:GAUGE:600:0:U 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
Let me know what you find.
[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]
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Post by tovythomas »

Here is the poller debug run manually.

02/16/2005 09:33:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 7]
Waiting on 1/1 pollers.
02/16/2005 09:33:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /var/www/html/cacti/rra/mason_time_warner_router_traffic_in_20.rrd --template traffic_out:traffic_in 1108564380:1491663066:404219090
02/16/2005 09:33:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /var/www/html/cacti/rra/mason_time_warner_router_traffic_in_19.rrd --template traffic_out:traffic_in 1108564380:550973333:1674425376
02/16/2005 09:33:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /var/www/html/cacti/rra/salem_twc_router_traffic_in_22.rrd --template traffic_in:traffic_out 1108564380:1867378177:708015793
02/16/2005 09:33:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.49/bin/rrdtool update /var/www/html/cacti/rra/salem_twc_router_traffic_in_21.rrd --template traffic_in:traffic_out 1108564380:1033960234:2294015351
02/16/2005 09:33:01 AM - SYSTEM STATS: Time: 1.1409 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
OK u:0.00 s:0.00 r:1.14
OK u:0.00 s:0.00 r:1.14
OK u:0.00 s:0.00 r:1.21
OK u:0.00 s:0.00 r:1.21
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Post by tovythomas »

Also, I ran that code previously mentioned for the rrd update and it brings me back command line prompt.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

...

Why didn't I think of this before....

Check out this post.

http://forums.cacti.net/viewtopic.php?t=4820
[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]
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Post by tovythomas »

I am not sure how the previous article applies, so I may need further clarification.

I have created my devices per the instructions listed in that article. Also when I look at the data source debug, I dont see any duplicate lines but maybe I am missing something. I have added a screenshot of one of my data sources.
Attachments
masondatasource.gif
masondatasource.gif (47.52 KiB) Viewed 3357 times
tovythomas
Posts: 19
Joined: Fri Feb 11, 2005 3:41 pm

Post by tovythomas »

Here are 2 screenshots, 1 of the directory permissions as well as the files with in the rra directory. The other 1 is of the crontab entry I had made.

The only other thing I can think of which I think is right is for my database username I have used root with no password. I did not create the optional user in my installation, but I couldn't get it to come up at first without changing the defaults away from cactiuser with a password of cacti.

I have in my include/config.php file the following.

database type = "mysql";
database default = "cacti"
database hostname = "localhost"
database username = "root"
database password = ""

I am not sure if I messed anything up there that would be causing me a problem or not. I imported the default database and then used the root user for everything in the setup.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests