Nagios Core install on CentOS7 running on IBM Power 9 server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
balaji.sankaran
Posts: 8
Joined: Thu Jun 29, 2023 12:35 pm

Nagios Core install on CentOS7 running on IBM Power 9 server

Post by balaji.sankaran »

Dear All,

I am new to Nagios and I am trying to install Nagios core in CentOS7 running on IBM power 9 server.
I am following the document from the below link to install Nagios core.
https://assets.nagios.com/downloads/nag ... entos7.pdf

Now I am facing issue when I issue the below command.
./configure --with-command-group=nagcmd

Error log:

checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2006-12-08, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://savannah.gnu.org/cgi-bin/viewcvs ... nfig.guess
and
http://savannah.gnu.org/cgi-bin/viewcvs ... config.sub

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2006-12-08

uname -m = ppc64le
uname -r = 3.10.0-1160.el7.ppc64le
uname -s = Linux
uname -v = #1 SMP Wed Sep 30 02:21:30 UTC 2020

/usr/bin/uname -p = ppc64le
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch = ppc64le
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = ppc64le
UNAME_RELEASE = 3.10.0-1160.el7.ppc64le
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP Wed Sep 30 02:21:30 UTC 2020
configure: error: cannot guess build type; you must specify one


Could someone please help me how to overcome this situation?
Thank you.

Regards,
Balaji Sankaran
bv406
Posts: 31
Joined: Tue Apr 11, 2023 11:45 am

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by bv406 »

The document you used is outdated. Use this document: https://answerhub.nagios.com/support/s/ ... c06#CentOS

I installed Nagios Core couple weeks ago on CentOS8 using this document and had no issue.
balaji.sankaran
Posts: 8
Joined: Thu Jun 29, 2023 12:35 pm

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by balaji.sankaran »

Thank you bv406, it worked by following the instructions from the given link.
balaji.sankaran
Posts: 8
Joined: Thu Jun 29, 2023 12:35 pm

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by balaji.sankaran »

Now I am facing issue while installing the Nagios plugin. Could you please help?

Ran the below.
cd /tmp/nagios-plugins-release-2.4.5/
./tools/setup

output:
which: no gnumake in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Found GNU Make at /usr/bin/gmake ... good.
autom4te: -: no such file or directory
aclocal: error: echo failed with exit status: 1
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
gl/Makefile.am:67: error: GL_GENERATE_ALLOCA_H does not appear in AM_CONDITIONAL
gl/Makefile.am:253: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
gl/Makefile.am:312: error: GL_GENERATE_FLOAT_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1114: error: GL_GENERATE_NETINET_IN_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1308: error: GL_GENERATE_STDALIGN_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1331: error: GL_GENERATE_STDBOOL_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1354: error: GL_GENERATE_STDDEF_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1385: error: GL_GENERATE_STDINT_H does not appear in AM_CONDITIONAL
gl/Makefile.am:30: error: library used but 'RANLIB' is undefined
gl/Makefile.am:30: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
gl/Makefile.am:30: to 'configure.ac' and run 'autoconf' again.
gl/Makefile.am:47: warning: compiling 'glthread/lock.c' in subdir requires 'AM_PROG_CC_C_O' in 'configure.ac'
/usr/share/automake-1.13/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.13/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.13/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.13/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.13/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again
lib/Makefile.am:13: error: USE_PARSE_INI does not appear in AM_CONDITIONAL
lib/Makefile.am:5: error: library used but 'RANLIB' is undefined
lib/Makefile.am:5: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
lib/Makefile.am:5: to 'configure.ac' and run 'autoconf' again.
lib/tests/Makefile.am:19: error: USE_LIBTAP_LOCAL does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins-root/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
automake: warning: compiling 'pst3.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
plugins-root/Makefile.am:25: while processing program 'pst3'
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins-scripts/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
plugins/Makefile.am:118: error: HAVE_UTMPX does not appear in AM_CONDITIONAL
plugins/Makefile.am:47: error: library used but 'RANLIB' is undefined
plugins/Makefile.am:47: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
plugins/Makefile.am:47: to 'configure.ac' and run 'autoconf' again.
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
tap/Makefile.am:4: error: USE_LIBTAP_LOCAL does not appear in AM_CONDITIONAL
tap/Makefile.am:5: error: Libtool library used but 'LIBTOOL' is undefined
tap/Makefile.am:5: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
tap/Makefile.am:5: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
tap/Makefile.am:5: If 'LT_INIT' is in 'configure.ac', make sure
tap/Makefile.am:5: its definition is in aclocal's search path.
bv406
Posts: 31
Joined: Tue Apr 11, 2023 11:45 am

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by bv406 »

balaji.sankaran
Posts: 8
Joined: Thu Jun 29, 2023 12:35 pm

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by balaji.sankaran »

Still the same error.

which: no gnumake in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Found GNU Make at /usr/bin/gmake ... good.
autom4te: -: no such file or directory
aclocal: error: echo failed with exit status: 1
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
configure.ac:12: installing 'build-aux/config.guess'
configure.ac:12: installing 'build-aux/config.sub'
Makefile.am: installing './INSTALL'
gl/Makefile.am:67: error: GL_GENERATE_ALLOCA_H does not appear in AM_CONDITIONAL
gl/Makefile.am:253: error: GL_GENERATE_ERRNO_H does not appear in AM_CONDITIONAL
gl/Makefile.am:312: error: GL_GENERATE_FLOAT_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1114: error: GL_GENERATE_NETINET_IN_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1308: error: GL_GENERATE_STDALIGN_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1331: error: GL_GENERATE_STDBOOL_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1354: error: GL_GENERATE_STDDEF_H does not appear in AM_CONDITIONAL
gl/Makefile.am:1385: error: GL_GENERATE_STDINT_H does not appear in AM_CONDITIONAL
gl/Makefile.am:30: error: library used but 'RANLIB' is undefined
gl/Makefile.am:30: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
gl/Makefile.am:30: to 'configure.ac' and run 'autoconf' again.
gl/Makefile.am:47: warning: compiling 'glthread/lock.c' in subdir requires 'AM_PROG_CC_C_O' in 'configure.ac'
gl/Makefile.am: installing 'build-aux/depcomp'
/usr/share/automake-1.13/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.13/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.13/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.13/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.13/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.13/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again
lib/Makefile.am:13: error: USE_PARSE_INI does not appear in AM_CONDITIONAL
lib/Makefile.am:5: error: library used but 'RANLIB' is undefined
lib/Makefile.am:5: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
lib/Makefile.am:5: to 'configure.ac' and run 'autoconf' again.
lib/tests/Makefile.am:19: error: USE_LIBTAP_LOCAL does not appear in AM_CONDITIONAL
parallel-tests: installing 'build-aux/test-driver'
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins-root/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
automake: warning: compiling 'pst3.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'
plugins-root/Makefile.am:25: while processing program 'pst3'
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins-scripts/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
plugins/Makefile.am:3: error: RELEASE_PRESENT does not appear in AM_CONDITIONAL
plugins/Makefile.am:118: error: HAVE_UTMPX does not appear in AM_CONDITIONAL
plugins/Makefile.am:47: error: library used but 'RANLIB' is undefined
plugins/Makefile.am:47: The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
plugins/Makefile.am:47: to 'configure.ac' and run 'autoconf' again.
/usr/share/automake-1.13/am/check2.am: error: am__EXEEXT does not appear in AM_CONDITIONAL
tap/Makefile.am:4: error: USE_LIBTAP_LOCAL does not appear in AM_CONDITIONAL
tap/Makefile.am:5: error: Libtool library used but 'LIBTOOL' is undefined
tap/Makefile.am:5: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
tap/Makefile.am:5: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
tap/Makefile.am:5: If 'LT_INIT' is in 'configure.ac', make sure
tap/Makefile.am:5: its definition is in aclocal's search path.
configure.ac:9: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:10: error: possibly undefined macro: AM_MAINTAINER_MODE
configure.ac:49: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:51: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:107: error: possibly undefined macro: AM_CONDITIONAL
configure.ac:1869: error: possibly undefined macro: AM_GNU_GETTEXT
configure.ac:1870: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
balaji.sankaran
Posts: 8
Joined: Thu Jun 29, 2023 12:35 pm

Re: Nagios Core install on CentOS7 running on IBM Power 9 server

Post by balaji.sankaran »

I have both automake and autoconf installed already.

# automake --version
automake (GNU automake) 1.13.4
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.


# autoconf --version
autoconf (GNU Autoconf) 2.60
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Could someone help to fix this issue?
"autom4te: -: no such file or directory"

Thank you
Post Reply