Xymon Mailing List Archive search

bbtest-net core dumps when reading bb-services

15 messages in this thread

list Andreas Dembach · Wed, 14 Dec 2005 14:26:01 +0100 ·
Hi,

I'm running the 4.1.2.p1-1 .deb-package on a Debian Sarge box. After not getting any test results I realized that the bbtest-net daemon does not even start, but directly segfaults after startup. After playing around with strace I figured out that it has to do with the service definitions. After I moved /etc/hobbit/bb-services away, it starts perfectly, just complaining that it has to use internal defaults.

Another uncorrect behaviour (I guess) with the bb-services file from the package in its default location:

hobbit at debianbox:~$  bbtest-net --services --debug 2>&1
Command: bbtest-net '--services' '--debug'
Environment BBLOCATION=''
Environment CONNTEST='TRUE'
Environment IPTEST_2_CLEAR_ON_FAILED_CONN='TRUE'

Service list dump

BBNETSVCS set to : smtp telnet ftp pop pop3 pop-3 ssh imap ssh1 ssh2 imap2 imap3 imap4 pop2 pop-2 nntp
Service list dump

hobbit at debianbox:~$

I tried even a very minimalistic bb-services file with just the smtp service definition from the bb-services.5 man-page. That also leads to a segfault.

Is this a known problem for the Debian package? Could this also have to do with our bb-hosts file that I copied from a BB 1.9c server?


Regards,
Andreas Dembach
list Henrik Størner · Wed, 14 Dec 2005 16:32:24 +0100 ·
quoted from Andreas Dembach
On Wed, Dec 14, 2005 at 02:26:01PM +0100, Andreas Dembach wrote:
I'm running the 4.1.2.p1-1 .deb-package on a Debian Sarge box. After not getting any test results I realized that the bbtest-net daemon does not even start, but directly segfaults after startup. After playing around with strace I figured out that it has to do with the service definitions. After I moved /etc/hobbit/bb-services away, it starts perfectly, just complaining that it has to use internal defaults.
So the million dollar question is: What's in your bb-services file ?
Is this a known problem for the Debian package? Could this also have to do with our bb-hosts file that I copied from a BB 1.9c server?
No, I use the Debian packages myself and dont have this problem.
I suspect there is something different in your bb-services file
(it's flagged as a configuration file, so dpkg will not overwrite
it with a default file if you have changed it locally). If you
have a bb-services.dpkg-dist file, is it any different ?


Henrik
list Andreas Dembach · Wed, 14 Dec 2005 16:55:30 +0100 ·
Hi Henrik,


--On 14. Dezember 2005 16:32:24 +0100 Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> 
quoted from Henrik Størner
wrote:
On Wed, Dec 14, 2005 at 02:26:01PM +0100, Andreas Dembach wrote:
I'm running the 4.1.2.p1-1 .deb-package on a Debian Sarge box. After not
getting any test results I realized that the bbtest-net daemon does not
even start, but directly segfaults after startup. After playing around
with  strace I figured out that it has to do with the service
definitions. After  I moved /etc/hobbit/bb-services away, it starts
perfectly, just complaining  that it has to use internal defaults.
So the million dollar question is: What's in your bb-services file ?
Well, as I said, nothing too complex I guess, since it's the default file 
from the package. And even with the following file, it segfaults:

hobbit at linuxbox:~$ cat /etc/hobbit/bb-services
          service smtp
             send "mail\r\nquit\r\n"
             expect "220"
             options banner

hobbit at linuxbox:~$  bbtest-net --services --debug 2>&1
quoted from Andreas Dembach
Command: bbtest-net '--services' '--debug'
Environment BBLOCATION=''
Environment CONNTEST='TRUE'
Environment IPTEST_2_CLEAR_ON_FAILED_CONN='TRUE'

Service list dump

BBNETSVCS set to : smtp telnet ftp pop pop3 pop-3 ssh imap ssh1 ssh2 imap2 
imap3 imap4 pop2 pop-2 nntp
Service list dump

hobbit at linuxbox:~$ bbtest-net --report --ping --checkresponse
Aborted (core dumped)

and the strace output of "strace bbtest-net --report --ping 
--checkresponse":
...
open("/usr/lib/hobbit/server/tmp/ftp..status", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/lib/hobbit/server/tmp/telnet..status", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/lib/hobbit/server/tmp/smtp..status", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=35, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40018000
read(3, "hostname.mydomain.de 37 11345640"..., 4096) = 35
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x4038f7a0, [], SA_RESTORER, 0x401bb6f8}, 
8) = 0
fork()                                  = 25368
--- SIGCHLD (Child exited) @ 0 (0) ---
chdir("/usr/lib/hobbit/server/tmp")     = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
kill(25366, SIGABRT)                    = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
quoted from Henrik Størner
Is this a known problem for the Debian package? Could this also have to
do  with our bb-hosts file that I copied from a BB 1.9c server?
No, I use the Debian packages myself and dont have this problem.
I suspect there is something different in your bb-services file
(it's flagged as a configuration file, so dpkg will not overwrite
it with a default file if you have changed it locally). If you
have a bb-services.dpkg-dist file, is it any different ?
No, it's a fresh install.

Regards,
Andreas
Henrik

list Henrik Størner · Wed, 14 Dec 2005 17:10:25 +0100 ·
quoted from Andreas Dembach
On Wed, Dec 14, 2005 at 04:55:30PM +0100, Andreas Dembach wrote:
So the million dollar question is: What's in your bb-services file ?
Well, as I said, nothing too complex I guess, since it's the default file 
from the package.

hobbit at linuxbox:~$ cat /etc/hobbit/bb-services
         service smtp
            send "mail\r\nquit\r\n"
            expect "220"
            options banner
That's not from the debian package, that is an old-style bbgen version
of the bb-services file.

Try doing

   mkdir tmpdir
   dpkg -x hobbit_4.1.2p1-1_i386.deb ./tmpdir/

This unpacks the .deb-file into the tmpdir directory. In
tmpdir/etc/hobbit/bb-services you'll find the real file - I am sure 
that is different from what you have.

Specifically, the "service smtp" line is now "[smtp]".


Henrik
list Andreas Dembach · Wed, 14 Dec 2005 17:49:39 +0100 ·
Yes, that works.

I took the section below from the bb-services man page. Seems to be 
outdated, then.

Thanks a lot,
Andreas

--On 14. Dezember 2005 17:10:25 +0100 Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> 
quoted from Henrik Størner
wrote:
On Wed, Dec 14, 2005 at 04:55:30PM +0100, Andreas Dembach wrote:
So the million dollar question is: What's in your bb-services file ?
Well, as I said, nothing too complex I guess, since it's the default
file  from the package.

hobbit at linuxbox:~$ cat /etc/hobbit/bb-services
         service smtp
            send "mail\r\nquit\r\n"
            expect "220"
            options banner
That's not from the debian package, that is an old-style bbgen version
of the bb-services file.

Try doing

   mkdir tmpdir
   dpkg -x hobbit_4.1.2p1-1_i386.deb ./tmpdir/

This unpacks the .deb-file into the tmpdir directory. In
tmpdir/etc/hobbit/bb-services you'll find the real file - I am sure
that is different from what you have.

Specifically, the "service smtp" line is now "[smtp]".


Henrik

list Wes Neal · Wed, 14 Dec 2005 11:50:17 -0500 ·
How do you tell Hobbit to page or not page on purple messages?

This line I thought would do it, but the comment says that it isn't used by
Hobbit.

hobbitserver.cfg:PAGELEVELS="red purple"        # Status colors that trigger
an alert. Used by 'bb' talking to bbd, not by Hobbit.

I want to turn pages for purple statuses off.

Thanks
Wes
list Henrik Størner · Wed, 14 Dec 2005 17:58:04 +0100 ·
quoted from Andreas Dembach
On Wed, Dec 14, 2005 at 05:49:39PM +0100, Andreas Dembach wrote:
Yes, that works.

I took the section below from the bb-services man page. Seems to be 
outdated, then.
Check you MANPATH setting. I'd guess you have some duplicate man-pages
found in both /usr/local/man/ and /usr/share/man/ 
(e.g. the man5/bb-services.5 file).

The man-page from the debian package doesn't have that section you
copied.


Regards,
Henrik
list Andreas Dembach · Wed, 14 Dec 2005 18:15:27 +0100 ·
Yes, true. There is still the old BigBrother intallation on this server, 
which also had the bbnet/bbgen tools.

Regards,
Andreas

--On 14. Dezember 2005 17:58:04 +0100 Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> 
quoted from Henrik Størner
wrote:
On Wed, Dec 14, 2005 at 05:49:39PM +0100, Andreas Dembach wrote:
Yes, that works.

I took the section below from the bb-services man page. Seems to be
outdated, then.
Check you MANPATH setting. I'd guess you have some duplicate man-pages
found in both /usr/local/man/ and /usr/share/man/
(e.g. the man5/bb-services.5 file).

The man-page from the debian package doesn't have that section you
copied.


Regards,
Henrik

list Henrik Størner · Fri, 6 Jan 2006 08:16:57 +0100 ·
quoted from Wes Neal
On Wed, Dec 14, 2005 at 11:50:17AM -0500, Wes Neal wrote:
How do you tell Hobbit to page or not page on purple messages?

This line I thought would do it, but the comment says that it isn't used by
Hobbit.

hobbitserver.cfg:PAGELEVELS="red purple"        # Status colors that trigger
an alert. Used by 'bb' talking to bbd, not by Hobbit.

I want to turn pages for purple statuses off.
You need to look at these settings in hobbitserver.cfg:

ALERTCOLORS="red,yellow,purple"                 # Colors that may trigger an alert message
OKCOLORS="green,blue,clear"                     # Colors that may trigger a recovery message

You can just remove the "purple" from the ALERTCOLORS setting.


Henrik
list Michael Nemeth · Fri, 06 Jan 2006 14:11:45 -0500 ·
One of my http servers went down and the conn test went red and http and content went blue, this was fine
with me and makes sense.  When the server came up the conn test went green ; now the http remained blue
but should  have been red ; http wasn't  brought up for over an hour.!  This was unexpected behavior  and
misleading because my web servers page was a green dot (correct blue should not propagate up) but
when you click on it it show that one web server  with green conn but blue http/content.
Im using 12/28 snapshot on hpux 11.0.

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Henrik Størner · Fri, 6 Jan 2006 22:28:02 +0100 ·
quoted from Michael Nemeth
On Fri, Jan 06, 2006 at 02:11:45PM -0500, Michael Nemeth wrote:
One of my http servers went down and the conn test went red and http and content went blue, this was fine
with me and makes sense.  When the server came up the conn test went green ; now the http remained blue
but should  have been red ; http wasn't  brought up for over an hour.!  
"blue" only happens if you have something like planned downtime. http should go "clear" when the entire server goes down and conn is red.
This also matches your observation that http remained "blue" until it
was brought up again.


Henrik
list Michael Nemeth · Mon, 09 Jan 2006 07:40:28 -0500 ·
Happen again this week end.  Another web server was taken down and brought up;  HTTP  was not started
(we don't start it at boot time so that was right)  and I found the server green and http blue.
quoted from Henrik Størner


Henrik Stoerner wrote:
On Fri, Jan 06, 2006 at 02:11:45PM -0500, Michael Nemeth wrote:
 
One of my http servers went down and the conn test went red and http and content went blue, this was fine
with me and makes sense.  When the server came up the conn test went green ; now the http remained blue
but should  have been red ; http wasn't  brought up for over an hour.!     
"blue" only happens if you have something like planned downtime. http should go "clear" when the entire server goes down and conn is red.
This also matches your observation that http remained "blue" until it
was brought up again.


Henrik

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|     _p_       Mike Nemeth
|  ___| |_____  email(w) user-609d3fab5b2d@xymon.invalid Work: XXX XXX-XXXX          |><___________)          |               Home Page:http://www.geocities.com/mjnemeth/
|               Work Page:http://faraday.motown.lmco.com:3000/~nemethm/ |               Work Page:http://ortsweb/~mnemeth/ |++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
list Henrik Størner · Mon, 9 Jan 2006 15:21:40 +0100 ·
quoted from Michael Nemeth
On Mon, Jan 09, 2006 at 07:40:28AM -0500, Michael Nemeth wrote:
Happen again this week end.  Another web server was taken down and 
brought up;  HTTP  was not started
(we don't start it at boot time so that was right)  and I found the 
server green and http blue.
Well, did you check if there's a DOWNTIME setting for this host ?

I'd like to see the bb-hosts entry for it. If you run network tests
from a separate server, check the bb-hosts file on both the Hobbit
and the network test server.


Henrik
list Wes Neal · Thu, 12 Jan 2006 11:27:22 -0500 ·
Long ago I never got a response on this.  Can anyone shed any light on it
now possibly?

I do not want to receive any pages when a box goes purple for whatever
reason.

Thanks in advance 
quoted from Wes Neal


-----Original Message-----
From: Wes Neal [mailto:user-4f272af8a740@xymon.invalid] 
Sent: Wednesday, December 14, 2005 11:50 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] purple pages?

How do you tell Hobbit to page or not page on purple messages?

This line I thought would do it, but the comment says that it isn't used by
Hobbit.

hobbitserver.cfg:PAGELEVELS="red purple"        # Status colors that trigger
an alert. Used by 'bb' talking to bbd, not by Hobbit.

I want to turn pages for purple statuses off.

Thanks
Wes
list Henrik Størner · Thu, 12 Jan 2006 18:22:27 +0100 ·
quoted from Wes Neal
On Thu, Jan 12, 2006 at 11:27:22AM -0500, Wes Neal wrote:
Long ago I never got a response on this.  Can anyone shed any light on it
now possibly?

I do not want to receive any pages when a box goes purple for whatever
reason.
Set ALERTCOLORS="red,yellow" in hobbitserver.cfg, then restart Hobbit.


Henrik