I have fresh installed cacti and all looks fine:
- mySQL DB
- mySQL User
- cacti Config
- cacti rights:
Code: Select all
all: 748
-rw-r--r-- 1 system system 5892 2005-04-27 02:47 about.php
-rw-r--r-- 1 system system 4773 2005-04-27 02:47 auth_changepassword.php
-rw-r--r-- 1 system system 6171 2005-04-27 02:47 auth_login.php
-rw------- 1 system system 171381 2005-04-27 02:47 cacti.sql
-rw-r--r-- 1 system system 11832 2005-04-27 02:47 cdef.php
-rw-r--r-- 1 system system 15743 2005-04-27 02:47 cmd.php
-rw-r--r-- 1 system system 5569 2005-04-27 02:47 color.php
-rw-r--r-- 1 system system 16107 2005-04-27 02:47 data_input.php
-rw-r--r-- 1 system system 25693 2005-04-27 02:47 data_queries.php
-rw-r--r-- 1 system system 39237 2005-04-27 02:47 data_sources.php
-rw-r--r-- 1 system system 24717 2005-04-27 02:47 data_templates.php
drwxr-xr-x 5 system system 4096 2005-04-27 02:47 docs
-rw-r--r-- 1 system system 5762 2005-04-27 02:47 gprint_presets.php
-rw-r--r-- 1 system system 2942 2005-04-27 02:47 graph_image.php
-rw-r--r-- 1 system system 9687 2005-04-27 02:47 graph.php
-rw-r--r-- 1 system system 6318 2005-04-27 02:47 graph_settings.php
-rw-r--r-- 1 system system 10057 2005-04-27 02:47 graphs_items.php
-rw-r--r-- 1 system system 29957 2005-04-27 02:47 graphs_new.php
-rw-r--r-- 1 system system 41889 2005-04-27 02:47 graphs.php
-rw-r--r-- 1 system system 9428 2005-04-27 02:47 graph_templates_inputs.php
-rw-r--r-- 1 system system 16125 2005-04-27 02:47 graph_templates_items.php
-rw-r--r-- 1 system system 18376 2005-04-27 02:47 graph_templates.php
-rw-r--r-- 1 system system 12581 2005-04-27 02:47 graph_view.php
-rw-r--r-- 1 system system 26483 2005-04-27 02:47 host.php
-rw-r--r-- 1 system system 13225 2005-04-27 02:47 host_templates.php
drwxr-xr-x 2 system system 4096 2005-04-27 02:47 images
drwxr-xr-x 5 system system 4096 2005-06-19 23:08 include
-rw-r--r-- 1 system system 2271 2005-04-27 02:47 index.php
drwxr-xr-x 2 system system 4096 2005-04-27 02:47 install
drwxr-xr-x 3 system system 4096 2005-04-27 02:47 lib
-rw-r--r-- 1 system system 15141 2005-04-27 02:47 LICENSE
drwxr-xr-x 2 system system 4096 2005-04-27 02:47 log
-rw-r--r-- 1 system system 1796 2005-04-27 02:47 logout.php
-rwxr-xr-x 1 system system 8810 2005-06-19 23:14 poller.php
-rw-r--r-- 1 system system 72 2005-04-27 02:47 README
drwxr-xr-x 5 system system 4096 2005-04-27 02:47 resource
drwxr-xr-x 2 system system 4096 2005-06-19 23:10 rra
-rw-r--r-- 1 system system 6068 2005-04-27 02:47 rra.php
drwxr-xr-x 2 system system 4096 2005-04-27 02:47 scripts
-rw-r--r-- 1 system system 6603 2005-04-27 02:47 script_server.php
-rw-r--r-- 1 system system 353 2005-04-27 02:47 script_server.pl
-rw-r--r-- 1 system system 4832 2005-04-27 02:47 settings.php
-rw-r--r-- 1 system system 6813 2005-04-27 02:47 templates_export.php
-rw-r--r-- 1 system system 5843 2005-04-27 02:47 templates_import.php
-rw-r--r-- 1 system system 16167 2005-04-27 02:47 tree.php
-rw-r--r-- 1 system system 26373 2005-04-27 02:47 user_admin.php
-rw-r--r-- 1 system system 9841 2005-04-27 02:47 utilities.php
#!/usr/bin/php -c /opt/pdadmin/etc/php.ini/system/php.ini
Code: Select all
Content-type: text/html
X-Powered-By: PHP/4.3.11
06/19/2005 11:20:18 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/system/cmd.php 0 1]
Waiting on 1/1 pollers.
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1119216018:U
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_swap_4.rrd --template mem_swap 1119216018:U
OK u:0.01 s:0.00 r:0.99
OK u:0.01 s:0.00 r:0.99
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_load_1min_5.rrd --template 1119216018:U
ERROR: Not enough arguments
OK u:0.01 s:0.00 r:0.99
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_users_6.rrd --template users 1119216018:U
OK u:0.01 s:0.00 r:1.00
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_proc_7.rrd --template proc 1119216018:U
OK u:0.01 s:0.00 r:1.00
06/19/2005 11:20:19 PM - SYSTEM STATS: Time: 1.0186 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
Code: Select all
06/19/2005 11:20:19 PM - SYSTEM STATS: Time: 1.0186 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_proc_7.rrd --template proc 1119216018:U
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_users_6.rrd --template users 1119216018:U
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_load_1min_5.rrd --template 1119216018:U
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_swap_4.rrd --template mem_swap 1119216018:U
06/19/2005 11:20:19 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1119216018:U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Time: 0.0065 s, Theads: N/A, Hosts: 1
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_processes.pl, output: U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_users.pl, output: U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/loadavg_multi.pl, output: U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl SwapFree:, output: U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl MemFree:, output: U
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
06/19/2005 11:20:18 PM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above is recommended for performance considerations.
06/19/2005 11:20:18 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/system/cmd.php 0 1]
06/19/2005 11:14:38 PM - SYSTEM STATS: Time: 1.0191 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
06/19/2005 11:14:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_proc_7.rrd --template proc 1119215677:U
06/19/2005 11:14:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_users_6.rrd --template users 1119215677:U
06/19/2005 11:14:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_load_1min_5.rrd --template 1119215677:U
06/19/2005 11:14:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_swap_4.rrd --template mem_swap 1119215677:U
06/19/2005 11:14:38 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1119215677:U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Time: 0.0058 s, Theads: N/A, Hosts: 1
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_processes.pl, output: U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_users.pl, output: U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/loadavg_multi.pl, output: U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl SwapFree:, output: U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl MemFree:, output: U
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
06/19/2005 11:14:37 PM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above is recommended for performance considerations.
06/19/2005 11:14:37 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/system/cmd.php 0 1]
06/19/2005 11:13:05 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/system/cmd.php 0 1]
06/19/2005 11:12:34 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1119129154 --end=1119215554 --title="Localhost - Processes" --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/06/18 23:12:34 To 2005/06/19 23:12:34\c" COMMENT:" \n" --vertical-label="processes" DEF:a="/home/system/rra/localhost_proc_7.rrd":proc:AVERAGE AREA:a#F51D30:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
06/19/2005 11:12:34 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1119129154 --end=1119215554 --title="Localhost - Logged in Users" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/06/18 23:12:34 To 2005/06/19 23:12:34\c" COMMENT:" \n" --vertical-label="users" DEF:a="/home/system/rra/localhost_users_6.rrd":users:AVERAGE AREA:a#4668E4:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf"
06/19/2005 11:12:34 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1119129154 --end=1119215554 --title="Localhost - Load Average" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0 COMMENT:"From 2005/06/18 23:12:34 To 2005/06/19 23:12:34\c" COMMENT:" \n" --vertical-label="processes in the run queue" DEF:a="/home/system/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="/home/system/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="/home/system/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1119215254,GT,a,a,UN,0,a,IF,IF,TIME,1119215254,GT,b,b,UN,0,b,IF,IF,TIME,1119215254,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" STACK:b#EA8F00:"5 Minute Average" GPRINT:b:LAST:" Current\:%8.2lf\n" STACK:c#FF0000:"15 Minute Average" GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000:""
06/19/2005 11:12:34 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1119129154 --end=1119215554 --title="Localhost - Memory Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/06/18 23:12:34 To 2005/06/19 23:12:34\c" COMMENT:" \n" --vertical-label="kilobytes" DEF:a="/home/system/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE DEF:b="/home/system/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" STACK:b#FFC73B:"Swap" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"
06/19/2005 11:10:41 PM - SYSTEM STATS: Time: 1.0542 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
06/19/2005 11:10:40 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:10:40 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:10:40 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:10:40 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:10:40 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/19/2005 11:08:00 PM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.
Code: Select all
Data Source: Localhost - Memory - Free
RRD: /home/system/rra/localhost_mem_buffers_3.rrd
Action: 1, Script: perl /home/system/scripts/linux_memory.pl MemFree:
Data Source: Localhost - Memory - Free Swap
RRD: /home/system/rra/localhost_mem_swap_4.rrd
Action: 1, Script: perl /home/system/scripts/linux_memory.pl SwapFree:
Data Source: Localhost - Load Average
RRD: /home/system/rra/localhost_load_1min_5.rrd
Action: 1, Script: perl /home/system/scripts/loadavg_multi.pl
Data Source: Localhost - Logged in Users
RRD: /home/system/rra/localhost_users_6.rrd
Action: 1, Script: perl /home/system/scripts/unix_users.pl
Data Source: Localhost - Processes
RRD: /home/system/rra/localhost_proc_7.rrd
Action: 1, Script: perl /home/system/scripts/unix_processes.pl
Code: Select all
as root -> perl /home/system/scripts/unix_processes.pl -> 161
In the past all worked fine. But now I don't get any data for the graphs.
The crontab don't work ->
Code: Select all
*/5 * * * * root /usr/local/pd-admin2/bin/php -c /opt/pdadmin/etc/php.ini/system/php.ini /home/system/poller.php > /dev/null 2>&1
Code: Select all
Localhost Up 127.0.0.1
Code: Select all
RRDTool Says: OK
PHP: newest version [4.3.11]
Is there any problem with the user "system" and the ./poller.php starter "root"? I need to start it with sudeors or with root to access snmp and the perl system calls. I think the poller.php don't sends the right data to the database (rrd)
Any idears?
EDIT:
new cacti log:
Code: Select all
06/20/2005 01:01:41 AM - SYSTEM STATS: Time: 1.0202 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
06/20/2005 01:01:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_proc_7.rrd --template proc 1119222100:U
06/20/2005 01:01:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_users_6.rrd --template users 1119222100:U
06/20/2005 01:01:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_load_1min_5.rrd --template 1119222100:U
06/20/2005 01:01:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_swap_4.rrd --template mem_swap 1119222100:U
06/20/2005 01:01:41 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /home/system/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1119222100:U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Time: 0.0065 s, Theads: N/A, Hosts: 1
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_processes.pl, output: U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/unix_users.pl, output: U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/loadavg_multi.pl, output: U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl SwapFree:, output: U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] CMD: perl /home/system/scripts/linux_memory.pl MemFree:, output: U
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
06/20/2005 01:01:40 AM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above is recommended for performance considerations.
06/20/2005 01:01:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /home/system/cmd.php 0 1]