Graphs not updating with cactid

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

Moderators: Developers, Moderators

Post Reply
fluxor
Posts: 7
Joined: Mon Jun 26, 2006 1:57 pm

Graphs not updating with cactid

Post by fluxor »

Hi, I just installed cacti recently on a RH EL 4 Update 3 machine and compiled Cactid. Now whenever I change my poller to Cactid the graphs stop updating with new information. When I look into the Logs Cactid is running and seems to be processing the RRD's but yet the RRD's in the RRA directory are not being updated.

I have already ruled out a permissions issue by allowing full access to the files. Is there a known bug or issue? I'm using RRD 1.0.x and Net-SNMP 5.x

If there is any other information needed please ask. Thanks
marlobello
Posts: 12
Joined: Wed Dec 07, 2005 5:43 pm
Location: Salt Lake City, Utah

Same Problem here

Post by marlobello »

I have the exact same issues, I am on the latest version of cacti and cactid. Running on SLES 9.
Marlo Bell
fluxor
Posts: 7
Joined: Mon Jun 26, 2006 1:57 pm

Post by fluxor »

This is driving me nuts. I'm not getting any errors anywhere, yet the rrd's will not update.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I have to say this... Just to make sure...

You do know that you still run poller.php, you have to select cactid in the Cacti settings and define it's path. Poller.php takes the data collected from cmd.php or cactid and writes it to the rrdtool files.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
marlobello
Posts: 12
Joined: Wed Dec 07, 2005 5:43 pm
Location: Salt Lake City, Utah

Weirdness

Post by marlobello »

Yeah the poller thing threw me for a loop for a while, but then I got it figured out and thougt all was well. I did discover that cactid was processing SOME of my data, but not all of it. Here is the results of some of my testing. I switch back and forth with cmd.php and cactid and changed some of the threading options (notice the number RRDsProcessed changes--I don't know why):

06/27/2006 11:41:51 AM - SYSTEM STATS: Time:110.2477 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 11:46:54 AM - SYSTEM STATS: Time:113.1316 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 11:51:59 AM - SYSTEM STATS: Time:117.9226 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 11:57:15 AM - SYSTEM STATS: Time:134.2271 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 12:02:04 PM - SYSTEM STATS: Time:122.9082 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 12:06:56 PM - SYSTEM STATS: Time:114.8777 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 12:11:51 PM - SYSTEM STATS: Time:110.1384 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:5449
06/27/2006 12:16:50 PM - SYSTEM STATS: Time:109.3826 Method:cmd.php Processes:20 Threads:N/A Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:3777
06/27/2006 12:20:21 PM - SYSTEM STATS: Time:20.3718 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:25:22 PM - SYSTEM STATS: Time:20.7497 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:30:21 PM - SYSTEM STATS: Time:20.3815 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:35:21 PM - SYSTEM STATS: Time:20.3712 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:40:22 PM - SYSTEM STATS: Time:20.5136 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:45:21 PM - SYSTEM STATS: Time:20.3649 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:50:21 PM - SYSTEM STATS: Time:20.3539 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 12:55:22 PM - SYSTEM STATS: Time:21.4532 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:00:22 PM - SYSTEM STATS: Time:20.4435 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:05:21 PM - SYSTEM STATS: Time:20.3587 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:10:21 PM - SYSTEM STATS: Time:20.3464 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:15:22 PM - SYSTEM STATS: Time:20.8576 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:20:21 PM - SYSTEM STATS: Time:20.3107 Method:cactid Processes:20 Threads:5 Hosts:35 HostsPerProcess:2 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:25:12 PM - SYSTEM STATS: Time:11.2350 Method:cactid Processes:10 Threads:10 Hosts:35 HostsPerProcess:4 DataSources:7549 RRDsProcessed:1672
06/27/2006 01:30:13 PM - SYSTEM STATS: Time:11.6050 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 01:33:58 PM - SYSTEM STATS: Time:15.1918 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 01:39:52 PM - SYSTEM STATS: Time:292.9538 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:3334
06/27/2006 01:39:54 PM - SYSTEM STATS: Time:292.4503 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:698
06/27/2006 01:40:13 PM - SYSTEM STATS: Time:11.6908 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 01:45:13 PM - SYSTEM STATS: Time:11.7808 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 01:50:13 PM - SYSTEM STATS: Time:11.3229 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 01:55:13 PM - SYSTEM STATS: Time:11.2897 Method:cactid Processes:10 Threads:10 Hosts:34 HostsPerProcess:4 DataSources:7544 RRDsProcessed:1667
06/27/2006 02:01:47 PM - SYSTEM STATS: Time:106.0797 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:06:46 PM - SYSTEM STATS: Time:103.8650 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:11:46 PM - SYSTEM STATS: Time:104.5727 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:16:46 PM - SYSTEM STATS: Time:104.3258 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:21:46 PM - SYSTEM STATS: Time:104.5190 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:26:47 PM - SYSTEM STATS: Time:105.9871 Method:cmd.php Processes:20 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 02:30:22 PM - SYSTEM STATS: Time:20.3917 Method:cactid Processes:20 Threads:10 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 02:39:54 PM - SYSTEM STATS: Time:292.6947 Method:cactid Processes:20 Threads:10 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:335
06/27/2006 02:44:54 PM - SYSTEM STATS: Time:292.4194 Method:cactid Processes:20 Threads:10 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:335
06/27/2006 02:49:54 PM - SYSTEM STATS: Time:292.6821 Method:cactid Processes:1 Threads:10 Hosts:34 HostsPerProcess:34 DataSources:7544 RRDsProcessed:132
06/27/2006 02:54:54 PM - SYSTEM STATS: Time:292.1254 Method:cactid Processes:1 Threads:10 Hosts:34 HostsPerProcess:34 DataSources:7544 RRDsProcessed:132
06/27/2006 02:55:23 PM - SYSTEM STATS: Time:21.2651 Method:cactid Processes:20 Threads:20 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 02:57:17 PM - SYSTEM STATS: Time:23.7836 Method:cactid Processes:30 Threads:30 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 02:58:25 PM - SYSTEM STATS: Time:22.4974 Method:cactid Processes:30 Threads:30 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 02:59:27 PM - SYSTEM STATS: Time:23.5383 Method:cactid Processes:30 Threads:30 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 03:00:24 PM - SYSTEM STATS: Time:22.3681 Method:cactid Processes:30 Threads:30 Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:1667
06/27/2006 03:06:47 PM - SYSTEM STATS: Time:105.4097 Method:cmd.php Processes:30 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 03:11:50 PM - SYSTEM STATS: Time:108.3260 Method:cmd.php Processes:30 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 03:17:10 PM - SYSTEM STATS: Time:128.8364 Method:cmd.php Processes:30 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 03:22:06 PM - SYSTEM STATS: Time:124.1678 Method:cmd.php Processes:30 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
06/27/2006 03:26:45 PM - SYSTEM STATS: Time:104.4100 Method:cmd.php Processes:30 Threads:N/A Hosts:34 HostsPerProcess:2 DataSources:7544 RRDsProcessed:3772
Marlo Bell
fluxor
Posts: 7
Joined: Mon Jun 26, 2006 1:57 pm

Post by fluxor »

I never ran into that .. I understood that the poller.php was the script that encompassed whatever the method was ... Whether it be cmd.php or cactid. But alas no graphs
nan03
Posts: 1
Joined: Tue Apr 20, 2004 4:08 pm
Location: The Netherlands / Holland
Contact:

Re: Weirdness

Post by nan03 »

marlobello wrote:Yeah the poller thing threw me for a loop for a while, but then I got it figured out and thougt all was well. I did discover that cactid was processing SOME of my data, but not all of it. Here is the results of some of my testing. I switch back and forth with cmd.php and cactid and changed some of the threading options (notice the number RRDsProcessed changes--I don't know wChy):
Hello,

I'm running the latest cactid (downloaded from this site) on a debian machine. I have the exact symptoms as described in this thread.

Poller.php is called every 5 minutes through crontab. Switching between cactid and cmd.php is done via gui. Path of cactid is ok.

Using cactid, some graphs will get updated, but without any data. After switching to cmd.php, the graphs will be updated in total, meaning that the data is actually gathered by cactid, but somehow not showing in the graphs.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Can you please sepicfy (DEBUG level may help), which kind of data sources doesn't get updated. Those using SNMP, script thingies or script data queries?
Reinhard
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would suggest the latest SVN version. I have made changes recently. I have never seen the behavior you speak of before BTB. I would suspect though, that your poller cache may be changing size or that you have a damaged database. You might want to attempt a repair of it.

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?
marlobello
Posts: 12
Joined: Wed Dec 07, 2005 5:43 pm
Location: Salt Lake City, Utah

Confirmation and questions

Post by marlobello »

Thanks for you replies on this topic. Here is some more information, speculation, and questions on this topic.

Here is what is in my log file:
08/01/2006 03:50:05 PM - SYSTEM STATS: Time:3.8239 Method:cactid Processes:1 Threads:10 Hosts:34 HostsPerProcess:34 DataSources:4840 RRDsProcessed:802
08/01/2006 03:58:10 PM - SYSTEM STATS: Time:188.8754 Method:cmd.php Processes:1 Threads:N/A Hosts:34 HostsPerProcess:34 DataSources:4840 RRDsProcessed:2420

I didn't get any valuable information from higher Debugging levels, so this is just Statistics for the poller. For some reason only about 1/3 of my RRDs are being updated. This is confirmed, cuz the timestamp on most of the RRDs isn't changing. So it isn't just a graphing issue. I don't think the database could have a problem, cuz the cmd.php method works flawlessly, but slow (I have updated the "Processes" to help this, but still slower than cactid).

I should include my system info with this too:
Compaq DL380 G4
Intel(R) Xeon(TM) CPU 3.60GHz (Intel x86_64)
4 Gig of RAM
Latest release of Cacti and Cactid (not SVN)

I will give the SVN version a try, but how can I test if the poller cache is changing size as mention in the previous post? Could the 64 bit system be related to this problem?

Thanks
Marlo Bell
marlobello
Posts: 12
Joined: Wed Dec 07, 2005 5:43 pm
Location: Salt Lake City, Utah

SNMP Only

Post by marlobello »

Also, I am only doing bandwith graphs via SNMP. No script plugins.
Marlo Bell
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I expect if you use the Beta in the Announcements Forum, you will not have these problems.

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?
bpowers7
Posts: 9
Joined: Tue Apr 04, 2006 10:32 am

same issue

Post by bpowers7 »

I have upgraded to the latest Cacti 0.8.6i reelase as well as the Cactid 0.8.6i release from a pevious CactiCactid 0.8.6g version and I am seeing the exact same issue.

The graphs update without any errors when running the cmd.php poller, but as soon as I change Cacti to use the cactid feature, the .rrd files stop updating and ultimately the graphs stop graphing.
In the logs I still get:

12/12/2006 05:34:54 PM - SYSTEM STATS: Time:293.3710 Method:cactid Processes:10 Threads:10 Hosts:3 HostsPerProcess:1 DataSources:11 RRDsProcessed:0

and everything else appears to be running right along...
I haven't upp'd a DEBUG log because it does not appear that this thread has been officially closed from "marlobello's" posts.

Any help here?
- BP7
marlobello
Posts: 12
Joined: Wed Dec 07, 2005 5:43 pm
Location: Salt Lake City, Utah

FIX!!!! For Me At Least

Post by marlobello »

To anyone following this thread. I upgraded to 8.6i of cactid, but that didn't fix the issue. On a fluke from some weird output I was getting I changed the ping type from UDP only to SNMP and UDP. And tah-dah it works as I would expect. cmd.php and cactid both process the same number of RRDs.

I am guessing that cactid was trying to ping a device before doing snmp on it. Some of those UDP ping must have been failing.
Marlo Bell
bbice
Cacti User
Posts: 71
Joined: Mon May 13, 2002 6:53 pm

Re: same issue

Post by bbice »

bpowers7 wrote:The graphs update without any errors when running the cmd.php poller, but as soon as I change Cacti to use the cactid feature, the .rrd files stop updating and ultimately the graphs stop graphing.
In the logs I still get:

12/12/2006 05:34:54 PM - SYSTEM STATS: Time:293.3710 Method:cactid Processes:10 Threads:10 Hosts:3 HostsPerProcess:1 DataSources:11 RRDsProcessed:0

Any help here?
If you see zero RRDs being processed when you switch to cactid, one thing that you might take a look at is changing your cactid.conf so instead of using "localhost" it specifies "127.0.0.1". I found recently that it had problems connecting to mysql using "localhost" (for reasons I didn't bother to figure out) but could connect using 127.0.0.1 fine. I didn't see any errors but figured it out by inserting some fprintf(stderr...) statements in the code to see what cactid's problem was.

If when you switch to cactid some but not all RRDs get processed, I'd bet you're seeing a different problem than the one I encountered. That would imply that cactid could query the mysql database but was getting incomplete results... or something... :-)

Brent
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests