hi
I've installed cacti 0.8.5 on linux SuSE 8.2 successfully
I get all default graphs without any problems:
- memory usage
- load average
- logged in users
- processes
but if I try to add a new graph like Localhost - Traffic,
then I get no graphs:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/srv/www/htdocs/cacti/rra/localhost_traffic_in_21.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/cacti/rra/localhost_traffic_in_21.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
#:/srv/www/htdocs/cacti # php cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.1
command: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 163208
command: perl /srv/www/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1574360
MULTI command: perl /srv/www/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.11 5min:0.08 10min:0.02
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.11
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.08
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.02
command: perl /srv/www/htdocs/cacti/scripts/unix_users.pl, output: 1
command: perl /srv/www/htdocs/cacti/scripts/unix_processes.pl, output: 67
update /srv/www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:163208
update /srv/www/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:1574360
update /srv/www/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.11:0.08:0.02
update /srv/www/htdocs/cacti/rra/localhost_users_6.rrd --template users N:1
update /srv/www/htdocs/cacti/rra/localhost_proc_7.rrd --template proc N:67
time: 1
if I look at :
#:/srv/www/htdocs/cacti/rra # ls -la
total 344
drwxr-xr-x 2 cactiuser root 4096 Feb 16 16:00 .
drwxr-xr-x 12 root root 4096 Feb 16 15:51 ..
-rw-r--r-- 1 root root 0 Feb 3 07:21 .placeholder
-rw-r--r-- 1 root root 141484 Feb 19 22:36 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_users_6.rrd
then I cannot find localhost_traffic_in_21.rrd
permissions are OK and I've done already: chown cactiuser rra/ log/
for example if I add disk space, than it works well and I get graphs.
under Data Sources / Localhost - Traffic
I have a option:
Custom Data
Index Type Data query data sources must be created through New Graphs.
Index Value
Output Type ID Data query data sources must be created through New Graphs.
should I put something or leave empty ?
what's wrong ?
kind regards
cc
cacti 0.8.5 NO GRAPH !
Moderators: Developers, Moderators
permissions
hi cc, andrea
checkout once again the permissions!
according to your output the .rrd-files are owned by root
#:/srv/www/htdocs/cacti/rra # ls -la
total 344
-rw-r--r-- 1 root root 141484 Feb 19 22:36 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_users_6.rrd
do the following:
# cd /srv/www/htdocs/cacti
# chown -R cactiuser.cactigroup /log /rra
"-R" means "recursive" (apply the chown for all files within the folders)
cactiuser.cactigroup may be diffrent on your system. (if you're not shure, check /etc/crontab => the cactiuser must be listened there)
best wishes,
Mänu
checkout once again the permissions!
according to your output the .rrd-files are owned by root
#:/srv/www/htdocs/cacti/rra # ls -la
total 344
-rw-r--r-- 1 root root 141484 Feb 19 22:36 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47836 Feb 19 22:36 localhost_users_6.rrd
do the following:
# cd /srv/www/htdocs/cacti
# chown -R cactiuser.cactigroup /log /rra
"-R" means "recursive" (apply the chown for all files within the folders)
cactiuser.cactigroup may be diffrent on your system. (if you're not shure, check /etc/crontab => the cactiuser must be listened there)
best wishes,
Mänu
To know recursion, you must first know recursion.
my rra/ and log/ are cactiuser:wheel, but inside those all is root:wheel (and I don't know why, because I've used chown -R).
Now all is cactiuser:wheel:
cacti/rra:
observe# ls -la
total 3
drwxr-xr-x 2 cactiuser wheel 512 Feb 3 07:21 .
drwxr-xr-x 12 root wheel 1536 Feb 20 11:10 ..
-rw-r--r-- 1 cactiuser wheel 0 Feb 3 07:21 .placeholder
cacti/log:
observe# ls -la
total 3
drwxr-xr-x 2 cactiuser wheel 512 Feb 3 07:21 .
drwxr-xr-x 12 root wheel 1536 Feb 20 11:10 ..
-rw-r--r-- 1 cactiuser wheel 0 Feb 3 07:21 rrd.log
I couldn't see the graphs.
Why, problems with rrdtool?
Thanks
Andrea
Now all is cactiuser:wheel:
cacti/rra:
observe# ls -la
total 3
drwxr-xr-x 2 cactiuser wheel 512 Feb 3 07:21 .
drwxr-xr-x 12 root wheel 1536 Feb 20 11:10 ..
-rw-r--r-- 1 cactiuser wheel 0 Feb 3 07:21 .placeholder
cacti/log:
observe# ls -la
total 3
drwxr-xr-x 2 cactiuser wheel 512 Feb 3 07:21 .
drwxr-xr-x 12 root wheel 1536 Feb 20 11:10 ..
-rw-r--r-- 1 cactiuser wheel 0 Feb 3 07:21 rrd.log
I couldn't see the graphs.
Why, problems with rrdtool?
Thanks
Andrea
I'm sorry for the "Guest" ...
NOw I've always the same errors in the apache error-log:
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined variable: regexps in /web/cacti/lib/rrd.php on line 305
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined variable: fetch_array in /web/cacti/lib/rrd.php on line 320
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 381
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 385
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 389
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: traffic_in in /web/cacti/lib/rrd.php on line 721
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: traffic_out in /web/cacti/lib/rrd.php on line 721
If that could help you to solve my problem.
Thanks for your support
Regards
Andrea
NOw I've always the same errors in the apache error-log:
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined variable: regexps in /web/cacti/lib/rrd.php on line 305
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined variable: fetch_array in /web/cacti/lib/rrd.php on line 320
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 381
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 385
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: values in /web/cacti/lib/rrd.php on line 389
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: traffic_in in /web/cacti/lib/rrd.php on line 721
[Fri Feb 20 18:20:58 2004] [error] PHP Notice: Undefined index: traffic_out in /web/cacti/lib/rrd.php on line 721
If that could help you to solve my problem.
Thanks for your support
Regards
Andrea
no graphs for /dev/hda, just links.
I'm a newbe at cacti..I installed Sentinix which has cacti pre-configured in it. I upgraded the ..8.3? version to the current .8.5. I can query and graph the interface on an AIX box but the graphs for the mounted partitions won't graph, they just appear as a link which leads to no graphs. I can do an snmpget on the aix box and get the info, it's just not being created into a graph. I don't know what DS is in the error output below. Thanks for any ideas.
root@nms2:/usr/local/cacti# php cmd.php
ERROR: Duplicate DS name: hdd_used
ERROR: Duplicate DS name: hdd_used
ERROR: Duplicate DS name: hdd_used
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_8.rrd': No such file or directory
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_11.rrd': No such file or directory
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_12.rrd': No such file or directory
command: perl /usr/local/cacti/scripts/linux_memory.pl MemFree:, output: 36824
command: perl /usr/local/cacti/scripts/linux_memory.pl SwapFree:, output: 92940
MULTI command: perl /usr/local/cacti/scripts/loadavg_multi.pl, output: 1min:0.04 5min:0.11 10min:0.11
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.04
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.11
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.11
command: perl /usr/local/cacti/scripts/unix_users.pl, output: 2
command: perl /usr/local/cacti/scripts/unix_processes.pl, output: 56
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 1, output: 209715200
snmp: 10.210.1.104:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 678830753
snmp: 10.210.1.104:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 4082555390
snmp: 10.210.1.104:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 2696453607
snmp: 10.210.1.104:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 2673027042
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 37, output: 1048576000
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 35, output: 780140544
update /usr/local/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:36824
update /usr/local/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:92940
update /usr/local/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.04:0.11:0.11
update /usr/local/cacti/rra/localhost_users_6.rrd --template users N:2
update /usr/local/cacti/rra/localhost_proc_7.rrd --template proc N:56
update /usr/local/cacti/rra/rsdev4_hdd_used_8.rrd --template hdd_used N:209715200
update /usr/local/cacti/rra/rsdev4_traffic_in_9.rrd --template traffic_out:traffic_in N:678830753:4082555390
update /usr/local/cacti/rra/rsdev4_traffic_in_10.rrd --template traffic_out:traffic_in N:2696453607:2673027042
update /usr/local/cacti/rra/rsdev4_hdd_used_11.rrd --template hdd_used N:1048576000
update /usr/local/cacti/rra/rsdev4_hdd_used_12.rrd --template hdd_used N:780140544
time: 26
root@nms2:/usr/local/cacti#
root@nms2:/usr/local/cacti# php cmd.php
ERROR: Duplicate DS name: hdd_used
ERROR: Duplicate DS name: hdd_used
ERROR: Duplicate DS name: hdd_used
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_8.rrd': No such file or directory
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_11.rrd': No such file or directory
ERROR: opening '/usr/local/cacti/rra/rsdev4_hdd_used_12.rrd': No such file or directory
command: perl /usr/local/cacti/scripts/linux_memory.pl MemFree:, output: 36824
command: perl /usr/local/cacti/scripts/linux_memory.pl SwapFree:, output: 92940
MULTI command: perl /usr/local/cacti/scripts/loadavg_multi.pl, output: 1min:0.04 5min:0.11 10min:0.11
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.04
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.11
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.11
command: perl /usr/local/cacti/scripts/unix_users.pl, output: 2
command: perl /usr/local/cacti/scripts/unix_processes.pl, output: 56
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 1, output: 209715200
snmp: 10.210.1.104:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 678830753
snmp: 10.210.1.104:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 4082555390
snmp: 10.210.1.104:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 2696453607
snmp: 10.210.1.104:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 2673027042
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 37, output: 1048576000
command: /usr/bin/php -q /usr/local/cacti/scripts/query_host_partitions.php 10.210.1.104 public 1 get total 35, output: 780140544
update /usr/local/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:36824
update /usr/local/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:92940
update /usr/local/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.04:0.11:0.11
update /usr/local/cacti/rra/localhost_users_6.rrd --template users N:2
update /usr/local/cacti/rra/localhost_proc_7.rrd --template proc N:56
update /usr/local/cacti/rra/rsdev4_hdd_used_8.rrd --template hdd_used N:209715200
update /usr/local/cacti/rra/rsdev4_traffic_in_9.rrd --template traffic_out:traffic_in N:678830753:4082555390
update /usr/local/cacti/rra/rsdev4_traffic_in_10.rrd --template traffic_out:traffic_in N:2696453607:2673027042
update /usr/local/cacti/rra/rsdev4_hdd_used_11.rrd --template hdd_used N:1048576000
update /usr/local/cacti/rra/rsdev4_hdd_used_12.rrd --template hdd_used N:780140544
time: 26
root@nms2:/usr/local/cacti#
Figured out why the upgrade didn't work...when I imported the old cacti.sql for the new version, it didn't go without error so what I did was go into the cacti mysql database and removed all the tables and then I imported from the new cacti.sql to the cacti database. Now snmp works for getting mounted hard drive info via snmp from unix boxes...at last! Don't do it this way with an exsistinginstall, you will loose your data.. I use Sentinix and the stock install of cacti version .8.3a would not talk correctly to the AIX boxes via snmp. Now with version .8.5 it works fine.
Who is online
Users browsing this forum: No registered users and 5 guests