PDA

View Full Version : multiple processes for one program



zipjfo
22-Feb-2012, 08:47
Hello,
I've a strange behaviour at one of our Suse 9.0 server.
When I start a program (e.g. /etc/init.d/nagios, /etc/init.d/hp-health) it will startup with more then one threat.

It would look like this for hp-health:
# ps -ef | grep hpasmd
root 18804 1 1 08:35 ? 00:00:00 hpasmd
root 18813 18804 0 08:35 ? 00:00:00 hpasmd
root 18814 18813 0 08:35 ? 00:00:00 hpasmd
root 18815 18813 0 08:35 ? 00:00:00 hpasmd
root 18816 18813 0 08:35 ? 00:00:00 hpasmd
root 18817 18813 0 08:35 ? 00:00:00 hpasmd
root 18818 18813 0 08:35 ? 00:00:00 hpasmd
root 18819 18813 0 08:35 ? 00:00:00 hpasmd
root 18820 18813 0 08:35 ? 00:00:00 hpasmd
root 18821 18813 0 08:35 ? 00:00:00 hpasmd
root 18822 18813 0 08:35 ? 00:00:00 hpasmd
root 18823 18813 0 08:35 ? 00:00:00 hpasmd
root 18824 18813 0 08:35 ? 00:00:00 hpasmd
root 18825 18813 0 08:35 ? 00:00:00 hpasmd

and this for nagios:
# ps -ef | grep nagios
nagios 1298 1 0 Jan27 ? 00:10:13 /usr/local/nagios//bin/nagios -d /usr/local/nagios//etc/nagios.cfg
nagios 1299 1298 0 Jan27 ? 00:00:00 /usr/local/nagios//bin/nagios -d /usr/local/nagios//etc/nagios.cfg
nagios 1300 1299 0 Jan27 ? 00:00:00 /usr/local/nagios//bin/nagios -d /usr/local/nagios//etc/nagios.cfg

If I kill one of the follow up processes also the main (first) process of these program will be killed.

I've no clue where it came from.

I set up nagios and hp-health on several other servers but this issue is new for me and I found nothing similar by searching the Internet.

I appreciate if someone could give me some hint where I can look at to fix this behaviour.

Thank you in advance for your help.
kr
Juergen

zipjfo
22-Feb-2012, 09:04
Oh I forgot to post this (and I didn't find the edit button :/ ):

# uname -a
Linux server 2.4.21-99-smp #1 SMP Wed Sep 24 13:31:14 UTC 2003 i686 i686 i386 GNU/Linux

# cat /etc/SuSE-release
SuSE Linux 9.0 (i586)
VERSION = 9.0

ab
22-Feb-2012, 14:46
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just guessing, on SLES 9 (which is not just a little bit old) you may be
using the old threading model which exposes individual threads as
processes all over the place. Notice that one "process" is the parent
of all of the others which likely confirms this. Even with the later
kernels you can see the various threads using something like 'pstree',
though it was (annoyingly) more-visible in the old days.

What does the following return?

getconf GNU_LIBPTHREAD_VERSION

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPRPG6AAoJEF+XTK08PnB5HQgQALybNtPN/Difp2qu03OB6iBO
WfulysSAbBZhUYt2jqS7VpHqSyIAjibfmYNwSCLxs42ykyTP57 mp83uznDBRrICW
tA34CCSoRSVmbm0TNyyP21EHio1pxNB4NRGuKO7jocKWdqUGYU OSQGO5Fdg+qvsw
nI5KaZ62YTehGf9gOq0cZV8lBfVqMh53h6xRO8v9xsFtQ2Cw6W feXh1N69mTspKI
pSSVwYMKtNspyklDk8AiTk6lONXM1Lh0h45zvT1jXP/c8J4WY/uJnMK9xSw6sOdO
NnuceoLCHAJJhMBo2awUpz6z1n1L5rEDZufRy5am/DAHVTSBHeWjBFBm34C9xROi
XwGBM6Y+tDfjbAHgF0aZGdzqZdIXHMhkJ2wsZssoEylaUDHSZB +q0uLTHYIiRAD3
YNs8kqKvX3LpqLTJRHBK0lKPp+R6r+hYMMc/1XBzWCaDl858VOrKne5zZfjRhhoj
LOAp/8ghUAhKhsvsREB32I93GUdzBf+pYHLWvYyTWGbcDVYUrzZYFWn xV1cK4HzV
vEfC+UV1oKygnO2HTH2UULU4pBExBTDbSpxZ7zGSlID90CR8gw g5Vpx5+zF7RTEc
IJFxjqKoaA3F9/rib+PY9pWUdVAgICMho0n++lGjh68PVKUQv/+LSO2juEiCtn2o
y0OsEx9xf/xeXaWluylG
=brEr
-----END PGP SIGNATURE-----

zipjfo
22-Feb-2012, 15:57
Thx for reply ;)

Here the output you requested:

# getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10

hmm I searched for it and it seems to be a very old version :(
I there any chance to do some configuration around "linuxthreads" ?

And basically a update to a newer Suse version is not that easy possible because there is a software running on it we can't get 100% sure that this software will run on a newer Suse version :(

ab
22-Feb-2012, 17:17
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you are unsure 100% whether or not software will work on a newer
version, why not test it? SLES can be downloaded for free from
download.novell.com (and probably download.suse.com now too) and
anything after SLES 9 should be better.

In the meantime, what is the downside to things being presented as they are?

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPRRUiAAoJEF+XTK08PnB5P9kP/i6v6/48/7OE9rAc/XAMY3vT
RJrtTfDXSXqDt8iTdOAR9K7jPPuSBllw2RGDZGebQKCG6TA/fFsB1d5tCYDbagRq
6ZvUSFhuzXWwvf+DRVS27Kcpn9WvXgJxJ7/kbnTcb1VyX0jRqyeCKA7a3GOZoGP1
3/b3r+hC87tURLV0QBivMWOZVvD3l9sk9x+scpDo/4rOxa30Sc4OE06pjGNP1DmK
xvKA8FASZynJ5wqG9k4pfGPwcRp8q6UNi023FXKLCdBagru5yk 9exC0K8yIs36MT
bnsAhOKZSXy2flmQKgePZi10yOe1q94/UmXpK2wgKWOWd6TExQMFdVnx8lZ/f5eM
NssvnU++A0qnI2XhI5CB2dBMzdsaJQO3/mK2APgSRtsUBEKfHpVcNI1MEUBO/9Q/
/Amqw54NKgM+2r2AwmNmfGNC8/PbEU9Uam+RZ/BZGoM0d3dpaZQHn6+u24ZYG61F
jEo1IRtc/hH4Nf8KMhhd9QqtEypUjFaTMdDV7g7IAyha0i3qTkzlkmcCJSu BFJTI
SmnHO6LPZLXLWTnwHi+zgoaqpF5Sn2s+vE9yERrzBA1MUKhykm RecToAeKMukXxW
hYN5IFLZakpQR5a9cdns3C47RzRNrfNlftiVcFRNhwNFJzkEzM dEOnsksh43Z5d2
JzusmxLrb9TaVbr1cBpR
=T6dh
-----END PGP SIGNATURE-----

zipjfo
22-Feb-2012, 22:31
I know that you can get suse for free... ;) It's the additional software what is licensed to the hardware that will be too expensive :(

Yes the problem still exists.

Any hints/tips to solve the problem are still welcome.

kr
jurgen