Poller working, but graphs contain no data

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

Moderators: Developers, Moderators

Post Reply
douglagm
Posts: 5
Joined: Tue Nov 22, 2005 11:10 am
Location: South Africa

Poller working, but graphs contain no data

Post by douglagm »

Hi,

In the cacit.log I can see the poller.php receiving infotmation, but the graphs do not contain data. I have search high and low. I have also upgraded to 0.8.6g, thought this might solve the problem. I came accross a few links that suggested that it is rights related:
1. chomd -R 755 cacti/ chown -R wwwrun:www cacti/
2. chown -R cactiuser cacti/

I have applied both, but still nothing. Out of desperation I did :
chomd -R 755 cacti/
chown -R root:root cacti/

I know this is not secure, but I wanted to elimated rights. The poller.php in the cron runs also as root.

cacti.log file extract:
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2148] WARNING: Result from SERVER not valid. Partial Result: U
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2148] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 1, output: U
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 1 output U
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 2'
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2149] WARNING: Result from SERVER not valid. Partial Result: U
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2149] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 2, output: U
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23.ESKOM.CO.ZA 225 1:161:500:public:::MD5::[None] get usage 2 output U
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 3'
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2150] WARNING: Result from SERVER not valid. Partial Result: U
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[225] DS[2150] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 3, output: U
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu BLVCAS23 225 1:161:500:public:::MD5::[None] get usage 3 output U
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[171] DS[1746] SNMP: v1: ELNCAS32, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 1765368916
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Host[171] DS[1746] SNMP: v1: ELNCAS32, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 805740220
11/22/2005 06:20:36 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
11/22/2005 06:20:36 PM - CMDPHP: Poller[0] Time: 34.9466 s, Theads: N/A, Hosts: 12
11/22/2005 06:20:37 PM - CMDPHP: Poller[0] Host[275] DS[2754] SNMP: v1: MKDCAS40, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 3035847523
11/22/2005 06:20:37 PM - CMDPHP: Poller[0] Host[275] DS[2754] SNMP: v1: MKDCAS40, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 1806552730
11/22/2005 06:20:37 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
11/22/2005 06:20:37 PM - CMDPHP: Poller[0] Time: 33.3602 s, Theads: N/A, Hosts: 12
11/22/2005 06:20:38 PM - CMDPHP: Poller[0] Host[225] DS[2151] SNMP: v1: BLVCAS23, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 3267141138
11/22/2005 06:20:38 PM - CMDPHP: Poller[0] Host[225] DS[2151] SNMP: v1: BLVCAS23, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 169516951
11/22/2005 06:20:38 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
11/22/2005 06:20:38 PM - CMDPHP: Poller[0] Time: 34.2077 s, Theads: N/A, Hosts: 12

All Graphs look like the example.

Help would be greatly appricated
Attachments
example.zip
(30.18 KiB) Downloaded 97 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please apply the patches here: http://www.cacti.net/downloads/patches/ ... re-patched and then clear your poller cache. Please post results.

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?
douglagm
Posts: 5
Joined: Tue Nov 22, 2005 11:10 am
Location: South Africa

Post by douglagm »

Hi,
Thanks for the reply. I have aplied the patch and cleared the Poller Cache.

Here is the output of the Clear Poller Cache

Data Source: NOCC_Server - Traffic - x.x.x.x/3COM Etherlink
RRD: /srv/www/htdocs/cacti/rra/nocc_server_traffic_in_3647.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.16.1 (Host: server, Community: public)
Data Source: NOCC_server - Traffic - x.x.x.x/Intel(R) PRO/10
RRD: /srv/www/htdocs/cacti/rra/nocc_server_traffic_in_3648.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.10.2 (Host: server, Community: public)
Data Source: NOCC_MP2NGW12 - Traffic - x.x.x.x/Intel(R) PRO/10
RRD: /srv/www/htdocs/cacti/rra/nocc_server_traffic_in_3648.rrd
Action: 0, OID: .1.3.6.1.2.1.2.2.1.16.2 (Host: server, Community: public)
Data Source: NOCC_server - File System Reads
RRD: /srv/www/htdocs/cacti/rra/nocc_server_fs_reads_3649.rrd
Action: 0, OID: .1.3.6.1.4.1.23.2.28.2.1.0 (Host: server, Community: public)


Below is the output of the cacti.log

11/27/2005 07:22:02 PM - CMDPHP: Poller[0] Host[171] DS[1740] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk server 171 1:161:500:public:::MD5::[None] get used 4, output: 6877499392
11/27/2005 07:22:02 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'server 171 1:161:500:public:::MD5::[None] get total 5'
11/27/2005 07:22:03 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk server 171 1:161:500:public:::MD5::[None] get total 5 output 4294901760
11/27/2005 07:22:03 PM - CMDPHP: Poller[0] Host[171] DS[1741] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk server 171 1:161:500:public:::MD5::[None] get total 5, output: 4294901760
11/27/2005 07:22:03 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_disk.php' SCRIPT: 'ss_host_disk' CMD: 'server 171 1:161:500:public:::MD5::[None] get used 5'
11/27/2005 07:22:03 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk server 171 1:161:500:public:::MD5::[None] get used 5 output 0
11/27/2005 07:22:03 PM - CMDPHP: Poller[0] Host[171] DS[1741] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk server 171 1:161:500:public:::MD5::[None] get used 5, output: 0
11/27/2005 07:22:03 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'server 171 1:161:500:public:::MD5::[None] get usage 0'
11/27/2005 07:22:04 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 0 output 0
11/27/2005 07:22:04 PM - CMDPHP: Poller[0] Host[171] DS[1742] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 0, output: 0
11/27/2005 07:22:04 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'server 171 1:161:500:public:::MD5::[None] get usage 1'
11/27/2005 07:22:06 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 1 output 0
11/27/2005 07:22:06 PM - CMDPHP: Poller[0] Host[171] DS[1743] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 1, output: 0
11/27/2005 07:22:06 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'server 171 1:161:500:public:::MD5::[None] get usage 2'
11/27/2005 07:22:07 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 2 output 0
11/27/2005 07:22:07 PM - CMDPHP: Poller[0] Host[171] DS[1744] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 2, output: 0
11/27/2005 07:22:07 PM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/srv/www/htdocs/cacti/scripts/ss_host_cpu.php' SCRIPT: 'ss_host_cpu' CMD: 'server 171 1:161:500:public:::MD5::[None] get usage 3'
11/27/2005 07:22:09 PM - PHPSVR: Poller[0] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 3 output 0
11/27/2005 07:22:09 PM - CMDPHP: Poller[0] Host[171] DS[1745] SERVER: /srv/www/htdocs/cacti/scripts/ss_host_cpu.php ss_host_cpu server 171 1:161:500:public:::MD5::[None] get usage 3, output: 0
11/27/2005 07:22:09 PM - CMDPHP: Poller[0] Host[171] DS[1746] SNMP: v1: server, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 3480849986
11/27/2005 07:22:09 PM - CMDPHP: Poller[0] Host[171] DS[1746] SNMP: v1: server, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 1003424760
11/27/2005 07:22:09 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
11/27/2005 07:22:09 PM - CMDPHP: Poller[0] Time: 123.5901 s, Theads: N/A, Hosts: 12

Unfortunately the graphs are still the same.
Regards[/b]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

from mysql, do the following:

select count(*) from poller_output;

If your row count is high, then you have a PHP issue relative to too many rows in poller_output. The easy fix will be to increase maximum memory in PHP.INI and then truncate the poller_output table.

truncate table poller_output;

Doing so, you will loose the values. If on the other hand, the poller_output table is empty, you likely have a permissions issue or your cron is not running correctly.

If you turn logging to DEBUG, if you don't see your log growing very rapidly, I would suspect cron, otherwise, I would suspect permissions.

If it is permissions, then login as the poller account and run "php poller.php" and look for the error messages.

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?
douglagm
Posts: 5
Joined: Tue Nov 22, 2005 11:10 am
Location: South Africa

Post by douglagm »

Hi,

Below is the mysql row count, I would imagine this is fairly high
mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 7659952 |
+----------+
1 row in set (0.00 sec)

I have previously increated the max. memory limit in the php.ini and the poller.php(ini_set("memory_limit","256M");), I have upped both to 512M and restarted apache.

The logging is already debug and the extracts I provided where from when the poller.php runs via cron.

I have also chown -R root:root cacti/, I know this was insecure, but in my mind was the only way to make 100% sure that premissions where not the problem.

Will let you know....
douglagm
Posts: 5
Joined: Tue Nov 22, 2005 11:10 am
Location: South Africa

Post by douglagm »

Hi,

IT'S WORKING !!!!!! So I was on the right-track, just needed more memory.
THANKS a MILLION!!!!!!! :lol: :lol: :lol: :lol:
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests