coredump solaris 8, php5.0.4, cacti 0.8.6c

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

Moderators: Developers, Moderators

Post Reply
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

coredump solaris 8, php5.0.4, cacti 0.8.6c

Post by santm »

I am having core dump from this setup.

PHP 5.0.4
cacti 0.8.6.c
Apache 2.0.50
MySQL Client API 4.0.15


The core dump is not very regular but it is happening more often as I tried to add more and more machines for monitoring. The only way I can solve it is by rebooting the server.

Any help will be great.

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

Post by TheWitness »

Are you using cmd.php or cactid? If you system core dumping or is your web server. Please be more specific.

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?
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

Post by santm »

The core dump was happening for the cronjob.

I am using pollar.php as it was mentioned in the upgrade doc. I was using cmd.php earlier with old version.

The problem looks like did not repeated in last 24 hrs after I modified my my.cnf for mysql. Now I am using example mysql config file for large systems that comes with mysql distrib.

I did this as I saw lot of mesgs. for mysql connections while doing strings to the core file.


Please let me know if you have any questions for me.

-Regards
S
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

:(

Post by santm »

Well the problem did not got solved. It reappered again and after reboot it will go away for few days and start again. After that I am using the crontab entry from 'cactiuser' instead of root and it also has samr problem of doing the core dump.

Any help will be great. If you need the core file(1834812 bytes) let me know

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

Post by TheWitness »

Is your solaris 64bit?

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?
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

Post by santm »

Yes

bash-2.03$ /usr/bin/isainfo -kv
64-bit sparcv9 kernel modules
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try building php without snmp support and use the net-snmp binaries instead. There was a bug JUST fixed to PHP where certain snmp information was being returned using the wrong size parameter, which can lead to segfaults.

If you use the latest patches to Cacti, the snmp.php patch will make it run pretty fast.

Alternatively, you can download the latest snmp.c from the PHP CVS if you are building from scratch and want to continue to utilize php_snmp module. You don't have to wait for PHP 5.0.5 to fix it.

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?
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

Post by santm »

I used this to build my PHP (5.0.4) last time. But I am not sure what you want to change. Can you please direct me here.

Code: Select all

'./configure' '--with-mysql=/files/Mysql' '--with-apxs2=/files/http2/bin/apxs' '
--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib
-dir=/usr/local' '--with-snmp=/usr/local/net-snmp/'  '--enable-ucd-snmp-hack' '--with-libxml-dir=/usr/local/lib'
At the same time I am getting the snmp.c from php5 cvs as you mentioned if it is still needed.


And for the cacti patch(snmp.php) do I need rebuild cacti as well ?

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

Post by TheWitness »

Yes, the distribution of 5.0.4 also contained the snmp.c bug. So download the file and place it in the source/ext/snmp folder prior to making.

To patch cacti, you simply need to get the files from http://www.cacti.net/downloads/patches/ ... re-patched and copy them over your existing ones.

You also have to recreate the include/config.php to the new format.

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?
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

Post by santm »

Well Php is installed with new snmp.c as you mentioned.
And I applied all the pre-patches from cacti web site for cacti.

Will update in a day or two if there is no more core dump other wise will update as soon as there is a core dump.
santm
Posts: 10
Joined: Tue Apr 12, 2005 4:52 am

Post by santm »

Well the reappeared again any more help.


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

Post by TheWitness »

Not this week unfortunately.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest