Nagios Plugin on Raspberi Pi

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ollee
Posts: 1
Joined: Thu Jan 14, 2021 10:46 pm

Nagios Plugin on Raspberi Pi

Post by ollee »

I am attempting to configure the 2.3.3 plugins on a raspberri pi with ubuntu 5.4.0-1015-raspi. I am able to make/make install the nagios code, but I receive the following error when attempting to configure or make the plugins. I am new to the forum and rather new to Linux, doing this to learn. I apologize if this is the incorrect place. Thanks!


ubuntu@ubuntu:~/nagios-plugins-2.3.3$ sudo ./configure --with-nagios-user=nagios --with-nagios-group=nagios
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... build-aux/config.guess: unable to guess system type

This script, last modified 2009-11-20, 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://git.savannah.gnu.org/gitweb/?p=c ... ss;hb=HEAD
and
http://git.savannah.gnu.org/gitweb/?p=c ... ub;hb=HEAD

If the version you run (build-aux/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 = 2009-11-20

uname -m = aarch64
uname -r = 5.4.0-1015-raspi
uname -s = Linux
uname -v = #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020

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

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

UNAME_MACHINE = aarch64
UNAME_RELEASE = 5.4.0-1015-raspi
UNAME_SYSTEM = Linux
UNAME_VERSION = #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020
configure: error: cannot guess build type; you must specify one
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios Plugin on Raspberi Pi

Post by mcapra »

What steps did you follow to install the nagios-plugins dependencies? When I follow the official install instructions for Ubuntu on my Pi4, it "just works":
https://support.nagios.com/kb/article/n ... tml#Ubuntu

Code: Select all

ubuntu@ubuntu:~$ cat /etc/*lease
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

ubuntu@ubuntu:~$ /usr/local/nagios/libexec/check_http
check_http: Could not parse arguments
Usage:
 check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
       [-J <client certificate file>] [-K <private key>]
       [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-U] [-a auth]
       [-b proxy_auth] [-f <ok|warning|critical|follow|sticky|stickyport>]
       [-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
       [-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
       [-A string] [-k string] [-S <version>] [--sni] [--verify-host]
       [-C <warn_age>[,<crit_age>]] [-T <content-type>] [-j method]
ubuntu@ubuntu:~$ /usr/local/nagios/libexec/check_http --version
check_http v2.3.3.git (nagios-plugins 2.3.3)

Former Nagios employee
https://www.mcapra.com/
Locked