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

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

Post by TheWitness »

Here is the picture of "Settings" showing debug.
Attachments
Here.
Here.
ExampleOfDebug.JPG (185.67 KiB) Viewed 3286 times
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 SOLUTION TO MY PROBLEM:

Installing the FC2 rpm created a second cron entry and a second user for running cacti called 'cacti'. When the 2 cron entries overlapped their runtime it produced gaps in the graphs. I removed the user and cron entry created by the FC2 rpm and now all is working right again. :)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I was just speculating that last night with Ian......

Glad that was it.
[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]
castor

Post by castor »

seems like it was the same thing here :p
greets !!!

anyway i did'nt found where the cron task by cacti user is configured, but i disabled the one i put myself in /etc/crontab and it seems to wrok nice for the moment.

i have a question about the cacti user, why is it configured with a /bin/bash shell rather than /sbin/nologin ?
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

I have mine as /bin/false I think. :) It doesn't need to be a shell so you should change that. For me the cron entry was put into /etc/cron.d and it was called cacti as well as the corresponding user. That should be the same for everyone if they installed the FC2 rpm.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You could also just do a

Code: Select all

crontab -e -u cactiuser
as root and edit the users crontab to run it.

:lol:
[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]
User avatar
dorje
Posts: 8
Joined: Wed Dec 01, 2004 9:14 pm
Location: Santorini of the South - New Zealand

Newbie

Post by dorje »

rony / _JPL_,

I believe I have a related problem.
Being new to Linux could you let me know how to check if I have two cacti users (also run FC2 installed from rpm) ?

I have one 'cacti' entry in my /etc/cron.d/ folder.
_JPL_ is this the cron entry I should remove ?

Should I do that by using rony's code ?

Code: Select all

crontab -e -u cacti
Further to this _JPL_ you mention actually removing the user as well. What is the best way to do this ?

Cheers from the South Pacific.
DM
_JPL_
Cacti User
Posts: 67
Joined: Mon Nov 29, 2004 11:34 am

Post by _JPL_ »

Check in /etc/passwd for more than one cactiuser. If you created one manually and called it something other than 'cacti' then you should have 2.

For me, I removed the /etc/cron.d/cacti file because I had it already defined in 'cactiuser' crontab. Simply deleteing it will do.
User avatar
dorje
Posts: 8
Joined: Wed Dec 01, 2004 9:14 pm
Location: Santorini of the South - New Zealand

Many thanks

Post by dorje »

_JPL_ many thanks for that - unfortunately I've only got one Cacti user.
Cheers for the post - I'll keep looking.

DM
Arnar

Gaps in all graphs

Post by Arnar »

I seem to be having the same problem as _JPL_ and Castor. Like Castor I have entries in my log stating that the poller exceeded the 293 second limit, but when I run it by hand it only takes about 7 seconds. I'm not using cactid.

The gaps in my graphs are very frequent, about 2-4 each hour, honestly, they look like barcodes :o)

I'm running 0.8.6b with rrdtool 1.0.37 and NET-SNMP 5.0.1 on Slackware 8.1.

This seems to happen to all my graphs but one, which is local (linux) memory usage. The other graphs are mostly generated from snmp data, except one which is from a local script on the cacti host. That graph also has gaps in it.

The other hosts that I am polling are two Windows 2000 server machines, two Netware servers and two Linux machines. The linux machines are running NET-SNMP 5.2

I'm attaching some of my log file, after I turned on debugging, this happens for the run at 10:50 on 12/17/2004 (see note).

Arnar

note: a thought: maybe ISO Y-M-D date format would be better for log files rather than the US-specific M/D/Y.
Attachments
cacti.log.txt
(170.18 KiB) Downloaded 388 times
Arnar

I forgot..

Post by Arnar »

I forgot to tell you that I already checked my crontabs and I have only one user (nobody) running poller.php each 5 minutes.

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

Post by _JPL_ »

Anything fishy in /var/log/cron?
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

i'm having the same problem guys.

cacti -> cacti-0.8.6c/

not an rpm package, ( i use tarballs)

PHP 4.3.10
rrdtool-1.0.49
NET-SNMP version: 5.1.1


the gaps i'm seeing are ONLY on interface graphs for bits per sec + total bw, and is happeneing on cisco routers, located far from my poller ( asia or south american primarily or the ones gaping)

bluecoat proxy is not gaping, other weird snmp queries done by hand arent gaping, scripts arent gaping.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Morgan,

Try increasing the snmp timeout for that host or the global one. If I remember correctly it is less than previous version or it accually being enforced now. ;) But Larry (TheWitness) can answer more accuratly than I can.
[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]
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

Larry any thoughts?

ps: just changed the snmp timeout from 500 to 1000

will see if it makes any difference overnight but i doubt that is the cause.

M
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests