Bad performance of my cacti server. What is possible cause ?

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

Moderators: Developers, Moderators

Post Reply
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Bad performance of my cacti server. What is possible cause ?

Post by Cedric »

Config :
cacti-0.8.6g
php 5.1.1
mysql 4.1.16
rrdtool-1.2.11
NET-snmp 5.2.2
P3 1GHZ
256 MB SDRAM
HDD 36 GB

I poll 20 devices with 66 data sources.
My crontab runs poller (cmd.php) every minute. All steps are defined as 60s in cacti.The CPU load of my server climbs to nearly 100%, and free memory is 0MB.

If i define polling every 5 min in the crontab, things looks OK (CPU 40%).

I've defined "Maximum Concurrent Poller Processes" = 3 but it appears there is no effect of the performance of the server.

Has someone an idea to help me ???? :cry:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Is polling finishing in 60 seconds?

Are you using cactid? If not, you should.
[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]
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

Thanks for your help.
When i run manually poller.php, rrdtool process lives during 1 min 45s.
Does it mean that polling is not finished in 1 min ????
What is difference between cactid and cmp.php ??
I can't see cactid nowhere in cacti directory.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You have to download and compile cactid.

If your polling interval is 60 seconds and you aren't completing your polling in 60 seconds or less, you will have problems. Which is more than apparent right now.

Move to cactid, it should help the situation. Problem is, as soon as you move forward with adding more hosts, you maybe in the same situation. :(
[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]
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

Thanks a lot.
I try this.
Have a nice day
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

Cactid is working but is it possible to start a poll every minute instead of 5 minutes which are default by default???
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You still run poller.php....

I assumed you where already doing 1 minute intervals.

If that is the case, you need to alter your settings to use cactid. Paths and Poller are the tabs of intrest.
[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]
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

So, i had modify the line in the crontab, and replace call to "poller.php" by call to "cactid" ???
Have i to run cactid "manually" for the first time ??

I've already altered configuration in cacti, by defining cactid as polling method, and define path to cactid binary file.

Need your help ....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Nope... wrong....

You keep poller.php....

Poller.php calls what ever collector you select in your cacti settings.

Put poller.php back and got look at your cacti settings in the web interface.
[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]
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

Re !
I've installed cactid. It is running an graphs are generated.
I've defined 10 threads for polling process.
The problem of performance is already .... a problem.
Always more than 90% of CPU load and full memory used.
Is rony already woken up ????
Cedric
Posts: 7
Joined: Tue Dec 27, 2005 10:49 am

Post by Cedric »

Nobody to help me ??
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

How many processors do you have?

2 threads per processor is what I suggest.

And yes, I just woke up.
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests