Git Product home page Git Product logo

docker-nagios's Issues

Can't build on 64bit Raspbian.

Describe the issue/bug
Building docker container on

Linux pi-docker-2 5.10.63-v8+ #1496 SMP PREEMPT Wed Dec 1 15:59:46 GMT 2021 aarch64 GNU/Linux

Arch - aarch64

During make of git clone https://github.com/NagiosEnterprises/nsca.git

I get UNAME_MACHINE = aarch64
UNAME_RELEASE = 5.10.63-v8+
UNAME_SYSTEM = Linux
UNAME_VERSION = #1496 SMP PREEMPT Wed Dec 1 15:59:46 GMT 2021
configure: error: cannot guess build type; you must specify one

To Reproduce
run docker build .

Expected behavior
Successful build.

Actual behavior
Build fails.

More context

Is it an out of date ./configure-guess?

Cloning into 'nsca'...
HEAD is now at 824f4ea Merge pull request JasonRivers#40 from NagiosEnterprises/maint
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/*checkout*/config/config/config.guess
and
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/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 [email protected] in order to provide the needed
information to handle your system.

config.guess timestamp = 2006-12-08

uname -m = aarch64
uname -r = 5.10.63-v8+
uname -s = Linux
uname -v = #1496 SMP PREEMPT Wed Dec 1 15:59:46 GMT 2021

/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.10.63-v8+
UNAME_SYSTEM = Linux
UNAME_VERSION = #1496 SMP PREEMPT Wed Dec 1 15:59:46 GMT 2021
configure: error: cannot guess build type; you must specify one

Ping Doesnt Work

Describe the issue/bug
Nagios returns "HOST ALERT: **** ;DOWN;HARD;10;CRITICAL - Could not interpret output from ping command"

To Reproduce
Standard use.

Expected behavior
Nagios should be able to interpret the output from the ping command

Actual behavior
A clear and concise description of what is actually happening

Screenshots/CLI Output
If applicable, add screenshots or CLI output to help explain your problem.

Additional context
Solution is the following command: chmod u+s /bin/ping

NG_NAGIOS_CONFIG_FILE and other environment variables are not set correctly

NG_NAGIOS_CONFIG_FILE and other environment variables referencing other set variables in the ENV instruction on line 6 of the Dockerfile do not have access to the referenced NAGIOS_HOME variable.

To Reproduce
Steps to reproduce the behavior:
Build the container, exec into the container and echo NG_NAGIOS_CONFIG_FILE, NG_CGI_DIR, or NG_WWW_DIR

Environment variables should be separated as follows

# Environment variables
ENV NAGIOS_HOME=/opt/nagios \
    NAGIOS_USER=nagios \
    NAGIOS_GROUP=nagios \
    NAGIOS_CMDUSER=nagios \
    NAGIOS_CMDGROUP=nagios \
    NAGIOS_FQDN=nagios.example.com \
    NAGIOSADMIN_USER=nagiosadmin \
    NAGIOSADMIN_PASS=nagios \
    APACHE_RUN_USER=nagios \
    APACHE_RUN_GROUP=nagios \
    NAGIOS_TIMEZONE=UTC \
    DEBIAN_FRONTEND=noninteractive \
    NG_CGI_URL=/cgi-bin \
    NAGIOS_BRANCH=nagios-4.4.6 \
    NAGIOS_PLUGINS_BRANCH=release-2.3.3 \
    NRPE_BRANCH=nrpe-4.0.2 \
    NSCA_TAG=nsca-2.10.0

ENV NG_NAGIOS_CONFIG_FILE=${NAGIOS_HOME}/etc/nagios.cfg \
    NG_CGI_DIR=${NAGIOS_HOME}/sbin \
    NG_WWW_DIR=${NAGIOS_HOME}/share/nagiosgraph

NagiosGraph CGI Installed In Wrong Place

Describe the issue/bug
None of the cgi calls from Nagiosgraph are accessible through HTTP

To Reproduce
http://host:8080/nagios/cgi-bin/show.cgi
http://host:8080/nagios/cgi-bin/showconfig.cgi

Expected behavior
http://host:8080/nagios/cgi-bin/show.cgi should not return 404
http://host:8080/nagios/cgi-bin/showconfig.cgi should not return 404

Actual behavior
A clear and concise description of what is actually happening

Screenshots/CLI Output

image
image

Additional context
Looks like the cgi files are installed in /usr/sbin instead of /opt/nagios/sbin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.