No rrd files

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

Moderators: Developers, Moderators

Post Reply
pacon007
Posts: 5
Joined: Tue Oct 16, 2007 2:52 am

No rrd files

Post by pacon007 »

Hello all.

I have install cacti on a Linux Debian box. Al has gone fine, no errors while installing but when I tried to analyze graph appears this code:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1192457783 \
--end=1192544183 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2007/10/15 16\:16\:23 To 2007/10/16 16\:16\:23\c" \
COMMENT:"  \n" \
--vertical-label="kilobytes" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#FFC73B:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" 
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_3.rrd': No such file or directory
When I check rra directory I see no rrd file. I ran poller, no error and even I don't see any log on cacti.log.

ANY HELP????????????
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Usually, this is due to "Host Downed Detection" seeing the device as unreachable (e.g. ICMP is blocked"). You may want to change global settings at "Settings"
Reinhard
pacon007
Posts: 5
Joined: Tue Oct 16, 2007 2:52 am

Post by pacon007 »

Hi gandalf,

I don't understand that. If the system is on "Host Downed Detection", why Cacti does not create a rrd file?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Cacti will not perform any polling on systems that it supposes to be down. But downed host detection may be wrong (e.g. if ICMP is blocked)
Reinhard
pacon007
Posts: 5
Joined: Tue Oct 16, 2007 2:52 am

Post by pacon007 »

Hello again,

Thanks Gandalf but I don't think that is the problem. As you can see, on the code I copy earlier, the graph I want to check is a local host graph.
I do have ping access to localhost.

Code: Select all

ntop01:~# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.034 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=4 ttl=64 time=0.033 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=5 ttl=64 time=0.021 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=6 ttl=64 time=0.033 ms
Any other idea... I think that the problem might be on some permission.
This is how it looks my cacti directory.

Code: Select all

ntop01:/usr/share/cacti/site# ls -al
total 1988
drwxr-xr-x 12 root      root     4096 2007-10-16 16:00 .
drwxr-xr-x  4 root      root     4096 2007-10-16 15:10 ..
-rw-r--r--  1 root      root     5892 2007-10-16 15:13 about.php
-rw-r--r--  1 root      root     4773 2007-10-16 15:13 auth_changepassword.php
-rw-r--r--  1 root      root     6203 2007-10-16 15:13 auth_login.php
drwxr-xr-x 11 root      root     4096 2007-01-18 01:23 cacti-0.8.6j
-rw-r--r--  1 root      root  1126337 2007-10-16 15:12 cacti-0.8.6j.tar.gz
-rw-------  1 root      root   170951 2007-10-16 15:13 cacti.sql
-rw-r--r--  1 root      root    13108 2007-10-16 15:13 cdef.php
-rwxrwxrwx  1 root      root    17023 2007-10-16 15:13 cmd.php
-rw-r--r--  1 root      root     5917 2007-10-16 15:13 color.php
-rw-r--r--  1 root      root     2846 2007-10-16 15:13 copy_cacti_user.php
-rw-r--r--  1 root      root    18387 2007-10-16 15:13 data_input.php
-rw-r--r--  1 root      root    28762 2007-10-16 15:13 data_queries.php
-rw-r--r--  1 root      root    45400 2007-10-16 15:13 data_sources.php
-rw-r--r--  1 root      root    31307 2007-10-16 15:13 data_templates.php
drwxr-xr-x  5 root      root     4096 2007-01-18 01:23 docs
-rw-r--r--  1 root      root     6110 2007-10-16 15:13 gprint_presets.php
-rw-r--r--  1 root      root     3423 2007-10-16 15:13 graph_image.php
-rw-r--r--  1 root      root    10572 2007-10-16 15:13 graph.php
-rw-r--r--  1 root      root     6502 2007-10-16 15:13 graph_settings.php
-rw-r--r--  1 root      root    12446 2007-10-16 15:13 graphs_items.php
-rw-r--r--  1 root      root    30927 2007-10-16 15:13 graphs_new.php
-rw-r--r--  1 root      root    48109 2007-10-16 15:13 graphs.php
-rw-r--r--  1 root      root    10097 2007-10-16 15:13 graph_templates_inputs.php
-rw-r--r--  1 root      root    17367 2007-10-16 15:13 graph_templates_items.php
-rw-r--r--  1 root      root    23468 2007-10-16 15:13 graph_templates.php
-rw-r--r--  1 root      root    23261 2007-10-16 15:13 graph_view.php
-rw-r--r--  1 root      root    35150 2007-10-16 15:13 host.php
-rw-r--r--  1 root      root    15014 2007-10-16 15:13 host_templates.php
drwxr-xr-x  2 root      root     4096 2007-01-18 01:23 images
drwxr-xr-x  5 root      root     4096 2007-10-16 16:07 include
-rw-r--r--  1 root      root     2271 2007-10-16 15:13 index.php
drwxr-xr-x  2 root      root     4096 2007-01-18 01:23 install
drwxr-xr-x  3 root      root     4096 2007-01-18 01:23 lib
-rw-r--r--  1 root      root    15141 2007-10-16 15:13 LICENSE
drwxr-xr-x  2 cactiuser users    4096 2007-01-18 01:23 log
-rw-r--r--  1 root      root     1796 2007-10-16 15:13 logout.php
-rw-r--r--  1 root      root     4462 2007-10-16 15:13 poller_commands.php
-rw-r--r--  1 root      root     2399 2007-10-16 15:13 poller_export.php
-rwxrwxrwx  1 root      root     9314 2007-10-16 15:13 poller.php
-rw-r--r--  1 root      root     4417 2007-10-16 15:13 poller_reindex_hosts.php
-rw-r--r--  1 root      root       71 2007-10-16 15:13 README
-rw-r--r--  1 root      root     4244 2007-10-16 15:13 rebuild_poller_cache.php
drwxr-xr-x  5 root      root     4096 2007-01-18 01:23 resource
drwxr-xr-x  2 cactiuser users    4096 2007-01-18 01:23 rra
-rw-r--r--  1 root      root     7236 2007-10-16 15:13 rra.php
drwxr-xr-x  2 root      root     4096 2007-01-18 01:23 scripts
-rw-r--r--  1 root      root     7363 2007-10-16 15:13 script_server.php
-rw-r--r--  1 root      root      353 2007-10-16 15:13 script_server.pl
-rw-r--r--  1 root      root     5148 2007-10-16 15:13 settings.php
-rw-r--r--  1 root      root     6813 2007-10-16 15:13 templates_export.php
-rw-r--r--  1 root      root     5954 2007-10-16 15:13 templates_import.php
-rw-r--r--  1 root      root    17958 2007-10-16 15:13 tree.php
-rw-r--r--  1 root      root    28925 2007-10-16 15:13 user_admin.php
-rw-r--r--  1 root      root    35851 2007-10-16 15:13 utilities.php
Any idea???
pacon007
Posts: 5
Joined: Tue Oct 16, 2007 2:52 am

Post by pacon007 »

Other big problem I am facing is that I don't see nothing on cacti.log
This is how my log file looks like:
cactiuser@ntop01:/usr/share/cacti/site/log$ more cacti.log
cactiuser@ntop01:/usr/share/cacti/site/log$

And this is how I configure Cacti:
Attachments
forum.JPG
forum.JPG (86.1 KiB) Viewed 2409 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please login as cactiuser and run poller.php manually. Wathc ut for errors. Find more help at the second link of my signature
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests