++ Some graphs not showing/Segmentation Fault ++

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

Moderators: Developers, Moderators

maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

++ Some graphs not showing/Segmentation Fault ++

Post by maiden »

I have problem about graph, sometime some no data on graph, I found log as below.


SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)
POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
SYSTEM STATS: Time:299.2490 Method:spine Processes:8 Threads:16 Hosts:422 HostsPerP rocess:53 DataSourc es:3175 RRDsProce ssed:1440


Image
Last edited by maiden on Wed Mar 10, 2010 11:07 am, edited 6 times in total.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Processes:8 Threads:16 = too high. Processes should be 2 x the amount of cores you have

Try with Processes:2 and around 10 threads, and see where that leads.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

mcutting wrote:Processes:8 Threads:16 = too high. Processes should be 2 x the amount of cores you have

Try with Processes:2 and around 10 threads, and see where that leads.
Thank for your suggestion.

My server:
Processes 4 Cores Intel(R) Xeon(R) CPU X3370 @ 3.00GHz
Memory 4G

And I try with processes 2 and 10 thread but log still has Spine Encountered a Segmentation Fault

Image

help me plz.
Last edited by maiden on Mon Mar 08, 2010 12:05 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Were did you get spine from? Compiled it on your own?
R.
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

gandalf wrote:Were did you get spine from? Compiled it on your own?
R.
I just install first times, plz suggest to me.

What should I do? some links invalid data.

Image


Image
Last edited by maiden on Mon Mar 08, 2010 12:06 am, edited 2 times in total.
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

Debug

Waiting .... someone
Attachments
debug.txt
(558.64 KiB) Downloaded 180 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please compile spine on your platform and retry
R.
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

gandalf wrote:Please compile spine on your platform and retry
R.
I already compile and found this log, I don't know that was cause of error or not.
configure: error: Cannot find MySQL headers. Use --with-mysql= to specify non-default path.

After that I found your suggestion in other forum for this error should be install mysql-devel, I already install it and the log in attach file. Thanks.


When I restart mysqld, why I saw log as below, (Iused spine not cmd.php)

Image
Attachments
spine2.txt
(15.91 KiB) Downloaded 264 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How many connections for your database. You are a bit abusive. Too many processes + theads.

Equation is:

Max MySQL Connections = some value larger than:

Processes * (Threads + Script Servers) + 1

Therefore,

10 Script Servers
10 Processes
20 Threads

Results in:

10 * (30) + 1 == 301 Just to poll. Only a Cacti system with > 10k devices should require something like that, and only on some pretty fast hardware where the DB is separate from the poller.

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?
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

TheWitness wrote:How many connections for your database. You are a bit abusive. Too many processes + theads.

Equation is:

Max MySQL Connections = some value larger than:

Processes * (Threads + Script Servers) + 1

Therefore,

10 Script Servers
10 Processes
20 Threads

Results in:

10 * (30) + 1 == 301 Just to poll. Only a Cacti system with > 10k devices should require something like that, and only on some pretty fast hardware where the DB is separate from the poller.

TheWitness
Dear TheWitness
I changed poller information to 5 script servers, 6 processes and 10 threads, but I still found log as below, how to fix this problem.
thank you.
Last edited by maiden on Mon Mar 08, 2010 12:07 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run a test from the command line:

Code: Select all

./spine -R -V 5
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?
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

TheWitness wrote:Run a test from the command line:

Code: Select all

./spine -R -V 5
TheWitness
Hi TheWitness

The result after run cmd in attach file.
Thank you.
Attachments
spine-v5.txt
(569.28 KiB) Downloaded 111 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

ok, now the following:

Code: Select all

./spine -R -V 5 -f 362 -l 362
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?
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

TheWitness wrote:ok, now the following:

Code: Select all

./spine -R -V 5 -f 362 -l 362
TheWitness
Now I already run that cmd.
Thank you.

I would like to know about calculation appropriately of the parameter for tunning cacti such as

1.Maximum Concurrent Poller Processes (as I know=Core CPU*2)
2.Maximum Threads per Process
3.Number of PHP Script Servers
4.Script and Script Server Timeout Value
5.The Maximum SNMP OID's Per SNMP Get Request
6.Mysql max_connection (you told me=Processes * (Threads + Script Servers) + 1 )

Note :
1. CPU 4Core 3G
2. RAM 4G
3. HDD 300G
4. In the future 500-700 devices + (datasource about 3500+)
5. CentOS 5.4, spine 0.8.7e, cacti 0.8.7e,weathermap v0.97


!!! I confuse about poller because I used spine not cmd.php but, when I setting log in "DEVEL-Developer Debug level" the log as below: show poller cmd.php not spine. What is something wrong in my server ?The poller is wrong or not?

Image
Attachments
spine-362.txt
(4.78 KiB) Downloaded 103 times
maiden
Posts: 22
Joined: Wed Feb 24, 2010 11:36 pm
Location: Thailand

Post by maiden »

Dear Thewitness

I used cmd for test script server:

php /var/www/html/cacti/script_server.php
PHP Script Server has Started - Parent is cmd

actually I used spine not cmd, this is wrong or not ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest