Gaps in Graphs since upgrading to v0.8.6b on FC2

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

Moderators: Developers, Moderators

_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Gaps in Graphs since upgrading to v0.8.6b on FC2

Post by _JPL_ »

I've been noticing periodic gaps in my graphs (all graphs) since upgrading to version 0.8.6b from 0.8.5 of cacti using poller.php. However, 2 routers added after the upgrade are not producing the same gaps in graphs. Any ideas?

Also, my memory usage graphs for win2k3 servers using nsclient are no longer graphing at all after the upgrade.

In the log file:
WARNING: Result from CMD not valid. Partial Result: Memory usage: total:

Does the poll expect to only get numbers and therefore will choke on a response like:

Memory usage: total:5729.37 Mb - used: 704.92 Mb (12%) - free: 5024.45 Mb (88%)
total:5729.37 used:704.92

Which worked fine in version 0.8.5. I have output fields defined as 'used' and 'total'. As I said, it was working fine previous to the upgrade.

Cacti running on FC2, php 4.4.3, apache 2.0, mysql 4.0.21

EDIT: I've just added the prepatched files from http://www.cacti.net/downloads/patches/ ... e-patched/. I'll let everyone know if that fixes it.

EDIT2: Doesn't seem to have fixed the gaps from occuring.
Last edited by _JPL_ on Tue Nov 30, 2004 2:39 pm, edited 1 time in total.
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

I fixed the memory graph problem. It was as I thought. Too much output confused this version of cacti.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

__JPL__,

Based upon your findings, you can disregard my other post. Yes, Cacti 0.8.6x is very persnikety in parsing output. It wants the data to be purely numeric in the VariableA:ValueA VariableB:ValueB. This was done intentionally.

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?
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

Any idea about the gaps? Are there any problems with caching that you might be aware of? I'm seeing a lot of the following errors in my log file:

12/01/2004 01:56:09 PM - CMDPHP: Poller[0] ASSERT: '90991220<90991220' failed. Recaching host '10.13.100.115', data query #8.

The data query number varies as do the hosts.

In the images below you can see what I mean by 'Gaps'. Also note that I did the upgrade on Thursday and that's when it started. (2nd image)
The next thing I need to do is match up the gap times with any suspicious errors from the same time.
Attachments
IMage2.png
IMage2.png (3.7 KiB) Viewed 5220 times
image1.png
image1.png (4.08 KiB) Viewed 5220 times
castor

Post by castor »

i've got exactly the same problem. Using 0.8.6.b with upgrade (pre 8.6.c) under fedora core 2. Only strange thing i found is :

POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting

from times to times in my cacti log. everytime i launched ot by hand it last about 2 seconds, but it seems that when cron is working it "sometimes" hangs. For info, i've got similar gaps in all my graph for my computer, but not exactly the same. You can have a look at http://bired.valholl.org/cacti/ loggin as guest password castor
just wondering if someone with anything else than fedoracore2 got the same trouble....
castor

Post by castor »

i was also wandering if a script (like the ping test?) could hang the poller, and if there a debug mode for the requests... :-?
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

You can set logging to debug level in cacti. I've done that but haven't poured over it yet. I was hoping someone already knows the problem and the fix. :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, poorly designed scripts can do nasty things to the system.

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 »

Castor,

Logged onto your site. I have some questions. I am seeing a problem with your system in general. I need to get some information from you on your system. Unfortunately, I am in the eastern us. It looks like the 0.8.6c will need some more work. I am not certain what is happening with the poller though.

Questions:
cmd.php or cactid?
What version of Apache?
What version of PHP?
What version of RRD?
What version of MySQL?
What version of net/ucd SNMP?

Thanks in Advance.

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

Post by castor »

atm i'm using cmd.php but i already tried vith cactid (the rpm version anyway), it does the same..

httpd-2.0.51-2.9
php-4.3.8-2.1
rrdtool-1.0.49-1.1.fc2.fr
mysql-3.23.58-9
php-mysql-4.3.8-2.1
net-snmp-5.1.1-2

i must also say hat i'm not 100% sure that i'm not using ucd-snmp, i can't find it by rpm -qa, but my snmpd.cond contained the word ucd the first time i looked at it. I'll try to find more about that today and let you know. is it possible that saying to cacti that i'm using netsnmp and using ucd-snmp make those gaps in my graph ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cactor,

Please send me a dump of your database and also, please run the poller in DEBUG mode one time and send me the log file.

E-mail address is larryjadams@comcast.net

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?
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

The gaps in my graphs seem to correspond to the

MDPHP: Poller[0] ASSERT: '90991220<90991220' failed. Recaching host '10.13.100.115', data query #8.

errors in my log file. Does anybody have any idea about this? Why are there so many 'recaching hosts' entries? What causes those?
SatelliteFriendly

Post by SatelliteFriendly »

We are also experiencing gaps in our graphs on a system running core1, 8.6b, php-4.3.9 & RRDtool-1.0.49. I have debug turned full blast and have noticed one significant difference between the polling cycles that work properly and those that produce gaps. The cycles that work ok produce the following two log entry, failed cycles do not:

12/02/2004 12:55:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS:
-q /var/www/html/cacti/cmd.php 0 0]
12/02/2004 12:55:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS:
-q /var/www/html/cacti/cmd.php 2 2]

I'm not sure why this process is run twice as only one parameter being polled. Then again, there is alot I don't know about this system yet (newbie). Any idea's on this update process is not being run some of the time?
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

I've just switched to cactid v0.8.6c to see if it makes any difference at all.

EDIT: It did not make the difference I was looking for. The graphs stopped graphing completely. SO i ran poller.php manually just to jumpstart it and got this error eventually:

12/02/2004 03:24:28 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

I found where I need to change that number in poller.php up to 1000. Perhaps this was the problem all along? Nope, it wasn't. The next time I ran it, it was back to normal. Probably a better idea to leave that setting at 300 so you know when it's time to tweak other settings. :)
Last edited by _JPL_ on Thu Dec 02, 2004 6:03 pm, edited 1 time in total.
castor

Post by castor »

i searched a bit but did not found how to run cacti in debug mode, only place where i found that is for graph. WHat's more i have no clue on how do dumb you the database, can you give me a link where i can find the explanations ?
one more detail as i'm thinking about it is that is runnig a smp (dual processor) kernel...
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests