Problem with Cactid under Solaris

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

Moderators: Developers, Moderators

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

Post by TheWitness »

Back in town. Bump!

LJ
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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

[to Rony]

Do you planned new versions of Cactid (bug fixing) ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Concerning cactid, development and versions, TheWitness is your man. That's his baby, per say.

:D
[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
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is likely a Solaris issue. You will have to lend me your box. Either telnet or ssh will do.

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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

TheWitness wrote:This is likely a Solaris issue. You will have to lend me your box. Either telnet or ssh will do.
TheWitness
Unfortunately I can't do it- server is the inside of our network.
I can send to you any debugs and make debug of cactid .
But when I turn on full debug on Cacti, messages in log son't say anything about cause of problem 8-(

as variant - debug version with more debug messages ?
User avatar
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ev,

Download and make gdb on your cacti box. The from the cactid source directory and where there is a cactid binary, perform the following:

shell> gdb cactid
gdb shell> run
<< You will get messages here or Cactid will run >>
gdb shell> quit

Send me any segfaults/messages you get.

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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

cacti@***$ gdb cactid
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.9"...
(gdb) run
Starting program: /opt/cactid/bin/cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
[New LWP 6]
[New LWP 7]
[LWP 6 exited]
[New LWP 6]
[LWP 3 exited]
[LWP 2 exited]
[New LWP 2]
procfs: fetch_registers, get_gregs line 3700, /proc/11773: No such file or direc
tory.
[Switching to LWP 3]
procfs: fetch_registers, get_gregs line 3700, /proc/11773: No such file or direc
tory.
procfs: fetch_registers, get_gregs line 3700, /proc/11773: No such file or direc
tory.
(gdb)
(gdb) quit
The program is running. Exit anyway? (y or n) y
-----------------------------------------------------------------------------------

when cactid runs in normal mode from cron, it hang
1 time from 5...10 times (ither times cactid works normally)
with GDb it gets this rezult (with another /proc/*****) many times.
User avatar
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Where is your cactid.conf file located?

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: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, how many times? Post the output "complete".

Thanks,

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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

TheWitness wrote:Where is your cactid.conf file located?
TheWitness
/opt/cactid/bin/cactid.conf
---------------------------------------------cactid.conf :
DB_Host localhost
DB_Database cacti
DB_User *****
DB_Pass *****
----------------------------------------------
Last edited by Ev on Thu Feb 10, 2005 3:16 am, edited 1 time in total.
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

TheWitness wrote:Also, how many times? Post the output "complete".
TheWitness
(gdb) run
Starting program: /opt/cactid/bin/cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
[New LWP 5]
[New LWP 6]
[New LWP 7]
[LWP 6 exited]
[New LWP 6]
[LWP 3 exited]
[LWP 2 exited]
[New LWP 2]
procfs: fetch_registers, get_gregs line 3700, /proc/10870: No such file or directory.
[Switching to LWP 3]
procfs: fetch_registers, get_gregs line 3700, /proc/10870: No such file or directory.
procfs: fetch_registers, get_gregs line 3700, /proc/10870: No such file or directory.
(gdb)
--------------------------------------------------------------------------
this is full output from GDB cactid
> run
------------

from GDB I received a similar conclusion many times.

start GDB with additional parameters?
User avatar
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you look at the GDB manual, you can attached to a PID and find where it is deadlocked. I had it happen with mine overnight. However, GDB support in Windows (SUCKS). So, I still need your help. The syntax is something like:

gdb
attach <pid>

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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

Post by Ev »

unfortunately, gdb fails debug this process/

cactid runs from another console - user cacti

[root@](~)> gdb
GNU gdb 6.0
-------
(gdb) attach 22112
Attaching to process 22112
procfs:3571 -- /proc/22112: No such file or directory.
do_attach: couldn't open /proc file for process 22112
(gdb) attach 22967
Attaching to process 22967
Reading symbols from /opt/cactid/bin/cactid...done.
Reading symbols from /opt/net-snmp/lib/libnetsnmp.so.5...done.
Loaded symbols for /opt/net-snmp/lib/libnetsnmp.so.5
Reading symbols from /opt/mysql/lib/mysql/libmysqlclient.so.14...done.
Loaded symbols for /opt/mysql/lib/mysql/libmysqlclient.so.14
Reading symbols from /opt/zlib/lib/libz.so...done.
Loaded symbols for /opt/zlib/lib/libz.so
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libkstat.so.1...done.
Loaded symbols for /usr/lib/libkstat.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libcrypt_i.so.1...done.
Loaded symbols for /usr/lib/libcrypt_i.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /etc/lib/libdl.so.1...done.
Loaded symbols for /etc/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /etc/lib/nss_files.so.1...done.
warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /etc/lib/nss_files.so.1
Reading symbols from /usr/lib/nss_dns.so.1...done.
warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /usr/lib/nss_dns.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
Loaded symbols for /usr/lib/libresolv.so.2
Retry #1:
Retry #2:
---Type <return> to continue, or q <return> to quit---
Retry #3:
Retry #4:
[New LWP 1]
Symbols already loaded for /opt/net-snmp/lib/libnetsnmp.so.5
Symbols already loaded for /opt/mysql/lib/mysql/libmysqlclient.so.14
Symbols already loaded for /opt/zlib/lib/libz.so
Symbols already loaded for /usr/lib/libpthread.so.1
Symbols already loaded for /usr/lib/libm.so.1
Symbols already loaded for /usr/lib/libsocket.so.1
Symbols already loaded for /usr/lib/libnsl.so.1
Symbols already loaded for /usr/lib/libkstat.so.1
Symbols already loaded for /usr/lib/libc.so.1
Symbols already loaded for /usr/lib/librt.so.1
Symbols already loaded for /usr/lib/libcrypt_i.so.1
Symbols already loaded for /usr/lib/libgen.so.1
Symbols already loaded for /usr/local/lib/libgcc_s.so.1
Symbols already loaded for /etc/lib/libdl.so.1
Symbols already loaded for /usr/lib/libmp.so.2
Symbols already loaded for /usr/lib/libaio.so.1
Symbols already loaded for /usr/lib/libmd5.so.1
Symbols already loaded for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
Symbols already loaded for /usr/lib/libthread.so.1
Symbols already loaded for /etc/lib/nss_files.so.1
Symbols already loaded for /usr/lib/nss_dns.so.1
Symbols already loaded for /usr/lib/libresolv.so.2
0xff01c148 in _libc_nanosleep () from /usr/lib/libc.so.1
(gdb)
[ cactid output to the console was stopped]

(gdb)
(gdb)
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y

Detaching from program: LWP 1
[@](~)>
User avatar
TheWitness
Developer
Posts: 17050
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ev,

I have a new Cactid version for your to test. Please send me an e-mail confirming you would like to participate in the test.

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?
Ev
Cacti User
Posts: 104
Joined: Tue Jan 25, 2005 12:16 pm

new test version

Post by Ev »

Yes, I can test this new version /
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests