Code Monkey home page Code Monkey logo

Comments (2)

JasonRivers avatar JasonRivers commented on July 2, 2024 1

Sorry for the delay, This is configurable in your Nagios config.
I use a template for services I wish to graph, this looks like the following:

define service {
        name                            graphed-service
        action_url                      /cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&period=day&rrdopts=-w+450+-j
        register                        0
}

and then my service template does the following:

define service {
        name                            ICMPv4-Template
        use                             service-global,graphed-service
        service_description             ICMPv4
        check_command                   check_ping!-4 -H $HOSTADDRESS$ -w 80.0,10% -c 100.0,20%
        check_interval                  1
        register                        0
}

On the graphed-service, you can change the URL to be anything you want, you could even use grafana or similar if you wanted.

Hopefully this fixes the issue, Alternatively in your proxy under NGINX you could forward /cgi-bin to /nagios4/cgi-bin, something like:

location /cgi-bin/ {
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://nagioscontainer/cgi-bin;
}

Let me know how you get on.

from docker-nagios.

cathode911 avatar cathode911 commented on July 2, 2024

Jason, I have tested your approach and it works like a charm!
Thank you for you help and for the great container, saves me loads of time ;)

from docker-nagios.

Related Issues (20)

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.