Giter VIP home page Giter VIP logo

Comments (2)

willixix avatar willixix commented on August 26, 2024

SAVEDDATA is my own extension to Nagios which adds an an result string for output to plugins that is similar to PERFDATA but is not for use by graphing programs and only available as special MACRO. It is not part of standard nagios distribution so nobody but myself I'd expect to use it, at least right now. This type of data goes after || as opposed to | for PERFDATA.

When you use this switch all data that is re-used by plugin goes into that new part of OUTPUT. What is left before || is only what you specifically asked to be available with perf-output switches (-e, -Z, -y, -Y) which for output of octets this is done with -Z switch. If it is not present the data is not part of PERFDATA although it is sent to SAVEDDATA since that is required for by plugin to calculate average traffic to be displayed at the status line.

The line in the code that you found is actually exactly what it should be, I modified it when I added experimental SAVEDDATA support and tested to make sure when -Z switch is present the octets would still go to PERFDATA (-Z switch is $o_perfo). So there is no problem in the code and I will close this github issue in a few days.

First however I'd like to know how come you were using --nagios_with_savedata option?

from naglio-plugins.

olliewalsh avatar olliewalsh commented on August 26, 2024

Ah - I thought -P enabled -Z.

I'm was planning to add SAVEDATA to shinken - thinking it was already in nagios. The reason being to fix php4nagios graphing.

As the SAVEDATA patch hasn't made it into nagios this would make less sense. I'm using the LONGSERVICEOUTPUT macro instead - the only difference is replacing || with \n in the output.

from naglio-plugins.

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.