nsca/mcrypt problem on Solaris 10

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

nsca/mcrypt problem on Solaris 10

Postby JDB » Mon Jul 11, 2011 8:53 am

Hi,

I have installed nagios 3.0.6 and nsca-2.7.2 along with mcrypt-2.5.8 (CSWlibmcrypt) on a solaris 10 i386 box, and all the compilation went well, but whenever I run the test script that uses send_nsca I get the following client error :

Error: Server closed connection before init packet was received
Error: Could not read init packet from server

A server error appears in /var/adm/messages:
Jul 11 13:06:19 rozrhappt01-mont nsca[13793]: [ID 334271 daemon.error]
Could not open mcrypt algorithm 'blowfish' with mode 'cfb'

Other crypto algorithms fail in the same way.
However, the test works with plain XOR option=1.

Other info
$ uname -a
SunOS nagios-server 5.10 Generic_144489-04 i86pc i386 i86pc

Can anyone help me out, please.
(An earlier post by someone else shows no answer:
http://www.mail-archive.com/nagios-user ... 05768.html
)
JDB
 
Posts: 3
Joined: Wed May 11, 2011 7:58 am

Re: nsca/mcrypt problem on Solaris 10

Postby JDB » Mon Jul 11, 2011 11:35 am

Problem solved.
The root cause was a "toxic mcrypt package" on my Nagios server, apparently an unstable release from Blastwave.
My solution is replacing this package with an earlier release from the stable tree.
Sad the Blastwave is not so active any more.

Toxic package:
Code: Select all
$ pkginfo -l CSWlibmcrypt
   PKGINST:  CSWlibmcrypt
      NAME:  libmcrypt - MCrypt is a replacement for the old crypt() package and crypt(1) command, with extensions.
  CATEGORY:  application
      ARCH:  i386
   VERSION:  2.5.8,REV=2008.11.25
   BASEDIR:  /
    VENDOR:  http://downloads.sourceforge.net packaged for CSW by Remko de Vrijer
    PSTAMP:  remko@thor-NOTVERSIONED-20081125195049
  INSTDATE:  Jun 08 2009 15:15
   HOTLINE:  http://www.blastwave.org/bugtrack/
     EMAIL:  remko@initworks.com
    STATUS:  completely installed
     FILES:       17 installed pathnames
                   8 shared pathnames
                   8 directories
                   3 executables
                 164 blocks used (approx)


Working package, readily available:
Code: Select all
$ pkginfo -l CSWlibmcrypt
   PKGINST:  CSWlibmcrypt
      NAME:  libmcrypt -  GPL replacement for Unix crypt that supports a wide range of algorithms and modes
  CATEGORY:  system
      ARCH:  i386
   VERSION:  2.5.8,REV=2008.02.21
   BASEDIR:  /
    VENDOR:  http://mcrypt.sourceforge.net/  packaged for CSW by Alex Moore
    PSTAMP:  thor20080221185638
  INSTDATE:  Jul 11 2011 17:30
   HOTLINE:  http://www.blastwave.org/bugtrack/
     EMAIL:  asmoore@blastwave.org
    STATUS:  completely installed
     FILES:      103 installed pathnames
                   3 shared pathnames
                   4 directories
                  63 executables
                1193 blocks used (approx)
JDB
 
Posts: 3
Joined: Wed May 11, 2011 7:58 am

Re: nsca/mcrypt problem on Solaris 10

Postby JDB » Sat Jul 23, 2011 4:30 am

Note that this was occurred when compiling ncsa & send_ncsa from source.
This problem can be skipped by installed the CSW/Blastwave packages:
Code: Select all
nsca-2.7.2,REV=2009.04.26-SunOS5.8-i386-CSW.pkg.gz
nsca-2.7.2,REV=2009.04.26-SunOS5.8-sparc-CSW.pkg.gz
send_nsca-2.7.2,REV=2009.04.26-SunOS5.8-i386-CSW.pkg.gz
send_nsca-2.7.2,REV=2009.04.26-SunOS5.8-sparc-CSW.pkg.gz
JDB
 
Posts: 3
Joined: Wed May 11, 2011 7:58 am


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 28 guests