Significant NRPE rework, including IPv6
lists
lists at catsnest.co.uk
Mon Mar 14 11:46:02 CET 2011
On Sat, Mar 12, 2011 at 1:20 PM, Kristian Lyngstøl
<kristian at bohemians.org> wrote:
> I've started working on making NRPE somewhat maintainable, as it's a
> bit of a mess in its current state.
>
> The original goal was adding IPv6-support, which I've done, but it has
> escalated somewhat after that.
>
> I've since:
>
> - Transitioned to autotools/autoconf for a somewhat more convenient
> build system
> - ... Introduced system-wide header files (...)
> - Started sorting out what's local and global, removing redundant
> prototypes and declaring functions static
> - Imported a couple of patches kept by Debian that were reasonable.
> - Re-indented the code (Normally I wouldn't do this on a project
> that's not mine, but I wasn't able to wrap my head around the style as
> it was -- too far off)
> - Removed several redundant comments (Stuff like "/* wait for
> connections */ wait_for_connections();" which only serves as noise)
> - Removed unused or unneeded code.
> - Misc other
>
> While the IPv6-support is fairly complete (using getaddrinfo()), the
> nrpe-server needs two more features to be release-ready: Listening to
> both ipv4 and ipv6 at the same time, and ipv6-awareness in
> allowed_hosts. This is on my todo-list. I also expect I've broken the
> build on certain platforms, and I intend to test this to some degree.
>
Thorght id give it a go on Solaris, im no coder so have no idea how to
fix these errors...
This is on Solaris 10 Sparc
Had to install automake and tools first then:
if you would like versions pleas elet me know for which software etc.
adm01:nrpe# ./autogen.sh
+ aclocal
+ autoheader
+ automake --add-missing --copy --foreign
configure.ac:9: installing `./install-sh'
configure.ac:9: installing `./missing'
src/Makefile.am: installing `./depcomp'
+ autoconf
configure.ac:11: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:11: error: possibly undefined macro: AC_MSG_ERROR
=================================
adm01:nrpe# ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
./configure: line 2799: syntax error near unexpected token `libssl,'
./configure: line 2799: `PKG_CHECK_MODULES(libssl,
libssl,AC_DEFINE([HAVE_SSL],[1],[Define we have
SSL]),AC_MSG_ERROR([nrpe requires libssl.]))'
Ritchie,
--
Fnord...
<-- http://23.me.uk --> <-- http://wiki.s23.org --> <--
http://twitter.com/23me -->
<- - What garlic is to salad, insanity is to art. ->
> The work can be found at: https://github.com/KristianLyng/nrpe
>
> I do not want to maintain a fork, thus I'm interested to co-operate to
> get this "upstream". Since the code looked almost abandoned, I decided
> that it would be best to adapt a "fix first, ask later"-approach.
>
> I've so far dubbed it NRPE "3.0", and I'm using it both nrpe-server
> and check_nrpe on several servers.
>
> Any and all feedback is much welcomed.
>
> I'm also on IRC (KristianL on freenode).
>
> Regards,
> Kristian
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list