After upgrade cacti/cactid - poller not processing all RRDs

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

Moderators: Developers, Moderators

dbrummer
Posts: 29
Joined: Wed Apr 19, 2006 11:50 am
Location: Las Vegas, NV
Contact:

After upgrade cacti/cactid - poller not processing all RRDs

Post by dbrummer »

Hello,
I have a large deployment of cacti with over 150 hosts and 25,000 data sources. I just recently updated to Cacti 0.8.6i and Cactid 0.8.6i. Nothing has been working as well as it used to after the upgrade. I am noticing the NaN issue in my graphs and I've followed all the steps in the NaN troubleshooting guide as well. I do not notice anything unusual except for the fact that not all of my RRD's are being processed. I can see in the log DEBUG Cactid polling my devices and putting the output into the MySQL database but not updating the RRD with the output. Any ideas?

As you can see the RRDProcessed number goes up and down. This number should be over 9500:

11/07/2006 08:38:15 AM - SYSTEM STATS: Time:193.5153 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:5971
11/07/2006 08:34:10 AM - SYSTEM STATS: Time:248.9619 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:5992
11/07/2006 08:28:04 AM - SYSTEM STATS: Time:182.5217 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:9479
11/07/2006 08:21:47 AM - SYSTEM STATS: Time:105.3721 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:5965
11/07/2006 08:18:16 AM - SYSTEM STATS: Time:194.9623 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:5819
11/07/2006 08:14:21 AM - SYSTEM STATS: Time:259.4138 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:9346
11/07/2006 08:07:56 AM - SYSTEM STATS: Time:175.4117 Method:cactid Processes:4 Threads:16 Hosts:166 HostsPerProcess:42 DataSources:27216 RRDsProcessed:5555

Your help in this is greatly apprecaited, thank you.
dbrummer
Posts: 29
Joined: Wed Apr 19, 2006 11:50 am
Location: Las Vegas, NV
Contact:

Post by dbrummer »

Note: I have downgraded back to Cacti 0.8.6h and my problem is gone. I tried using Cactid 0.8.6i with my Cacti 0.8.6h installation and I do not experience the problem. Looks like it's just limited to Cacti 0.8.6i.

-Dan
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

This appears to be the same problem I have:
http://forums.cacti.net/viewtopic.php?t=17433

However, cmd.php wasn't doing it for me and I could never get the older version of cactid to run. Hoping to get some support on fixing whatever this issue is before being forced to downgrade.
Rossco
Cacti User
Posts: 76
Joined: Sat Jan 15, 2005 4:52 pm
Location: London, England

identical problem

Post by Rossco »

I just upgraded to 0.8.6i from h and have the same problem on Win32 - I have over 16000 rrd's and am now only getting 6000-9000 processed according to the logs. There are no timeouts occuring that I can see.

Time to restore my database and copy back the files it seems :-(

Anyone else come across this?

Rossco
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

We have identified this as a bug. I have corrected it in SVN (BRANCH_0_8_6). The two files of interest are:

<path_cacti>/poller.php
<path_cacti>/lib/poller.php

You can get to the Web based SVN by following the link below:

http://svn.cacti.net/cgi-bin/viewcvs.cg ... 8_6/cacti/

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please note, if you are using the Plugin Architecture, you should either wait for Cigamit to release his maintenance pack or perform a DIFF.

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?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi Larry

I've made a diff against 0.8.6i + plugin architecture 1.0, but I don't see any difference :
  • before
    11/10/2006 02:22:09 PM - SYSTEM STATS: Time:127.6496 Method:cactid Processes:4 Threads:25 Hosts:228 HostsPerProcess:57 DataSources:6822 RRDsProcessed:3406
  • after
    11/10/2006 02:22:09 PM - SYSTEM STATS: Time:127.6496 Method:cactid Processes:4 Threads:25 Hosts:228 HostsPerProcess:57 DataSources:6822 RRDsProcessed:3406
Does this bug affect everyone using Cacti 0.8.6i ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I've seen your other post :oops:
TheWitness wrote:This bug will only affect you if you have more than 10k Data Sources. So, it does not affect everyone. But it will affect larger sites.
My main Cacti server is still running 0.8.6h, so I'm fine...
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Rossco
Cacti User
Posts: 76
Joined: Sat Jan 15, 2005 4:52 pm
Location: London, England

Post by Rossco »

Hi

I also can see no difference (other than plugin architecture hooks) between the last svn and the poller.php from plugin architecture. I can see there is the following additional lines/modified lines in the "lib\poller.php"

-----------------------
function process_poller_output($rrdtool_pipe, $remainder = FALSE) {

if ($remainder) {
$limit = "";
}else{
$limit = "LIMIT 10000";
}
-----------------------

Having just made the modifications I can still see no significant difference - half of the rrds are still not being processed. Am just rebuiolding poller cache to see if it makes a difference.

Thanks for your help so far.

Rossco
Rossco
Cacti User
Posts: 76
Joined: Sat Jan 15, 2005 4:52 pm
Location: London, England

Post by Rossco »

Hi

I dread to think what I'm breaking by doing this, but by replacing the two poller.php files with two from my 0.8.6h install, I now seem to have everything working normally again.

Unless anything nasty happens I'll hang on like this until a patch comes out.

Cheers

Rossco

SYSTEM STATS: Time:61.0253 Method:cactid Processes:5 Threads:100 Hosts:316 HostsPerProcess:64 DataSources:47498 RRDsProcessed:16443
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Rossco,

If you take the two poller files from SVN, you should be Ok. Please note, there are two files. poller.php and lib/poller.php, you only noted lib/poller.php.

Larry
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?
Jeb
Posts: 38
Joined: Tue May 24, 2005 2:50 am

Post by Jeb »

I have applied the patch but it seems that i have the same problem

11/18/2006 01:21:59 PM - SYSTEM STATS: Time:119.5609 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:20030
11/18/2006 01:17:39 PM - SYSTEM STATS: Time:156.5171 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:17289
11/18/2006 01:12:13 PM - SYSTEM STATS: Time:126.1268 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:13170
11/18/2006 01:01:50 PM - SYSTEM STATS: Time:109.2950 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:18813
11/18/2006 12:56:47 PM - SYSTEM STATS: Time:107.4840 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:19608
11/18/2006 12:51:41 PM - SYSTEM STATS: Time:100.8533 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:14910
11/18/2006 12:46:53 PM - SYSTEM STATS: Time:113.0835 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:15473
11/18/2006 12:44:21 PM - SYSTEM STATS: Time:255.0518 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:14577
11/18/2006 12:33:47 PM - SYSTEM STATS: Time:227.6766 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:14100
11/18/2006 12:26:39 PM - SYSTEM STATS: Time:98.9665 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:11509
11/18/2006 12:21:40 PM - SYSTEM STATS: Time:100.1794 Method:cactid Processes:2 Threads:5 Hosts:489 HostsPerProcess:245 DataSources:40374 RRDsProcessed:14311

Is there something to do after patching ?

Thanks,
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

increase your php memory and then edit you lib/poller.php. Look for a line "LIMIT 10000" and change to "LIMIT 50000". See if that helps.

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?
Jeb
Posts: 38
Joined: Tue May 24, 2005 2:50 am

Post by Jeb »

I have increased php memory to 64MB and LIMIT to 50000 but i still have the same problem
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have the 1 minute poller interval patch installed? You can tell by going to Settings->Poller and looking for a Poller Interval dropdown.

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?
Locked

Who is online

Users browsing this forum: No registered users and 6 guests