SwapCached-Error with cacti 0.6

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pbleser

Post by pbleser »

I'm always getting the following error when cmd.php is executed:
ERROR: expected 1 data source readings (got 2) from N:SwapCached::...

The strage thing is, data_src has a row where its value is "SwapCached: 2080".
It seems that data_src is updated by the cron job, because removing the ": 2080" from the field in the database doesn't fix it.
Do you have any idea what could be wrong ? I'd like to know before I'd have to dive into cacti's sourcecode...

thanks.
pbleser

Post by pbleser »

OK, I found the error.
2.4.x kernels have "Cached" and "SwapCached" in /proc/meminfo.
Just need to change "Cached" into "^Cached" in SQL (line #970) and it works :smile:
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

One of the things that cacti needs work on is the perl scripts it uses to gather data. Most were origionally written to gather data from my own servers and probably do not scale as well as they should.

If you come up with any more "robust" scripts than are included, I will be more than happy to include them in a future version of cacti.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests