Hi everyone,
i have installed Cacti 0.8.7i on a FreeBSD 8.0-RELEASE, with php5-5.3.8, net-snmp-5.7.1_3, rrdtool-1.4.5 and apache-2.2.20.
Cacti was installed on /usr/local/share/cacti with permissions drwxr-xr-x and owner:group www:www.
The problem is that only when a run the /usr/local/share/cacti/poller.php manually, the hosts start to be in recovering mode and the rrd graphs being to be created, but not populated. If I put on cron to run poller.php as it should be, it gave me the following at cacti.log:
Here the cacti.log when I run poller.php manually:
The host are configured as Generic SNMP Enabled Host, and the response from snmp when I save it was the following:
I can do Associate Data Queries with no errors, like SNMP - Interface Statistics and Unix - Get Mounted Partitions.
I can create new graphs with those DataQueries, but they are not populate.
So, my 2 problems are:
1 - Make poller.php run on cron
2 - Make rrd populate the rrd files.
Thanks at all!
i have installed Cacti 0.8.7i on a FreeBSD 8.0-RELEASE, with php5-5.3.8, net-snmp-5.7.1_3, rrdtool-1.4.5 and apache-2.2.20.
Cacti was installed on /usr/local/share/cacti with permissions drwxr-xr-x and owner:group www:www.
The problem is that only when a run the /usr/local/share/cacti/poller.php manually, the hosts start to be in recovering mode and the rrd graphs being to be created, but not populated. If I put on cron to run poller.php as it should be, it gave me the following at cacti.log:
Code:
01/24/2012 10:48:00 AM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '1'
01/24/2012 10:48:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q
"/usr/local/share/cacti/cmd.php" 0 4]
01/24/2012 10:48:00 AM - CMDPHP: Poller[0] Host[3] PING: ICMP ping Timed out
01/24/2012 10:48:00 AM - CMDPHP: Poller[0] Host[3] SNMP: SNMP not performed due to setting or ping result.
01/24/2012 10:48:00 AM - CMDPHP: Poller[0] Host[4] PING: ICMP ping Timed out
01/24/2012 10:48:00 AM - CMDPHP: Poller[0] Time: 0.0074 s, Theads: N/A, Hosts: 2
01/24/2012 10:48:00 AM - SYSTEM STATS: Time:0.1387 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7
RRDsProcessed:0
Here the cacti.log when I run poller.php manually:
Code:
PHP Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
01/24/2012 10:52:45 AM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '45', Max Runtime '58', Poller Runs: '1'
01/24/2012 10:52:45 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/bin/php, ARGS: -q
"/usr/local/share/cacti/cmd.php" 0 4]
PHP Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Deprecated: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
01/24/2012 10:52:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/servidor_www_users_59.rrd
--template users 1327409565:1
OK u:0.01 s:0.00 r:0.04
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
01/24/2012 10:52:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/servidor_www_hdd_free_64.rrd
--template hdd_used:hdd_free 1327409565:949326:4653562
OK u:0.01 s:0.00 r:0.05
Waiting on 1 of 1 pollers.
01/24/2012 10:52:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/neomap-firewall_hdd_free_54.rrd
--template hdd_free:hdd_used 1327409565:161543904:80227112
OK u:0.01 s:0.00 r:0.06
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
01/24/2012 10:52:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/neomap-firewall_mem_cache_49.rrd
--template mem_cache 1327409565:1524420
OK u:0.01 s:0.00 r:0.09
01/24/2012 10:52:45 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/neomap-firewall_cpu_user_44.rrd
--template cpu_user 1327409565:5955422
OK u:0.01 s:0.00 r:0.09
01/24/2012 10:52:45 AM - SYSTEM STATS: Time:0.2055 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:7
RRDsProcessed:5
Loop Time is: 0.21
Sleep Time is: 59.79
Total Time is: 0.21
The host are configured as Generic SNMP Enabled Host, and the response from snmp when I save it was the following:
Code:
Web WWW (localhost)
SNMP Information
System:FreeBSD neomail 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Mon Jul 5
/obj/usr/src/sys/NEOPROXY i386
Uptime: 542540 (0 days, 1 hours, 30 minutes)
Hostname: neomail
Location: xxxx
Contact: xxxxx
Ping Results
ICMP Ping Success (0.051 ms)
I can do Associate Data Queries with no errors, like SNMP - Interface Statistics and Unix - Get Mounted Partitions.
I can create new graphs with those DataQueries, but they are not populate.
So, my 2 problems are:
1 - Make poller.php run on cron
2 - Make rrd populate the rrd files.
Thanks at all!